-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](nereids)PushDownJoinOnAssertNumRows create invalid LogicalProject node #57804
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
TPC-DS: Total hot run time: 188851 ms |
ClickBench: Total hot run time: 27.49 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
| return null; | ||
| } | ||
|
|
||
| private LogicalProject<? extends Plan> projectAliasOnPlan(List<Alias> projections, Plan child) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add ut for this function
9ca02ea
2ba9bb3 to
9ca02ea
Compare
|
run buildall |
TPC-H: Total hot run time: 34387 ms |
TPC-DS: Total hot run time: 188885 ms |
ClickBench: Total hot run time: 27.43 s |
FE Regression Coverage ReportIncrement line coverage |
1 similar comment
FE Regression Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
FE Regression Coverage ReportIncrement line coverage |
…ct node (apache#57804) when push alias into child node, we should always create a new project node for it. input: ``` Alias->cast(col_int_undef_signed#30 as DOUBLE) AS `cast(col_int_undef_signed as DOUBLE)`apache#70 childProject->LogicalProject(projects=[col_int_undef_signed2#50 AS `col_int_undef_signed`apache#30]) ``` error case: ```LogicalProject(projects=[col_int_undef_signed2#50 AS `col_int_undef_signed`apache#30, cast(col_int_undef_signed#30 as DOUBLE) AS `cast(col_int_undef_signed as DOUBLE)`apache#70])``` correct: ``` LogicalProject(projects=[col_int_undef_signed#30, cast(col_int_undef_signed#30 as DOUBLE) AS `cast(col_int_undef_signed as DOUBLE)`apache#70]) LogicalProject(projects=[col_int_undef_signed2#50 AS `col_int_undef_signed`apache#30]) ```
…ct node (apache#57804) when push alias into child node, we should always create a new project node for it. input: ``` Alias->cast(col_int_undef_signed#30 as DOUBLE) AS `cast(col_int_undef_signed as DOUBLE)`apache#70 childProject->LogicalProject(projects=[col_int_undef_signed2#50 AS `col_int_undef_signed`apache#30]) ``` error case: ```LogicalProject(projects=[col_int_undef_signed2#50 AS `col_int_undef_signed`apache#30, cast(col_int_undef_signed#30 as DOUBLE) AS `cast(col_int_undef_signed as DOUBLE)`apache#70])``` correct: ``` LogicalProject(projects=[col_int_undef_signed#30, cast(col_int_undef_signed#30 as DOUBLE) AS `cast(col_int_undef_signed as DOUBLE)`apache#70]) LogicalProject(projects=[col_int_undef_signed2#50 AS `col_int_undef_signed`apache#30]) ```
…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.
…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.
when push alias into child node, we should always create a new project node for it.
input:
error case:
LogicalProject(projects=[col_int_undef_signed2#50 AS `col_int_undef_signed`#30, cast(col_int_undef_signed#30 as DOUBLE) AS `cast(col_int_undef_signed as DOUBLE)`#70])correct:
Issue Number: close #xxx
Related PR: (#57414)
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)