-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Bug](array) fix array column core dump in get_shrinked_column as not check type #33295
Conversation
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
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
bool is_variable_length() const override { return nested_column->is_variable_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 'get_family_name' can be made static [readability-convert-member-functions-to-static]
static const char* get_family_name() override { return "Nullable"; } |
@@ -120,6 +120,7 @@ class ColumnString final : public COWHelper<IColumn, ColumnString> { | |||
MutableColumnPtr clone_resized(size_t to_size) const override; | |||
|
|||
MutableColumnPtr get_shrinked_column() override; | |||
bool could_shrinked_column() override { return true; } |
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 'could_shrinked_column' can be made static [readability-convert-member-functions-to-static]
bool could_shrinked_column() override { return true; } | |
static bool could_shrinked_column() override { return true; } |
@@ -295,13 +295,22 @@ ColumnPtr ColumnStruct::replicate(const Offsets& offsets) const { | |||
return ColumnStruct::create(new_columns); | |||
} | |||
|
|||
bool ColumnStruct::could_shrinked_column() { |
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 'could_shrinked_column' can be made static [readability-convert-member-functions-to-static]
be/src/vec/columns/column_struct.h:158:
- bool could_shrinked_column() override;
+ static bool could_shrinked_column() override;
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. |
PR approved by anyone and no changes requested. |
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
… check type (#33295) * [Bug](array) fix array column core dump in get_shrinked_column as not check type * add function could_shrinked_column
… check type (apache#33295) * [Bug](array) fix array column core dump in get_shrinked_column as not check type * add function could_shrinked_column
… check type (apache#33295) * [Bug](array) fix array column core dump in get_shrinked_column as not check type * add function could_shrinked_column
… check type (apache#33295) (apache#33552) * [Bug](array) fix array column core dump in get_shrinked_column as not check type * add function could_shrinked_column
get_shrinked_column() function should only call by string type.
so should check column type.
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...