Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[BUG] JSQLParser 5.4-SNAPSHOT : Clickhouse : SAMPLE not supported in Clickhouse SELECT #2363

Open
@tomershay

Description

Failing SQL Feature:

The SAMPLE clause in ClickHouse lets you run a SELECT query on only a fraction of the data (a subset) to get fast approximate results by specifying a sample ratio or number.

Reproduce the issue with this query:

CREATE TABLE tmp.events
(
 id UInt64,
 user_id UInt32,
 timestamp DateTime
)
ENGINE = MergeTree()
ORDER BY id
SAMPLE BY id;
SELECT *
FROM events
SAMPLE 0.1;

Parsing error:

ParseException: Encountered: <K_SAMPLE> / "SAMPLE", at line 3, column 1, in lexical

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /