yiguolei commented on code in PR #38017:
URL: https://github.com/apache/doris/pull/38017#discussion_r1680927499


##########
be/src/olap/memtable.cpp:
##########
@@ -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);

Review Comment:
   add comment here, to explain why cloned block not input block



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to