-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](array)fix array_except/union for left const return only one row result #36776
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. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40132 ms |
TPC-DS: Total hot run time: 173962 ms |
ClickBench: Total hot run time: 31.06 s |
| size_t current = 0; | ||
| Impl impl; | ||
| for (size_t row = 0; row < left_data.offsets_ptr->size(); ++row) { | ||
| size_t row_size = left_data.offsets_ptr->size(); |
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.
what if right const
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.
right and left is all not const ==> left_data.offsets_ptr->size()
right const && left is not const ==> left_data.offsets_ptr->size()
right is not const && left is const ==> right.offsets_ptr->size()
right and left is all const ==> left_data.offsets_ptr->size()
|
PR approved by anyone and no changes requested. |
eldenmoon
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 at least one committer and no changes requested. |
… result (#36776) if left param in array_except/union is const, it will make ret column only has one row column which will make result wrong
Proposed changes
if left param in array_except/union is const, it will make ret column only has one row column which will make result wrong
Issue Number: close #xxx