Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class CometSparkSessionExtensions

case op: SortMergeJoinExec
if CometConf.COMET_EXEC_SORT_MERGE_JOIN_ENABLED.get(conf) &&
op.children.forall(isCometNative(_)) =>
op.children.forall(isCometNative) =>
val newOp = transform1(op)
newOp match {
case Some(nativeOp) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2859,11 +2859,7 @@ object QueryPlanSerde extends Logging with ShimQueryPlanSerde with CometExprShim
case RightOuter => JoinType.RightOuter
case FullOuter => JoinType.FullOuter
case LeftSemi => JoinType.LeftSemi
// TODO: DF SMJ with join condition fails TPCH q21
case LeftAnti if condition.isEmpty => JoinType.LeftAnti
case LeftAnti =>
withInfo(join, "LeftAnti SMJ join with condition is not supported")
return None
case LeftAnti => JoinType.LeftAnti
case _ =>
// Spark doesn't support other join types
withInfo(op, s"Unsupported join type ${join.joinType}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class CometJoinSuite extends CometTestBase {
v.toDouble,
v.toString,
v % 2 == 0,
v.toString().getBytes,
v.toString.getBytes,
Decimal(v))

withParquetTable((0 until 10).map(i => manyTypes(i, i % 5)), "tbl_a") {
Expand Down Expand Up @@ -391,9 +391,6 @@ class CometJoinSuite extends CometTestBase {
"AND tbl_a._2 >= tbl_b._1")
checkSparkAnswerAndOperator(df9)

// TODO: Enable these tests after fixing the issue:
// https://github.com/apache/datafusion-comet/issues/861
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not just remove the comment. This test is also ignored. We need to re-enable it too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, thanks @viirya

val df10 = sql(
"SELECT * FROM tbl_a LEFT ANTI JOIN tbl_b ON tbl_a._2 = tbl_b._1 " +
"AND tbl_a._2 >= tbl_b._1")
Expand All @@ -403,7 +400,6 @@ class CometJoinSuite extends CometTestBase {
"SELECT * FROM tbl_b LEFT ANTI JOIN tbl_a ON tbl_a._2 = tbl_b._1 " +
"AND tbl_a._2 >= tbl_b._1")
checkSparkAnswerAndOperator(df11)
*/
}
}
}
Expand Down