Skip to content

Commit

Permalink
change by cr
Browse files Browse the repository at this point in the history
  • Loading branch information
HappenLee committed Dec 14, 2024
1 parent 78ac19c commit 0ce7a69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions be/src/vec/exprs/vcompound_pred.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class VCompoundPred : public VectorizedFnCall {
if (_can_fast_execute && fast_execute(context, block, result_column_id)) {
return Status::OK();
}
if (get_num_children() == 1 || !_all_child_is_not_const()) {
if (get_num_children() == 1 || _has_const_child()) {
return VectorizedFnCall::execute(context, block, result_column_id);
}

Expand Down Expand Up @@ -380,9 +380,9 @@ class VCompoundPred : public VectorizedFnCall {
return (l_null & r_null) | (r_null & (r_null ^ a)) | (l_null & (l_null ^ b));
}

bool _all_child_is_not_const() const {
return std::ranges::all_of(
_children, [](const VExprSPtr& arg) -> bool { return !arg->is_constant(); });
bool _has_const_child() const {
return std::ranges::any_of(_children,
[](const VExprSPtr& arg) -> bool { return arg->is_constant(); });
}

std::pair<uint8*, uint8*> _get_raw_data_and_null_map(ColumnPtr column,
Expand Down

0 comments on commit 0ce7a69

Please sign in to comment.