Skip to content

ClickHouse: Support GLOBAL IN / GLOBAL NOT IN #2597

Description

@s5dsn-eqee

ClickHouse supports GLOBAL IN and GLOBAL NOT IN for distributed subqueries, but ClickHouseDialect fails to parse them:

SELECT * FROM t WHERE x GLOBAL IN (1, 2);
SELECT * FROM t WHERE x GLOBAL NOT IN (SELECT y FROM t2);
SELECT * FROM t WHERE x GLOBAL IN t2;

Plain IN / NOT IN work, and GLOBAL is already supported on joins (GLOBAL JOIN), but not as an IN modifier.

Docs: https://clickhouse.com/docs/sql-reference/operators/in#distributed-subqueries

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions