You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by li...@apache.org on 2025/12/05 07:15:21 UTC

(doris) branch tpc_preview3 updated (82509f52513 -> 8d0df018ffa)

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

lihaopeng pushed a change to branch tpc_preview3
in repository https://gitbox.apache.org/repos/asf/doris.git


 discard 82509f52513 fix zone map in effective in column preidate
     new 8d0df018ffa imporve the zone map filter performance

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (82509f52513)
            \
             N -- N -- N   refs/heads/tpc_preview3 (8d0df018ffa)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 be/src/olap/comparison_predicate.h | 4 ++++
 be/src/olap/in_list_predicate.h    | 3 +++
 2 files changed, 7 insertions(+)


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


(doris) 01/01: imporve the zone map filter performance

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 8d0df018ffa9f4371d5c966df5e53773391c623c
Author: happenlee <ha...@selectdb.com>
AuthorDate: Fri Dec 5 15:11:36 2025 +0800

    imporve the zone map filter performance
---
 be/src/olap/comparison_predicate.h | 4 ++--
 be/src/olap/in_list_predicate.h    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/be/src/olap/comparison_predicate.h b/be/src/olap/comparison_predicate.h
index f798317cbc8..3df604f7196 100644
--- a/be/src/olap/comparison_predicate.h
+++ b/be/src/olap/comparison_predicate.h
@@ -144,8 +144,8 @@ public:
     }
 
     bool evaluate_and(const std::pair<WrapperField*, WrapperField*>& statistic) const override {
-        if (statistic.first->is_null()) {
-            return true;
+        if (statistic.first->is_null() && statistic.second->is_null()) {
+            return false;
         }
 
         T tmp_min_value = get_zone_map_value<Type, T>(statistic.first->cell_ptr());
diff --git a/be/src/olap/in_list_predicate.h b/be/src/olap/in_list_predicate.h
index 0437e2d6a50..8d4d4529535 100644
--- a/be/src/olap/in_list_predicate.h
+++ b/be/src/olap/in_list_predicate.h
@@ -274,8 +274,8 @@ public:
     }
 
     bool evaluate_and(const std::pair<WrapperField*, WrapperField*>& statistic) const override {
-        if (statistic.first->is_null()) {
-            return true;
+        if (statistic.first->is_null() && statistic.second->is_null()) {
+            return false;
         }
         if constexpr (PT == PredicateType::IN_LIST) {
             return Compare::less_equal(get_zone_map_value<Type, T>(statistic.first->cell_ptr()),


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