-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Exec](join) Support column string64 to avoid join failed in string size overflow the uint32 #33511
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! 👍" |
|
TeamCity be ut coverage result: |
|
run buildall |
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.
clang-tidy made some suggestions
| void sort_column(const ColumnString64& column, EqualFlags& flags, IColumn::Permutation& perms, | ||
| EqualRange& range, bool last_column) 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.
warning: method 'sort_column' can be made static [readability-convert-member-functions-to-static]
| void sort_column(const ColumnString64& column, EqualFlags& flags, IColumn::Permutation& perms, | |
| EqualRange& range, bool last_column) const { | |
| static void sort_column(const ColumnString64& column, EqualFlags& flags, IColumn::Permutation& perms, | |
| EqualRange& range, bool last_column) { |
|
run buildall |
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.
clang-tidy made some suggestions
| for (size_t i = 0; i < length; ++i) | ||
| cur_offsets[old_size + i] = src_offsets[start + i] - nested_offset + prev_max_offset; |
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.
warning: statement should be inside braces [readability-braces-around-statements]
| for (size_t i = 0; i < length; ++i) | |
| cur_offsets[old_size + i] = src_offsets[start + i] - nested_offset + prev_max_offset; | |
| for (size_t i = 0; i < length; ++i) { | |
| cur_offsets[old_size + i] = src_offsets[start + i] - nested_offset + prev_max_offset; | |
| } |
| } | ||
| } | ||
|
|
||
| void ColumnMap::insert_range_from_ignore_overflow(const IColumn& src, size_t start, size_t length) { |
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.
warning: method 'insert_range_from_ignore_overflow' can be made static [readability-convert-member-functions-to-static]
be/src/vec/columns/column_map.h:104:
- void insert_range_from_ignore_overflow(const IColumn& src, size_t start,
+ static void insert_range_from_ignore_overflow(const IColumn& src, size_t start,| } | ||
| } | ||
|
|
||
| void ColumnStruct::insert_range_from_ignore_overflow(const IColumn& src, size_t start, |
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.
warning: method 'insert_range_from_ignore_overflow' can be made static [readability-convert-member-functions-to-static]
be/src/vec/columns/column_struct.h:147:
- void insert_range_from_ignore_overflow(const IColumn& src, size_t start,
+ static void insert_range_from_ignore_overflow(const IColumn& src, size_t start,|
run buildall |
|
TeamCity be ut coverage result: |
|
run buildall |
|
run buildall |
|
TeamCity be ut coverage result: |
|
run buildall |
|
TeamCity be ut coverage result: |
|
run buildall |
|
run buildall |
|
run buildall |
|
TeamCity be ut coverage result: |
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
TeamCity be ut coverage result: |
…ize overflow the uint32 (apache#33511)
This is imported by #33511. wrongly used ColumnStr<T> (); which violate C++20 standard(see https://wg21.cmeerw.net/cwg/issue2237) but still supported by clang up until now(see llvm/llvm-project#58112)
This is imported by #33511. wrongly used ColumnStr<T> (); which violate C++20 standard(see https://wg21.cmeerw.net/cwg/issue2237) but still supported by clang up until now(see llvm/llvm-project#58112)
Proposed changes
Before:
join right table column string over uint32
string column Length is too LargeAfter:
get the right result, but may exec slowly
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...