HappenLee commented on code in PR #35682:
URL: https://github.com/apache/doris/pull/35682#discussion_r1627615153
##########
be/src/pipeline/local_exchange/local_exchanger.cpp:
##########
@@ -261,6 +264,98 @@ Status PassToOneExchanger::get_block(RuntimeState* state,
vectorized::Block* blo
return Status::OK();
}
+Status LocalMergeSortExchanger::sink(RuntimeState* state, vectorized::Block*
in_block, bool eos,
+ LocalExchangeSinkLocalState& local_state)
{
+ vectorized::Block new_block;
+ if (!_free_blocks.try_dequeue(new_block)) {
+ new_block = {in_block->clone_empty()};
+ }
+ new_block.swap(*in_block);
+ DCHECK_LE(local_state._channel_id, _data_queue.size());
+ _data_queue[local_state._channel_id].enqueue(std::move(new_block));
+ add_mem_usage(local_state, new_block.allocated_bytes());
+ local_state._shared_state->set_ready_to_read(0);
Review Comment:
the logic is error, not add one block can read
--
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]