ClickHouse/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql

9 lines
275 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS merge_tree;
2022-06-23 10:58:34 +00:00
set allow_deprecated_syntax_for_merge_tree=1;
CREATE TABLE merge_tree (x UInt64, date Date) ENGINE = MergeTree(date, x, 1);
2017-01-12 00:33:02 +00:00
INSERT INTO merge_tree VALUES (1, '2000-01-01');
SELECT x AS y, y FROM merge_tree;
2017-01-12 00:33:02 +00:00
DROP TABLE IF EXISTS merge_tree;