-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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](load) fix memtable agg functions #38017
[fix](load) fix memtable agg functions #38017
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! 👍" |
be/src/olap/memtable.cpp
Outdated
@@ -187,7 +187,7 @@ Status MemTable::insert(const vectorized::Block* input_block, | |||
_vec_row_comparator->set_block(&_input_mutable_block); | |||
_output_mutable_block = vectorized::MutableBlock::build_mutable_block(&cloneBlock); | |||
if (_keys_type != KeysType::DUP_KEYS) { | |||
_init_agg_functions(input_block); | |||
_init_agg_functions(&cloneBlock); |
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.
add comment here, to explain why cloned block not input block
be/src/olap/memtable.cpp
Outdated
@@ -187,6 +187,8 @@ Status MemTable::insert(const vectorized::Block* input_block, | |||
_vec_row_comparator->set_block(&_input_mutable_block); | |||
_output_mutable_block = vectorized::MutableBlock::build_mutable_block(&cloneBlock); | |||
if (_keys_type != KeysType::DUP_KEYS) { | |||
// there may be additional intermediate columns in input_block | |||
// we only need columns indicated by column offset in the output | |||
_init_agg_functions(&cloneBlock); |
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.
cloneBlock -> clone_block
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40273 ms
|
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40176 ms
|
TPC-DS: Total hot run time: 172571 ms
|
ClickBench: Total hot run time: 30.97 s
|
## Proposed changes fix init agg functions in memtable.
Proposed changes
fix init agg functions in memtable.