Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
Signed-off-by: before-Sunrise <[email protected]>
  • Loading branch information
before-Sunrise committed Jul 21, 2024
1 parent b348d0c commit 210e630
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/sql/test_join/R/test_v2_skew_join
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ select t1.c_key, t2.c_key from t1 left join [skew|t1.c_bigint(1,2,99999)] t2 on
5 2
6 3
-- !result
select t1.c_key, t2.c_key from t1 join [skew|t1.c_bigint(1,2,99999)] t2 on t1.c_bigint=t2.c_int and t1.c_key = t2.c_key order by t1.c_key, t2.c_key;
-- result:
1 1
-- !result
select t1.c_key, t2.c_key from t1 join [skew|t1.c_bigint(1,2,99999)] t2 on t1.c_bigint=t2.c_int order by t1.c_key, t2.c_key limit 2;
-- result:
1 1
Expand Down
3 changes: 3 additions & 0 deletions test/sql/test_join/T/test_v2_skew_join
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ select t1.c_key, t2.c_key from t1 join [skew|t1.c_bigint(1,2,99999)] t2 on t1.c_
-- left join
select t1.c_key, t2.c_key from t1 left join [skew|t1.c_bigint(1,2,99999)] t2 on t1.c_bigint=t2.c_int order by t1.c_key, t2.c_key;

-- multi column
select t1.c_key, t2.c_key from t1 join [skew|t1.c_bigint(1,2,99999)] t2 on t1.c_bigint=t2.c_int and t1.c_key = t2.c_key order by t1.c_key, t2.c_key;

-- topn can execute correctly
select t1.c_key, t2.c_key from t1 join [skew|t1.c_bigint(1,2,99999)] t2 on t1.c_bigint=t2.c_int order by t1.c_key, t2.c_key limit 2;

Expand Down

0 comments on commit 210e630

Please sign in to comment.