-
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
[FIX](complex-type) fix agg table with complex type with replace state #24873
[FIX](complex-type) fix agg table with complex type with replace state #24873
Conversation
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
@@ -227,12 +227,32 @@ class ColumnArray final : public COWHelper<IColumn, ColumnArray> { | |||
void insert_indices_from(const IColumn& src, const int* indices_begin, | |||
const int* indices_end) override; | |||
|
|||
void replace_column_data(const IColumn&, size_t row, size_t self_row = 0) override { | |||
LOG(FATAL) << "replace_column_data not implemented"; | |||
void replace_column_data(const IColumn& rhs, size_t row, size_t self_row = 0) override { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
@@ -140,11 +140,34 @@ class ColumnMap final : public COWHelper<IColumn, ColumnMap> { | |||
return append_data_by_selector_impl<ColumnMap>(res, selector); | |||
} | |||
|
|||
void replace_column_data(const IColumn&, size_t row, size_t self_row = 0) override { | |||
LOG(FATAL) << "replace_column_data not implemented"; | |||
void replace_column_data(const IColumn& rhs, size_t row, size_t self_row = 0) 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.
warning: method 'replace_column_data' can be made const [readability-make-member-function-const]
void replace_column_data(const IColumn& rhs, size_t row, size_t self_row = 0) override { | |
void replace_column_data(const IColumn& rhs, size_t row, size_t self_row = 0) const override { |
be/src/vec/columns/column_nullable.h
Outdated
@@ -357,6 +357,25 @@ class ColumnNullable final : public COWHelper<IColumn, ColumnNullable> { | |||
} | |||
} | |||
|
|||
void replace_batch_column_data(const IColumn& rhs, size_t num_rows, size_t row, |
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 'replace_batch_column_data' can be made const [readability-make-member-function-const]
be/src/vec/columns/column_nullable.h:360:
- size_t self_row = 0) override {
+ size_t self_row = 0) const override {
@@ -130,11 +131,31 @@ class ColumnStruct final : public COWHelper<IColumn, ColumnStruct> { | |||
void append_data_by_selector(MutableColumnPtr& res, const Selector& selector) const override { | |||
return append_data_by_selector_impl<ColumnStruct>(res, selector); | |||
} | |||
void replace_column_data(const IColumn&, size_t row, size_t self_row = 0) override { | |||
LOG(FATAL) << "replace_column_data not implemented"; | |||
void replace_column_data(const IColumn& rhs, size_t row, size_t self_row = 0) 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.
warning: method 'replace_column_data' can be made const [readability-make-member-function-const]
void replace_column_data(const IColumn& rhs, size_t row, size_t self_row = 0) override { | |
void replace_column_data(const IColumn& rhs, size_t row, size_t self_row = 0) const override { |
be/src/vec/columns/column_struct.h
Outdated
} | ||
|
||
void replace_batch_column_data(const IColumn& rhs, size_t num_rows, size_t row, |
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 'replace_batch_column_data' can be made const [readability-make-member-function-const]
be/src/vec/columns/column_struct.h:143:
- size_t self_row = 0) override {
+ size_t self_row = 0) const override {
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
TeamCity be ut coverage result: |
(From new machine)TeamCity pipeline, clickbench performance test result: |
run buildall |
TeamCity be ut coverage result: |
(From new machine)TeamCity pipeline, clickbench performance test result: |
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. |
run p1 |
apache#24873) fix agg table with complex type with replace state
#24873) fix agg table with complex type with replace state
Proposed changes
Issue Number: close #xxx
when we use replace agg state which we only supported in complex type, fix be not implement replace_column_data with agg value to iterator . so we will got a be core below this
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...