From ffed1d6784f1c784efb27eca7c23432b22273440 Mon Sep 17 00:00:00 2001 From: zhiqiang-hhhh Date: Wed, 15 Nov 2023 15:59:33 +0800 Subject: [PATCH] NEED --- be/src/exec/exec_node.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/be/src/exec/exec_node.cpp b/be/src/exec/exec_node.cpp index c416420ef22974..4489f65778c273 100644 --- a/be/src/exec/exec_node.cpp +++ b/be/src/exec/exec_node.cpp @@ -537,7 +537,14 @@ Status ExecNode::do_projections(vectorized::Block* origin_block, vectorized::Blo if (rows != 0) { auto& mutable_columns = mutable_block.mutable_columns(); - DCHECK(mutable_columns.size() == _projections.size()); + + if (mutable_columns.size() != _projections.size()) { + return Status::InternalError( + "Logical error during processing {}, output of projections {} mismatches with " + "exec node output {}", + this->get_name(), _projections.size(), mutable_columns.size()); + } + for (int i = 0; i < mutable_columns.size(); ++i) { auto result_column_id = -1; RETURN_IF_ERROR(_projections[i]->execute(origin_block, &result_column_id));