ClickHouse/tests/queries/0_stateless/01907_multiple_aliases.sql

13 lines
269 B
MySQL
Raw Normal View History

2021-06-13 20:52:35 +00:00
DROP TABLE IF EXISTS t;
2022-06-23 10:58:34 +00:00
set allow_deprecated_syntax_for_merge_tree=1;
2021-06-13 20:52:35 +00:00
CREATE TABLE t (d Date, z UInt32) ENGINE = MergeTree(d, (z), 1);
INSERT INTO t VALUES ('2017-01-01', 1);
WITH (d < '2018-01-01') AND (d < '2018-01-02') AS x
SELECT 1
FROM t
WHERE x;
DROP TABLE t;