-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[opt](nereids)push down assert one row join #57414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Contributor
Author
|
run buildall |
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
TPC-DS: Total hot run time: 190579 ms |
ClickBench: Total hot run time: 27.71 s |
Contributor
Author
|
run p0 |
Contributor
FE Regression Coverage ReportIncrement line coverage |
starocean999
approved these changes
Oct 30, 2025
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
Jibing-Li
approved these changes
Oct 31, 2025
dwdwqfwe
pushed a commit
to dwdwqfwe/doris
that referenced
this pull request
Oct 31, 2025
### What problem does this PR solve? * Push down join when one child is LogicalAssertNumRows. * select * from T1 join T2 where T1.b=T2.b and T1.a > (select x from T3 ...) * * <pre> * Case 1: Push to left child * Before: * topJoin(T1.a > x) * |-- Project * | `-- bottomJoin(T1.b = T2.b) * | |-- Scan(T1) * | `-- Scan(T2) * `-- LogicalAssertNumRows(output=(x, ...)) * * After: * Project * |-- topJoin(T1.b = T2.b) * |-- bottomJoin(T1.a > x) * |-- Scan(T1) * `-- LogicalAssertNumRows(output=(x, ...)) * `-- Scan(T2) * * Case 2: Push to right child * Before: * topJoin(T2.a > x) * |-- Project * | `-- bottomJoin(T1.b = T2.b) * | |-- Scan(T1) * | `-- Scan(T2) * `-- LogicalAssertNumRows(output=(x, ...)) * * After: * Project * |-- topJoin(T1.b = T2.b) * |--Scan(T1) * `-- bottomJoin(T2.a > x) * |-- Scan(T2) * `-- LogicalAssertNumRows(output=(x, ...))
16 tasks
16 tasks
englefly
added a commit
that referenced
this pull request
Nov 24, 2025
…bug (#58174) ### What problem does this PR solve? pr #57414 will generate error project: LogicalProject(a as b, b as c), in which 'b as c' is not correct, because 'b' is not in output of project.child() pr #57804 fixed above issue, but made another issue, that is when the bottom project is not resued in result plan, some aliases definitions are lost.
nagisa-kunhah
pushed a commit
to nagisa-kunhah/doris
that referenced
this pull request
Dec 14, 2025
…bug (apache#58174) ### What problem does this PR solve? pr apache#57414 will generate error project: LogicalProject(a as b, b as c), in which 'b as c' is not correct, because 'b' is not in output of project.child() pr apache#57804 fixed above issue, but made another issue, that is when the bottom project is not resued in result plan, some aliases definitions are lost.
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.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)