This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 2a58e43f4f9 branch-4.1: [fix](be) Fix UB and param order in
assert_num_rows_operator #62800 (#62837)
2a58e43f4f9 is described below
commit 2a58e43f4f90a420dc24025fe3844d4766fea9f8
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Apr 27 10:07:17 2026 +0800
branch-4.1: [fix](be) Fix UB and param order in assert_num_rows_operator
#62800 (#62837)
Cherry-picked from #62800
Co-authored-by: HappenLee <[email protected]>
---
be/src/exec/operator/assert_num_rows_operator.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/be/src/exec/operator/assert_num_rows_operator.cpp
b/be/src/exec/operator/assert_num_rows_operator.cpp
index c8097a1800c..2188375515d 100644
--- a/be/src/exec/operator/assert_num_rows_operator.cpp
+++ b/be/src/exec/operator/assert_num_rows_operator.cpp
@@ -102,7 +102,7 @@ Status AssertNumRowsOperatorX::pull(doris::RuntimeState*
state, Block* block, bo
auto to_string_lambda = [](TAssertion::type assertion) {
auto it = _TAssertion_VALUES_TO_NAMES.find(assertion);
- if (it == _TAggregationOp_VALUES_TO_NAMES.end()) {
+ if (it == _TAssertion_VALUES_TO_NAMES.end()) {
return "NULL";
} else {
return it->second;
@@ -115,8 +115,8 @@ Status AssertNumRowsOperatorX::pull(doris::RuntimeState*
state, Block* block, bo
return Status::Cancelled(
"AssertOperator(node id: {}) Expected {} {} to be returned by
expression {}(actual "
"rows: {}) ",
- _node_id, to_string_lambda(_assertion), _desired_num_rows,
num_rows_returned,
- _subquery_string);
+ _node_id, to_string_lambda(_assertion), _desired_num_rows,
_subquery_string,
+ num_rows_returned);
}
RETURN_IF_ERROR(local_state.filter_block(local_state._conjuncts, block,
block->columns()));
return Status::OK();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]