Skip to content

[BUG] JSQLParser 5.4-SNAPSHOT : Clickhouse : MATERIALIZED not supported in Clickhouse CREATE TABLE #2354

@tomershay

Description

@tomershay

The parser doesn't support materializing columns in Clickhouse CREATE TABLE statement

The MATERIALIZED keyword makes the column auto-computed and stored from an expression.

Sample query:

CREATE TABLE t (
    url String,
    domain String MATERIALIZED regexpExtract(url, '^(?:https?://)?([^/]+)', 1)
)
ENGINE = MergeTree()
ORDER BY tuple();

Error: ParseException: Encountered: <K_MATERIALIZED> / "MATERIALIZED", at line 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions