Skip to content

Commit

Permalink
add a test for a join b using(col)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yao Liu committed Sep 10, 2022
1 parent 334c978 commit d1e1189
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ private Object[][] provideTestSqlAndRowCount() {
// Specifically table A has 15 rows (10 on server1 and 5 on server2) and table B has 5 rows (all on server1),
// thus the final JOIN result will be 15 x 1 = 15.
new Object[]{"SELECT * FROM a JOIN b on a.col1 = b.col1", 15},
new Object[]{"SELECT * FROM a JOIN b USING (col1)", 15},


// Query with function in JOIN keys, table A and B are both (1, 42, 1, 42, 1), with table A cycling 3 times.
// Because:
Expand Down

0 comments on commit d1e1189

Please sign in to comment.