This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 7f0aaff7024 branch-4.0: [fix](be) Fix UB and param order in 
assert_num_rows_operator #62800 (#62845)
7f0aaff7024 is described below

commit 7f0aaff7024e4ca8903124ff63ab10c316ed36b5
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu May 7 14:49:52 2026 +0800

    branch-4.0: [fix](be) Fix UB and param order in assert_num_rows_operator 
#62800 (#62845)
    
    Cherry-picked from #62800
    
    Co-authored-by: HappenLee <[email protected]>
---
 be/src/pipeline/exec/assert_num_rows_operator.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/be/src/pipeline/exec/assert_num_rows_operator.cpp 
b/be/src/pipeline/exec/assert_num_rows_operator.cpp
index 47a97e0af64..21cf27225b5 100644
--- a/be/src/pipeline/exec/assert_num_rows_operator.cpp
+++ b/be/src/pipeline/exec/assert_num_rows_operator.cpp
@@ -104,7 +104,7 @@ Status AssertNumRowsOperatorX::pull(doris::RuntimeState* 
state, vectorized::Bloc
         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;
@@ -117,8 +117,8 @@ Status AssertNumRowsOperatorX::pull(doris::RuntimeState* 
state, vectorized::Bloc
         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]

Reply via email to