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

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


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 6cb71222804 [Bug](func) coredump in equal for null in function (#27843)
6cb71222804 is described below

commit 6cb71222804b903c7d413c9785f50b45dd31d863
Author: HappenLee <[email protected]>
AuthorDate: Fri Dec 1 10:54:04 2023 +0800

    [Bug](func) coredump in equal for null in function (#27843)
---
 be/src/vec/functions/comparison_equal_for_null.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/functions/comparison_equal_for_null.cpp 
b/be/src/vec/functions/comparison_equal_for_null.cpp
index 20f7e8859a7..d9d058e52ff 100644
--- a/be/src/vec/functions/comparison_equal_for_null.cpp
+++ b/be/src/vec/functions/comparison_equal_for_null.cpp
@@ -99,7 +99,8 @@ public:
                     SimpleFunctionFactory::instance().get_function("eq", 
eq_columns, return_type);
             DCHECK(func_eq);
             temporary_block.insert(ColumnWithTypeAndName {nullptr, 
return_type, ""});
-            func_eq->execute(context, temporary_block, {0, 1}, 2, 
input_rows_count);
+            RETURN_IF_ERROR(
+                    func_eq->execute(context, temporary_block, {0, 1}, 2, 
input_rows_count));
 
             if (left_nullable) {
                 auto res_column = 
std::move(*temporary_block.get_by_position(2).column).mutate();
@@ -127,7 +128,8 @@ public:
 
             Block temporary_block(eq_columns);
             temporary_block.insert(ColumnWithTypeAndName {nullptr, 
return_type, ""});
-            func_eq->execute(context, temporary_block, {0, 1}, 2, 
input_rows_count);
+            RETURN_IF_ERROR(
+                    func_eq->execute(context, temporary_block, {0, 1}, 2, 
input_rows_count));
 
             auto res_nullable_column = assert_cast<ColumnNullable*>(
                     
std::move(*temporary_block.get_by_position(2).column).mutate().get());


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to