mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 12:52:37 +00:00
912ec60e7e
enable joined_subquery_requires_alias by default
13 lines
217 B
SQL
13 lines
217 B
SQL
DROP TABLE IF EXISTS mt;
|
|
CREATE TABLE mt (x UInt8, y Date) ENGINE = MergeTree ORDER BY x;
|
|
|
|
SELECT count()
|
|
FROM mt
|
|
ANY LEFT JOIN
|
|
(
|
|
SELECT 1 AS x
|
|
) js2 USING (x)
|
|
PREWHERE x IN (1) WHERE y = today();
|
|
|
|
DROP TABLE mt;
|