mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test for #6228
This commit is contained in:
parent
e4a329a47f
commit
2ba268c80a
@ -0,0 +1,4 @@
|
||||
4392010
|
||||
1
|
||||
4392010
|
||||
1
|
@ -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;
|
Loading…
Reference in New Issue
Block a user