HappenLee commented on code in PR #32317: URL: https://github.com/apache/doris/pull/32317#discussion_r1527748803
########## be/src/pipeline/exec/repeat_operator.cpp: ########## @@ -228,8 +235,16 @@ Status RepeatOperatorX::pull(doris::RuntimeState* state, vectorized::Block* outp _repeat_id_idx = 0; } } else if (local_state._expr_ctxs.empty()) { - DCHECK(!_intermediate_block || (_intermediate_block && _intermediate_block->rows() == 0)); - output_block->swap(_child_block); + auto m_block = vectorized::VectorizedUtils::build_mutable_mem_reuse_block(output_block, + _output_slots); + auto rows = _child_block.rows(); + auto& columns = m_block.mutable_columns(); + + for (int repeat_id_idx = 0; repeat_id_idx < _repeat_id_list.size(); repeat_id_idx++) { + std::size_t cur_col = 0; + RETURN_IF_ERROR( Review Comment: why call ```local_state.add_grouping_id_column(rows, 0, columns, repeat_id_idx));``` -- 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