This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
new 7b098f7de0 [fix] fix be coredump caused by nullable const in logical
expr (#15476)
7b098f7de0 is described below
commit 7b098f7de0768cc8e18c320f8e48a070c56e5ec7
Author: TengJianPing <[email protected]>
AuthorDate: Fri Dec 30 00:27:01 2022 +0800
[fix] fix be coredump caused by nullable const in logical expr (#15476)
---
be/src/vec/functions/functions_logical.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/be/src/vec/functions/functions_logical.cpp
b/be/src/vec/functions/functions_logical.cpp
index 0c8bded880..1eb6ae958f 100644
--- a/be/src/vec/functions/functions_logical.cpp
+++ b/be/src/vec/functions/functions_logical.cpp
@@ -453,7 +453,11 @@ Status FunctionAnyArityLogical<Impl,
Name>::execute_impl(FunctionContext* contex
for (const auto arg_index : arguments) {
auto& data = block.get_by_position(arg_index);
args_in.push_back(data.column.get());
- is_nullable |= data.column->is_nullable();
+ if (const ColumnConst* const_col =
check_and_get_column<ColumnConst>(*data.column)) {
+ is_nullable |= const_col->get_data_column().is_nullable();
+ } else {
+ is_nullable |= data.column->is_nullable();
+ }
}
auto& result_info = block.get_by_position(result_index);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]