Added a test for #6228

This commit is contained in:
Alexey Milovidov 2020-05-29 23:45:47 +03:00
parent e4a329a47f
commit 2ba268c80a
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,4 @@
4392010
1
4392010
1

View File

@ -0,0 +1,16 @@
SET max_execution_speed = 4000000, timeout_before_checking_execution_speed = 0.001;
CREATE TEMPORARY TABLE times (t DateTime);
INSERT INTO times SELECT now();
SELECT count() FROM test.hits SAMPLE 1 / 2;
INSERT INTO times SELECT now();
SELECT max(t) - min(t) >= 1 FROM times;
TRUNCATE TABLE times;
INSERT INTO times SELECT now();
SELECT count() FROM merge(test, '^hits$') SAMPLE 1 / 2;
INSERT INTO times SELECT now();
SELECT max(t) - min(t) >= 1 FROM times;