ClickHouse/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

8 lines
229 B
SQL

DROP TABLE IF EXISTS merge_tree;
CREATE TABLE merge_tree (x UInt64, date Date) ENGINE = MergeTree(date, x, 1);
INSERT INTO merge_tree VALUES (1, '2000-01-01');
SELECT x AS y, y FROM merge_tree;
DROP TABLE IF EXISTS merge_tree;