Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Aug 19, 2024
1 parent 5588878 commit 944d5b1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class CometJoinSuite extends CometTestBase {
}
}

/*
test("join - self join") {
val df1 = testData.select(testData("key")).as("df1")
val df2 = testData.select(testData("key")).as("df2")
Expand Down Expand Up @@ -335,10 +336,10 @@ class CometJoinSuite extends CometTestBase {
}
}
}
*/

test("SortMergeJoin with join filter") {
withSQLConf(
CometConf.COMET_EXEC_SORT_MERGE_JOIN_DISABLED.key -> "true",
SQLConf.ADAPTIVE_AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1",
SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
withParquetTable((0 until 10).map(i => (i, i % 5)), "tbl_a") {
Expand Down Expand Up @@ -372,9 +373,10 @@ class CometJoinSuite extends CometTestBase {

val df6 = sql(
"SELECT * FROM tbl_a FULL JOIN tbl_b ON tbl_a._2 = tbl_b._1 " +
"AND tbl_a._1 > tbl_b._2")
"AND tbl_a._1 > tbl_b._2 ORDER BY tbl_a._1, tbl_a._2")
df6.explain()
checkSparkAnswer(df6)
df6.show(100)
// checkSparkAnswer(df6)

/*
val df7 = sql(
Expand Down

0 comments on commit 944d5b1

Please sign in to comment.