SleepyBear96 commented on a change in pull request #8764:
URL: https://github.com/apache/incubator-doris/pull/8764#discussion_r839141860
##########
File path: be/src/exec/olap_scanner.cpp
##########
@@ -335,6 +335,7 @@ Status OlapScanner::get_batch(RuntimeState* state,
RowBatch* batch, bool* eof) {
// make sure to reset null indicators since we're
overwriting
// the tuple assembled for the previous row
tuple->init(_tuple_desc->byte_size());
+ batch->agg_object_pool()->remove_last_one();
Review comment:
_batch_ in _Status OlapScanner::get_batch(RuntimeState*, RowBatch*,
bool*)_ was allocated by _void OlapScanNode::scanner_thread(OlapScanner*)_,
every scanner_thread has its own _batch_, it not a multi-thread case。
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]