ClickHouse/tests/queries/0_stateless/00709_virtual_column_partition_id.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

11 lines
297 B
SQL

DROP TABLE IF EXISTS partition_id;
CREATE TABLE IF NOT EXISTS partition_id (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5);
INSERT INTO partition_id VALUES (100, 1), (200, 2), (300, 3);
SELECT _partition_id FROM partition_id ORDER BY x;
DROP TABLE IF EXISTS partition_id;