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/11/18 11:27:09 UTC

[doris] branch branch-1.1-lts updated: [fix](agg)fix bug if nullmap use 2 to indicate null value (#14395)

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

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


The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
     new 1379aa8f2a [fix](agg)fix bug if nullmap use 2 to indicate null value (#14395)
1379aa8f2a is described below

commit 1379aa8f2ac8e0b9eb65a0bde775df94327dc62a
Author: starocean999 <40...@users.noreply.github.com>
AuthorDate: Fri Nov 18 19:27:00 2022 +0800

    [fix](agg)fix bug if nullmap use 2 to indicate null value (#14395)
---
 be/src/vec/common/columns_hashing_impl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/common/columns_hashing_impl.h b/be/src/vec/common/columns_hashing_impl.h
index 18d02b9a2e..7880b04ff4 100644
--- a/be/src/vec/common/columns_hashing_impl.h
+++ b/be/src/vec/common/columns_hashing_impl.h
@@ -285,7 +285,7 @@ protected:
         for (size_t k = 0; k < null_maps.size(); ++k) {
             if (null_maps[k] != nullptr) {
                 const auto& null_map = assert_cast<const ColumnUInt8&>(*null_maps[k]).get_data();
-                if (null_map[row] == 1) {
+                if (null_map[row] != 0) {
                     size_t bucket = k / 8;
                     size_t offset = k % 8;
                     bitmap[bucket] |= UInt8(1) << offset;


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