morningman commented on code in PR #9612: URL: https://github.com/apache/incubator-doris/pull/9612#discussion_r874547335
########## be/src/vec/exec/vschema_scan_node.cpp: ########## @@ -69,12 +69,14 @@ Status VSchemaScanNode::get_next(RuntimeState* state, vectorized::Block* block, if (!_is_init) return Status::InternalError("used before initialize."); RETURN_IF_ERROR(exec_debug_action(TExecNodePhase::GETNEXT)); RETURN_IF_CANCELLED(state); - bool mem_reuse = block->mem_reuse(); - DCHECK(block->rows() == 0); std::vector<vectorized::MutableColumnPtr> columns(_slot_num); bool schema_eos = false; do { + bool mem_reuse = block->mem_reuse(); Review Comment: For mysql and odbc scan node, why we don't need to move this line in the loop? -- 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