From 6acac83435bf6d1f1cff980c672e0f777a772644 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 23 Apr 2024 14:51:28 +0800 Subject: [PATCH] fix(test/join): order by t1 & ts --- tests/script/tsim/join/join_scalar1.sim | 2 +- tests/script/tsim/join/join_scalar2.sim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/script/tsim/join/join_scalar1.sim b/tests/script/tsim/join/join_scalar1.sim index d2c7d355a9..8ae1a302cd 100644 --- a/tests/script/tsim/join/join_scalar1.sim +++ b/tests/script/tsim/join/join_scalar1.sim @@ -1030,7 +1030,7 @@ endi sql_error select a.ts from sta a left window join sta b on a.t1 = b.t1 window_offset(-1s, 1s) where a.col1 < 3 or a.col1 > 4 having(count(a.ts) > 1) order by b.col1; sql_error select a.ts from sta a left window join sta b on a.t1 = b.t1 window_offset(-1s, 1s) where a.col1 < 3 or a.col1 > 4 having(count(a.ts) > 1) order by b.tbname; sql select count(b.col1) from sta a left window join sta b on a.t1 = b.t1 window_offset(-1s, 1s) where (a.col1 < 3 or a.col1 > 4) and b.col1 is not null; -sql select count(b.col1) from sta a left window join sta b on a.t1 = b.t1 window_offset(-1s, 1s) where a.col1 < 3 or a.col1 > 4 order by a.t1; +sql select count(b.col1),a.t1,a.ts from sta a left window join sta b on a.t1 = b.t1 window_offset(-1s, 1s) where a.col1 < 3 or a.col1 > 4 order by 2,3; if $rows != 5 then return -1 endi diff --git a/tests/script/tsim/join/join_scalar2.sim b/tests/script/tsim/join/join_scalar2.sim index 9cdef65055..e76ea3248c 100644 --- a/tests/script/tsim/join/join_scalar2.sim +++ b/tests/script/tsim/join/join_scalar2.sim @@ -725,7 +725,7 @@ endi sql_error select a.ts from sta b right window join sta a on a.t1 = b.t1 window_offset(-1s, 1s) where a.col1 < 3 or a.col1 > 4 having(count(a.ts) > 1) order by b.col1; sql_error select a.ts from sta b right window join sta a on a.t1 = b.t1 window_offset(-1s, 1s) where a.col1 < 3 or a.col1 > 4 having(count(a.ts) > 1) order by b.tbname; sql select count(b.col1) from sta b right window join sta a on a.t1 = b.t1 window_offset(-1s, 1s) where (a.col1 < 3 or a.col1 > 4) and b.col1 is not null; -sql select count(b.col1) from sta b right window join sta a on a.t1 = b.t1 window_offset(-1s, 1s) where a.col1 < 3 or a.col1 > 4 order by a.t1; +sql select count(b.col1),a.t1,a.ts from sta b right window join sta a on a.t1 = b.t1 window_offset(-1s, 1s) where a.col1 < 3 or a.col1 > 4 order by 2,3; if $rows != 5 then return -1 endi