Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed Aug 10, 2023
1 parent 219526b commit 62ab9cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions be/src/vec/functions/if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,14 @@ class FunctionIf : public IFunction {
const ColumnWithTypeAndName& arg_cond = block.get_by_position(arguments[0]);

if (auto* then_is_const = check_and_get_column<ColumnConst>(*arg_then.column)) {
if (then_is_const->only_null() == false && check_and_get_column<ColumnNullable>(then_is_const->get_data_column())) {
if (then_is_const->only_null() == false &&
check_and_get_column<ColumnNullable>(then_is_const->get_data_column())) {
arg_then.column = then_is_const->get_data_column_ptr();
}
}
if (auto* else_is_const = check_and_get_column<ColumnConst>(*arg_else.column)) {
if (else_is_const->only_null() == false && check_and_get_column<ColumnNullable>(else_is_const->get_data_column())) {
if (else_is_const->only_null() == false &&
check_and_get_column<ColumnNullable>(else_is_const->get_data_column())) {
arg_else.column = else_is_const->get_data_column_ptr();
}
}
Expand Down

0 comments on commit 62ab9cc

Please sign in to comment.