mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add test for #4113
This commit is contained in:
parent
b40f83cd21
commit
79b21caa28
@ -0,0 +1 @@
|
||||
1
|
11
tests/queries/0_stateless/01907_multiple_aliases.sql
Normal file
11
tests/queries/0_stateless/01907_multiple_aliases.sql
Normal file
@ -0,0 +1,11 @@
|
||||
DROP TABLE IF EXISTS t;
|
||||
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;
|
Loading…
Reference in New Issue
Block a user