-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[fix](nereids) deduplicate scope slots #58683
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
base: master
Are you sure you want to change the base?
Conversation
…rted when executing the query: time_createdis ambiguous
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
| public Scope(Optional<Scope> outerScope, List<Slot> slots, List<Slot> asteriskSlots) { | ||
| this.outerScope = Objects.requireNonNull(outerScope, "outerScope can not be null"); | ||
| this.slots = Utils.fastToImmutableList(Objects.requireNonNull(slots, "slots can not be null")); | ||
| this.slots = Utils.fastToImmutableList(Objects.requireNonNull( |
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.
change parameters to Set<Slot> ?
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.
调用处拿到的也是list, 所以这里把签名改了也没有用,相当于把这个转换放到调用者那里执行
|
run buildall |
TPC-H: Total hot run time: 34435 ms |
TPC-DS: Total hot run time: 182790 ms |
FE Regression Coverage ReportIncrement line coverage |
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 34756 ms |
TPC-DS: Total hot run time: 181781 ms |
yujun777
left a comment
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.
LGTM
|
PR approved by anyone and no changes requested. |
FE Regression Coverage ReportIncrement line coverage |
If the slots in the scope are not deduplicated, some slots will be bounded twice, and optimizer throw exception because of ambigious.
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)