prevent a small chance insertion was made too late

This commit is contained in:
Yakov Olkhovskiy 2023-04-16 16:45:39 -04:00 committed by GitHub
parent 54f660bd4f
commit 00c87d3235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ CREATE TABLE dst(count UInt64) Engine=MergeTree ORDER BY tuple();
CREATE TABLE mt(a Int32, timestamp DateTime) ENGINE=MergeTree ORDER BY tuple();
CREATE WINDOW VIEW wv TO dst AS SELECT count(a) AS count FROM mt GROUP BY tumble(timestamp, INTERVAL '5' SECOND, 'US/Samoa') AS wid;
INSERT INTO mt VALUES (1, now('US/Samoa') + 1);
INSERT INTO mt VALUES (1, now('US/Samoa') + 5);
EOF
for _ in {1..100}; do