diff options
Diffstat (limited to '')
-rw-r--r-- | sqlglot/dialects/clickhouse.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py index da182aa..7a3f897 100644 --- a/sqlglot/dialects/clickhouse.py +++ b/sqlglot/dialects/clickhouse.py @@ -83,6 +83,11 @@ class ClickHouse(Dialect): } class Parser(parser.Parser): + # Tested in ClickHouse's playground, it seems that the following two queries do the same thing + # * select x from t1 union all select x from t2 limit 1; + # * select x from t1 union all (select x from t2 limit 1); + MODIFIERS_ATTACHED_TO_UNION = False + FUNCTIONS = { **parser.Parser.FUNCTIONS, "ANY": exp.AnyValue.from_arg_list, |