Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-36822][SQL] BroadcastNestedLoopJoinExec should use all conditi…
…on instead of non-equi condition ### What changes were proposed in this pull request? Change `nonEquiCond` to all join condition at `JoinSelection.ExtractEquiJoinKeys` pattern. ### Why are the changes needed? At `JoinSelection`, with `ExtractEquiJoinKeys`, we use `nonEquiCond` as the join condition. It's wrong since there should exist some equi condition. ``` Seq(joins.BroadcastNestedLoopJoinExec( planLater(left), planLater(right), buildSide, joinType, nonEquiCond)) ``` But it's should not be a bug, since we always use the smj as the default join strategy for ExtractEquiJoinKeys. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? it's not a bug for now, but we should fix it in case we use this code path in future. Closes apache#34065 from ulysses-you/join-condition. Authored-by: ulysses-you <ulyssesyou18@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
- Loading branch information