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/13 04:26:12 UTC

[doris] branch master updated: [bugfix] fix bug of ComparisonPredicate for nullable column (#10798)

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 d03b5c29a8 [bugfix] fix bug of ComparisonPredicate for nullable column (#10798)
d03b5c29a8 is described below

commit d03b5c29a82302350d556b5ad21219618276faa5
Author: TengJianPing <18...@users.noreply.github.com>
AuthorDate: Wed Jul 13 12:26:05 2022 +0800

    [bugfix] fix bug of ComparisonPredicate for nullable column (#10798)
---
 be/src/olap/comparison_predicate.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/comparison_predicate.h b/be/src/olap/comparison_predicate.h
index 8d1c0ff604..ec8bcce1f5 100644
--- a/be/src/olap/comparison_predicate.h
+++ b/be/src/olap/comparison_predicate.h
@@ -406,7 +406,7 @@ private:
         for (uint16_t i = 0; i < size; ++i) {
             uint16_t idx = sel[i];
             if constexpr (is_nullable) {
-                if (_opposite ^ (!null_map[i] && _operator(data_array[idx], value))) {
+                if (_opposite ^ (!null_map[idx] && _operator(data_array[idx], value))) {
                     sel[new_size++] = idx;
                 }
             } else {


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