HappenLee commented on code in PR #32673:
URL: https://github.com/apache/doris/pull/32673#discussion_r1540380193


##########
be/src/vec/exec/scan/vscanner.cpp:
##########
@@ -169,14 +183,29 @@ Status VScanner::_filter_output_block(Block* block) {
 }
 
 Status VScanner::_do_projections(vectorized::Block* origin_block, 
vectorized::Block* output_block) {
-    auto projection_timer = _parent ? _parent->_projection_timer : 
_local_state->_projection_timer;
-    auto exec_timer = _parent ? _parent->_exec_timer : 
_local_state->_exec_timer;
+    auto& projection_timer = _parent ? _parent->_projection_timer : 
_local_state->_projection_timer;
+    auto& exec_timer = _parent ? _parent->_exec_timer : 
_local_state->_exec_timer;
     SCOPED_TIMER(exec_timer);
     SCOPED_TIMER(projection_timer);
 
+    vectorized::Block input_block = *origin_block;

Review Comment:
   why here need do a copy work



-- 
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