-
Notifications
You must be signed in to change notification settings - Fork 28.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-34702][SQL] Avoid unnecessary code generation in JoinCodegenSu…
…pport.genBuildSideVars ### What changes were proposed in this pull request? As a followup from code review in #31736 (comment) , for `JoinCodegenSupport.genBuildSideVars`, we only need to generate build side variables with default values for LEFT OUTER and RIGHT OUTER join, but not for other join types (i.e. LEFT SEMI and LEFT ANTI). Create this PR to clean up the code. In addition, change `BroadcastNestedLoopJoinExec` unit test to cover both whole stage code-gen enabled and disabled. Harden the unit tests to exercise all code paths. ### Why are the changes needed? Avoid unnecessary code generation. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing unit tests. * BHJ and SHJ inner join is covered in `InnerJoinSuite.scala` * BHJ and SHJ left outer and right outer join are covered in `OuterJoinSuite.scala` * BHJ and SHJ left semi, left anti and existence join are covered in `ExistenceJoinSuite.scala` Closes #31802 from c21/join-codegen-fix. Authored-by: Cheng Su <chengsu@fb.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
20 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