test for bug_13492

This commit is contained in:
Denis Zhuravlev 2020-10-27 19:02:56 -03:00
parent 722e5fe73f
commit ff6499cdc4
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
DROP TABLE IF EXISTS bug_13492;
CREATE TABLE bug_13492 (`d` DateTime) ENGINE = MergeTree
PARTITION BY toYYYYMMDD(d) ORDER BY tuple();
INSERT INTO bug_13492 SELECT addDays(now(), number) FROM numbers(100);
SET max_threads = 5;
SELECT DISTINCT 1 FROM bug_13492, numbers(1) n;
SET max_threads = 2;
SELECT DISTINCT 1 FROM bug_13492, numbers(1) n;
DROP TABLE bug_13492;