ulysses-you commented on a change in pull request #32602:
URL: https://github.com/apache/spark/pull/32602#discussion_r637890544
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1307,6 +1308,69 @@ class AdaptiveQueryExecSuite
}
}
+ test("SPARK-35455: Enhance EliminateUnnecessaryJoin - single join") {
+ withSQLConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true",
+ SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
+ Seq(
+ // left semi join and empty left side
Review comment:
yeah, we cann't. Before we only check right side with
`LeftSemi/LeftAnti`.
And the test should use different column to do filter and join in case of
`InferFiltersFromConstraints` make right side empty. Updated it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]