diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.reference b/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.reference index 9a2c522ee14..26c5338cf01 100644 --- a/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.reference +++ b/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.reference @@ -8,3 +8,8 @@ 2 1970-01-01 00:00:03 3 3 1970-01-01 00:00:03 2 2 1970-01-01 00:00:04 4 3 1970-01-01 00:00:04 2 2 1970-01-01 00:00:05 5 3 1970-01-01 00:00:05 2 +3 1970-01-01 00:00:01 1 0 0000-00-00 00:00:00 0 +3 1970-01-01 00:00:02 2 0 0000-00-00 00:00:00 0 +3 1970-01-01 00:00:03 3 0 0000-00-00 00:00:00 0 +3 1970-01-01 00:00:04 4 0 0000-00-00 00:00:00 0 +3 1970-01-01 00:00:05 5 0 0000-00-00 00:00:00 0 diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql b/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql index 1fffe809508..7b6bcd0387f 100644 --- a/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql +++ b/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql @@ -4,8 +4,9 @@ DROP TABLE IF EXISTS A; DROP TABLE IF EXISTS B; CREATE TABLE A(k UInt32, t DateTime, a Float64) ENGINE = MergeTree() ORDER BY (k, t); -INSERT INTO A(k,t,a) VALUES (1,1,1),(1,2,2),(1,3,3),(1,4,4),(1,5,5); -INSERT INTO A(k,t,a) VALUES (2,1,1),(2,2,2),(2,3,3),(2,4,4),(2,5,5); +INSERT INTO A(k,t,a) VALUES (1,1,1),(1,2,2),(1,3,3),(1,4,4),(1,5,5); -- multiple joined values +INSERT INTO A(k,t,a) VALUES (2,1,1),(2,2,2),(2,3,3),(2,4,4),(2,5,5); -- one joined value +INSERT INTO A(k,t,a) VALUES (3,1,1),(3,2,2),(3,3,3),(3,4,4),(3,5,5); -- no joined values CREATE TABLE B(k UInt32, t DateTime, b Float64) ENGINE = MergeTree() ORDER BY (k, t); INSERT INTO B(k,t,b) VALUES (1,2,2),(1,4,4);