-
Notifications
You must be signed in to change notification settings - Fork 28.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-37316][SQL] Add code-gen for existence sort merge join
### What changes were proposed in this pull request? This PR is to add code-gen for Existence sort merge join. Followed the same algorithm used in iterator mode from `SortMergeJoinExec.scala` and `HashJoin.scala`. Check every left side row if there's an existing match from right side. Output every left side row and boolean flag to indicate whether it has a match or not. In addition, to help review as this PR triggers several TPCDS plan files change. The below file is having the real code change: * `SortMergeJoinExec.scala` ### Why are the changes needed? To improve performance for Existence sort merge join, and conclude all join types code-gen support for sort merge join. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing unit test in `ExistenceJoinSuite.scala` Closes #34601 from c21/existence-join-codegen. Authored-by: Cheng Su <chengsu@fb.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
- Loading branch information
Showing
7 changed files
with
318 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.