branch:4.2: [improvement](cascades) Fuse project pushdown into join reorder #67541 - #68289
Merged
Merged
Conversation
Issue Number: None
Related PR: None
Problem Summary: AddProjectForJoin inserts a Project above every Join before classic Cascades exploration. The standalone PushDownProjectThroughSemiJoin and PushDownProjectThroughInnerOuterJoin rules therefore expand child groups and assemble temporary plans for many slot-only Projects before rejecting them. Reuse a shared Project normalization helper from the Project-aware join reorder rules and remove the standalone rules from classic registration, while preserving their after-DPHyp registration. Local plan-only comparison kept the physical plan fingerprint and root cost unchanged for 122 TPC-H, TPC-DS, and DPHyp smoke queries. Across 12 JMH configurations, candidate mean planning time and allocation per operation were lower in every configuration; a 9-table JFR workload reduced matcher allocation by 34.4% and plan-assembly allocation by 39.4%.
Reduce Nereids classic Cascades planning overhead for queries with multiple joins.
- Test: Unit Test
- 24 targeted FE unit tests passed
- FE Checkstyle passed
- Behavior changed: Yes. Classic Cascades performs complex Project normalization only while producing join reorder alternatives; after-DPHyp behavior is unchanged.
- Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
FE Regression Coverage ReportIncrement line coverage |
Contributor
Author
|
run buildall |
Contributor
FE UT Coverage ReportIncrement line coverage |
Contributor
Author
|
run buildall |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
picked from #67541