forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-35077][SQL] Migrate to transformWithPruning for leftover optim…
…izer rules ### What changes were proposed in this pull request? Migrate to transformWithPruning for the following queries: - SimplifyExtractValueOps - NormalizeFloatingNumbers - PushProjectionThroughUnion - PushDownPredicates - ExtractPythonUDFFromAggregate - ExtractPythonUDFFromJoinCondition - ExtractGroupingPythonUDFFromAggregate - ExtractPythonUDFs - CleanupDynamicPruningFilters </google-sheets-html-origin> ### Why are the changes needed? Reduce the number of tree traversals and hence improve the query compilation latency. ### How was this patch tested? Existing tests. Performance diff: <google-sheets-html-origin><style type="text/css"></style> | Baseline | Experiment | Experiment/Baseline -- | -- | -- | -- SimplifyExtractValueOps | 99367049 | 3679579 | 0.04 NormalizeFloatingNumbers | 24717928 | 20451094 | 0.83 PushProjectionThroughUnion | 14130245 | 7913551 | 0.56 PushDownPredicates | 276333542 | 261246842 | 0.95 ExtractPythonUDFFromAggregate | 6459451 | 2683556 | 0.42 ExtractPythonUDFFromJoinCondition | 5695404 | 2504573 | 0.44 ExtractGroupingPythonUDFFromAggregate | 5546701 | 1858755 | 0.34 ExtractPythonUDFs | 58726458 | 1598518 | 0.03 CleanupDynamicPruningFilters | 26606652 | 15417936 | 0.58 OptimizeSubqueries | 3072287940 | 2876462708 | 0.94 </google-sheets-html-origin> Closes apache#32721 from sigmod/pushdown. Authored-by: Yingyi Bu <[email protected]> Signed-off-by: Gengliang Wang <[email protected]>
- Loading branch information
1 parent
c2de0a6
commit 3f6322f
Showing
7 changed files
with
32 additions
and
12 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
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
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
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