diff --git a/dbms/tests/queries/0_stateless/01053_window_view_watch_hop.reference b/dbms/tests/queries/0_stateless/01053_window_view_watch_hop.reference index 630096bc32b..62c2e82a1d4 100644 --- a/dbms/tests/queries/0_stateless/01053_window_view_watch_hop.reference +++ b/dbms/tests/queries/0_stateless/01053_window_view_watch_hop.reference @@ -1,15 +1,10 @@ -1 2020-01-09 11:59:59 2020-01-09 12:00:04 -1 2020-01-09 12:00:00 2020-01-09 12:00:05 -1 2020-01-09 11:59:58 2020-01-09 12:00:03 -1 2020-01-09 11:59:57 2020-01-09 12:00:02 -1 2020-01-09 12:00:01 2020-01-09 12:00:06 -1 2020-01-09 12:00:08 2020-01-09 12:00:13 -1 2020-01-09 12:00:07 2020-01-09 12:00:12 -1 2020-01-09 12:00:10 2020-01-09 12:00:15 -1 2020-01-09 12:00:09 2020-01-09 12:00:14 -1 2020-01-09 12:00:06 2020-01-09 12:00:11 -1 2020-01-09 12:00:20 2020-01-09 12:00:25 -1 2020-01-09 12:00:16 2020-01-09 12:00:21 -1 2020-01-09 12:00:18 2020-01-09 12:00:23 -1 2020-01-09 12:00:19 2020-01-09 12:00:24 -1 2020-01-09 12:00:17 2020-01-09 12:00:22 +1 1990-01-01 11:59:57 1990-01-01 12:00:02 +1 1990-01-01 11:59:58 1990-01-01 12:00:03 +1 1990-01-01 11:59:59 1990-01-01 12:00:04 +1 1990-01-01 12:00:00 1990-01-01 12:00:05 +1 1990-01-01 12:00:01 1990-01-01 12:00:06 +1 1990-01-01 12:00:06 1990-01-01 12:00:11 +1 1990-01-01 12:00:07 1990-01-01 12:00:12 +1 1990-01-01 12:00:08 1990-01-01 12:00:13 +1 1990-01-01 12:00:09 1990-01-01 12:00:14 +1 1990-01-01 12:00:10 1990-01-01 12:00:15 diff --git a/dbms/tests/queries/0_stateless/01053_window_view_watch_hop.sql b/dbms/tests/queries/0_stateless/01053_window_view_watch_hop.sql index ed8a7ce456c..7c5634c08f3 100644 --- a/dbms/tests/queries/0_stateless/01053_window_view_watch_hop.sql +++ b/dbms/tests/queries/0_stateless/01053_window_view_watch_hop.sql @@ -4,15 +4,12 @@ DROP TABLE IF EXISTS test.wv; DROP TABLE IF EXISTS test.mt; CREATE TABLE test.mt(a Int32, timestamp DateTime) Engine=MergeTree order by tuple(); -CREATE WINDOW VIEW test.wv AS SELECT count(a), HOP_START(wid) as w_start, HOP_END(wid) as w_end FROM test.mt group by HOP(timestamp, INTERVAL '1' SECOND, INTERVAL '5' SECOND) as wid; +CREATE WINDOW VIEW test.wv AS SELECT count(a), HOP_START(wid) as w_start, HOP_END(wid) as w_end FROM test.mt group by HOP(timestamp, INTERVAL '1' SECOND, INTERVAL '5' SECOND) as wid order by w_start; -INSERT INTO test.mt VALUES (1, toDateTime('2020-01-09 12:00:01')); +INSERT INTO test.mt VALUES (1, toDateTime('1990-01-01 12:00:01')); WATCH test.wv LIMIT 1; -INSERT INTO test.mt VALUES (3, toDateTime('2020-01-09 12:00:10')); -WATCH test.wv LIMIT 1; - -INSERT INTO test.mt VALUES (5, toDateTime('2020-01-09 12:00:20')); +INSERT INTO test.mt VALUES (3, toDateTime('1990-01-01 12:00:10')); WATCH test.wv LIMIT 1; DROP TABLE test.wv;