ClickHouse/tests/queries/0_stateless/01127_month_partitioning_consistency_select.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
473 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-parallel
2020-04-12 22:30:10 +00:00
DROP TABLE IF EXISTS mt;
2022-06-23 08:37:52 +00:00
set allow_deprecated_syntax_for_merge_tree=1;
2020-04-12 22:30:10 +00:00
CREATE TABLE mt (d Date, x String) ENGINE = MergeTree(d, x, 8192);
INSERT INTO mt VALUES ('2106-02-07', 'Hello'), ('1970-01-01', 'World');
SELECT 'Q1', * FROM mt WHERE d = '2106-02-07';
SELECT 'Q2', * FROM mt WHERE d = '1970-01-01';
DETACH TABLE mt;
ATTACH TABLE mt;
SELECT 'Q1', * FROM mt WHERE d = '2106-02-07';
SELECT 'Q2', * FROM mt WHERE d = '1970-01-01';
DROP TABLE mt;