You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/07/08 22:25:38 UTC

[doris] branch master updated: [BUG] fix DCHECK failed for vectorized InPredicate (#10709)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 08384fea1c [BUG] fix DCHECK failed for vectorized InPredicate (#10709)
08384fea1c is described below

commit 08384fea1ce125b4f2809a3b2b16e038ee9a047d
Author: Gabriel <ga...@gmail.com>
AuthorDate: Sat Jul 9 06:25:32 2022 +0800

    [BUG] fix DCHECK failed for vectorized InPredicate (#10709)
---
 be/src/vec/exprs/vin_predicate.cpp | 2 +-
 be/src/vec/functions/in.cpp        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/exprs/vin_predicate.cpp b/be/src/vec/exprs/vin_predicate.cpp
index 0d6cceac4f..5f2d321ac8 100644
--- a/be/src/vec/exprs/vin_predicate.cpp
+++ b/be/src/vec/exprs/vin_predicate.cpp
@@ -46,7 +46,7 @@ Status VInPredicate::prepare(RuntimeState* state, const RowDescriptor& desc,
             fmt::format("({} {} set)", _children[0]->expr_name(), _is_not_in ? "not_in" : "in");
     _is_prepare = true;
 
-    DCHECK(_children.size() > 1);
+    DCHECK(_children.size() >= 1);
     ColumnsWithTypeAndName argument_template;
     argument_template.reserve(_children.size());
     for (auto child : _children) {
diff --git a/be/src/vec/functions/in.cpp b/be/src/vec/functions/in.cpp
index 9fdb161eff..4e5877a6ec 100644
--- a/be/src/vec/functions/in.cpp
+++ b/be/src/vec/functions/in.cpp
@@ -69,7 +69,7 @@ public:
         state->hybrid_set.reset(
                 vec_create_set(convert_type_to_primitive(context->get_arg_type(0)->type)));
 
-        DCHECK(context->get_num_args() > 1);
+        DCHECK(context->get_num_args() >= 1);
         for (int i = 1; i < context->get_num_args(); ++i) {
             const auto& const_column_ptr = context->get_constant_col(i);
             if (const_column_ptr != nullptr) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org