Skip to content

Commit

Permalink
[UT] Fix unstable test case
Browse files Browse the repository at this point in the history
Signed-off-by: Seaven <[email protected]>
  • Loading branch information
Seaven committed Dec 3, 2024
1 parent c1570f0 commit 65fe2b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions test/sql/test_low_cardinality/R/test_low_cardinality_array
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,11 @@ insert into s2 select * from s2;
-- !result
[UC] analyze full table s1;
-- result:
test_db_4b3d563daf0f46d6b3eed47e1713a8da.s1 analyze status OK
test_db_6dee41681e184222aa5562c8ae3fad8d.s1 analyze status OK
-- !result
[UC] analyze full table s2;
-- result:
test_db_4b3d563daf0f46d6b3eed47e1713a8da.s2 analyze status OK
test_db_6dee41681e184222aa5562c8ae3fad8d.s2 analyze status OK
-- !result
function: wait_global_dict_ready('a1', 's1')
-- result:
Expand Down Expand Up @@ -368,12 +368,12 @@ from s2 where a2[2] = 'GD' order by v1 limit 2;
fujian
fujian
-- !result
select * from s1 join s2 on s1.v1 = s2.v1 order by s2.v1, s2.v2 limit 2;
select * from s1 join s2 on s1.v1 = s2.v1 and s1.v2 = s2.v2 order by s2.v1, s2.v2 limit 2;
-- result:
28200 302 ["Henan","Chongqing","Ningxia","Tibet","Yunnan"] ["JL","BJ"] 28200 302 ["Henan","Chongqing","Ningxia","Tibet","Yunnan"] ["JL","BJ"]
28200 302 ["Henan","Chongqing","Ningxia","Tibet","Yunnan"] ["JL","BJ"] 28200 302 ["Henan","Chongqing","Ningxia","Tibet","Yunnan"] ["JL","BJ"]
-- !result
select array_max(s1.a2), array_distinct(s2.a1) from s1 join s2 on s1.v1 = s2.v1 order by s2.v1, s2.v2 limit 2;
select array_max(s1.a2), array_distinct(s2.a1) from s1 join s2 on s1.v1 = s2.v1 and s1.v2 = s2.v2 order by s2.v1, s2.v2 limit 2;
-- result:
JL ["Henan","Chongqing","Ningxia","Tibet","Yunnan"]
JL ["Henan","Chongqing","Ningxia","Tibet","Yunnan"]
Expand Down Expand Up @@ -522,11 +522,11 @@ insert into s4 values
-- !result
[UC] analyze full table s3;
-- result:
test_db_b600618464624c9680470fa4a36a2acf.s3 analyze status OK
test_db_71dab433600a49a6acd0a94e9315d982.s3 analyze status OK
-- !result
[UC] analyze full table s4;
-- result:
test_db_b600618464624c9680470fa4a36a2acf.s4 analyze status OK
test_db_71dab433600a49a6acd0a94e9315d982.s4 analyze status OK
-- !result
function: wait_global_dict_ready('a1', 's3')
-- result:
Expand Down
4 changes: 2 additions & 2 deletions test/sql/test_low_cardinality/T/test_low_cardinality_array
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ from s2 where a1[1] = 'Jiangsu' and a2[2] = 'GD' order by v1 limit 2;
select lower(upper(array_min(reverse(array_sort(a1)))))
from s2 where a2[2] = 'GD' order by v1 limit 2;

select * from s1 join s2 on s1.v1 = s2.v1 order by s2.v1, s2.v2 limit 2;
select array_max(s1.a2), array_distinct(s2.a1) from s1 join s2 on s1.v1 = s2.v1 order by s2.v1, s2.v2 limit 2;
select * from s1 join s2 on s1.v1 = s2.v1 and s1.v2 = s2.v2 order by s2.v1, s2.v2 limit 2;
select array_max(s1.a2), array_distinct(s2.a1) from s1 join s2 on s1.v1 = s2.v1 and s1.v2 = s2.v2 order by s2.v1, s2.v2 limit 2;

select * from
(select array_max(a1) x1 from s1) t1 join
Expand Down

0 comments on commit 65fe2b6

Please sign in to comment.