You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by pa...@apache.org on 2025/11/26 03:19:48 UTC

(doris) branch tpc_preview2 created (now 606b58f9c18)

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

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


      at 606b58f9c18 format

This branch includes the following new commits:

     new 1239d8fe520 support runtime filter in
     new c83e49a4977 remove nullable when _serialize_null_into_key is false and add int72
     new e52e042be4f update
     new de7beb224a2 reset
     new affa57117a8 reset
     new 9bfdc3cd8ac fix ut
     new 606b58f9c18 format

The 7 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.



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


(doris) 01/07: support runtime filter in

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

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

commit 1239d8fe5202e86c31fb49bc68319ec71308bc46
Author: happenlee <ha...@selectdb.com>
AuthorDate: Wed Nov 26 10:45:13 2025 +0800

    support runtime filter in
---
 be/src/exprs/hybrid_set.h               | 37 +++++++++++++++++++++++++++++++++
 be/src/vec/exprs/vdirect_in_predicate.h |  2 +-
 2 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/be/src/exprs/hybrid_set.h b/be/src/exprs/hybrid_set.h
index e2c29eed82b..20b4ccd4263 100644
--- a/be/src/exprs/hybrid_set.h
+++ b/be/src/exprs/hybrid_set.h
@@ -257,6 +257,7 @@ public:
             doris::vectorized::ColumnUInt8::Container& results) = 0;
 
     virtual void to_pb(PInFilter* filter) = 0;
+    virtual uint64_t get_digest(uint64_t seed) = 0;
 
     class IteratorBase {
     public:
@@ -412,6 +413,21 @@ public:
 
     void to_pb(PInFilter* filter) override { set_pb(filter, get_convertor<ElementType>()); }
 
+    uint64_t get_digest(uint64_t seed) override {
+        std::vector<ElementType> elems(_set.begin(), _set.end());
+        std::sort(elems.begin(), elems.end());
+        if constexpr (std::is_same<ElementType, bool>::value) {
+            for (const auto& v : elems) {
+                seed = HashUtil::crc_hash64(&v, sizeof(v), seed);
+            }
+        } else {
+            seed = HashUtil::crc_hash64(elems.data(),
+                                        (uint32_t)(elems.size() * sizeof(ElementType)), seed);
+        }
+
+        return HashUtil::crc_hash64(&_contain_null, sizeof(_contain_null), seed);
+    }
+
 private:
     ContainerType _set;
     ObjectPool _pool;
@@ -589,6 +605,16 @@ public:
 
     void to_pb(PInFilter* filter) override { set_pb(filter, get_convertor<std::string>()); }
 
+    uint64_t get_digest(uint64_t seed) override {
+        std::vector<StringRef> elems(_set.begin(), _set.end());
+        std::sort(elems.begin(), elems.end());
+
+        for (const auto& v : elems) {
+            seed = HashUtil::crc_hash64(v.data, (uint32_t)v.size, seed);
+        }
+        return HashUtil::crc_hash64(&_contain_null, sizeof(_contain_null), seed);
+    }
+
 private:
     ContainerType _set;
     ObjectPool _pool;
@@ -767,6 +793,17 @@ public:
         throw Exception(ErrorCode::INTERNAL_ERROR, "StringValueSet do not support to_pb");
     }
 
+    uint64_t get_digest(uint64_t seed) override {
+        std::vector<StringRef> elems(_set.begin(), _set.end());
+        std::sort(elems.begin(), elems.end());
+
+        for (const auto& v : elems) {
+            seed = HashUtil::crc_hash64(v.data, (uint32_t)v.size, seed);
+        }
+
+        return HashUtil::crc_hash64(&_contain_null, sizeof(_contain_null), seed);
+    }
+
 private:
     ContainerType _set;
     ObjectPool _pool;
diff --git a/be/src/vec/exprs/vdirect_in_predicate.h b/be/src/vec/exprs/vdirect_in_predicate.h
index bcc8714e0e6..bd360e565a2 100644
--- a/be/src/vec/exprs/vdirect_in_predicate.h
+++ b/be/src/vec/exprs/vdirect_in_predicate.h
@@ -106,7 +106,7 @@ public:
         return true;
     }
 
-    uint64_t get_digest(uint64_t seed) const override { return 0; }
+    uint64_t get_digest(uint64_t seed) const override { return _filter->get_digest(seed); }
 
 private:
     Status _do_execute(VExprContext* context, const Block* block, ColumnPtr& result_column,


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


(doris) 03/07: update

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

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

commit e52e042be4fae034229b08f3f4e97f7111f1a08a
Author: BiteTheDDDDt <xl...@selectdb.com>
AuthorDate: Mon Nov 24 21:02:24 2025 +0800

    update
---
 be/src/vec/common/uint128.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/be/src/vec/common/uint128.h b/be/src/vec/common/uint128.h
index a8eca75fb87..2a6bb70177d 100644
--- a/be/src/vec/common/uint128.h
+++ b/be/src/vec/common/uint128.h
@@ -70,7 +70,6 @@ struct UInt72 {
 };
 #pragma pack()
 
-
 #pragma pack(1)
 struct UInt136 {
     UInt8 a;


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


(doris) 02/07: remove nullable when _serialize_null_into_key is false and add int72

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

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

commit c83e49a4977b68b357e68d8cad2ebd6375d76cb3
Author: BiteTheDDDDt <xl...@selectdb.com>
AuthorDate: Mon Nov 24 20:59:28 2025 +0800

    remove nullable when _serialize_null_into_key is false and add int72
---
 be/src/pipeline/common/agg_utils.h                  |  9 +++++++--
 be/src/pipeline/common/distinct_agg_utils.h         |  9 +++++++--
 be/src/pipeline/common/join_utils.h                 |  7 ++++++-
 be/src/pipeline/common/partition_sort_utils.h       |  7 ++++++-
 be/src/pipeline/common/set_utils.h                  |  5 +++++
 be/src/pipeline/exec/hashjoin_build_sink.cpp        |  6 ++++--
 .../exec/join/process_hash_table_probe_impl.h       |  1 +
 be/src/vec/common/hash_table/hash.h                 | 21 ++++++++++++++-------
 be/src/vec/common/hash_table/hash_key_type.h        |  3 +++
 be/src/vec/common/hash_table/hash_map_context.h     |  1 -
 be/src/vec/common/hash_table/join_hash_table.h      |  6 +++++-
 be/src/vec/common/uint128.h                         | 10 ++++++++++
 be/src/vec/functions/complex_dict_hash_map.h        |  8 ++++++--
 13 files changed, 74 insertions(+), 19 deletions(-)

diff --git a/be/src/pipeline/common/agg_utils.h b/be/src/pipeline/common/agg_utils.h
index 146649f96b1..f0cf0a17f2a 100644
--- a/be/src/pipeline/common/agg_utils.h
+++ b/be/src/pipeline/common/agg_utils.h
@@ -81,9 +81,10 @@ using AggregatedMethodVariants = std::variant<
         vectorized::MethodSingleNullableColumn<
                 vectorized::MethodStringNoCache<AggregatedDataWithNullableShortStringKey>>,
         vectorized::MethodKeysFixed<AggData<vectorized::UInt64>>,
+        vectorized::MethodKeysFixed<AggData<vectorized::UInt72>>,
         vectorized::MethodKeysFixed<AggData<vectorized::UInt128>>,
-        vectorized::MethodKeysFixed<AggData<vectorized::UInt256>>,
-        vectorized::MethodKeysFixed<AggData<vectorized::UInt136>>>;
+        vectorized::MethodKeysFixed<AggData<vectorized::UInt136>>,
+        vectorized::MethodKeysFixed<AggData<vectorized::UInt256>>>;
 
 struct AggregatedDataVariants
         : public DataVariants<AggregatedMethodVariants, vectorized::MethodSingleNullableColumn,
@@ -137,6 +138,10 @@ struct AggregatedDataVariants
             method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt64>>>(
                     get_key_sizes(data_types));
             break;
+        case HashKeyType::fixed72:
+            method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt72>>>(
+                    get_key_sizes(data_types));
+            break;
         case HashKeyType::fixed128:
             method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt128>>>(
                     get_key_sizes(data_types));
diff --git a/be/src/pipeline/common/distinct_agg_utils.h b/be/src/pipeline/common/distinct_agg_utils.h
index 592132eba6b..3c95a2793fc 100644
--- a/be/src/pipeline/common/distinct_agg_utils.h
+++ b/be/src/pipeline/common/distinct_agg_utils.h
@@ -105,9 +105,10 @@ using DistinctMethodVariants = std::variant<
         vectorized::MethodSingleNullableColumn<vectorized::MethodStringNoCache<
                 vectorized::DataWithNullKey<DistinctDataWithShortStringKey>>>,
         vectorized::MethodKeysFixed<DistinctData<vectorized::UInt64>>,
+        vectorized::MethodKeysFixed<DistinctData<vectorized::UInt72>>,
         vectorized::MethodKeysFixed<DistinctData<vectorized::UInt128>>,
-        vectorized::MethodKeysFixed<DistinctData<vectorized::UInt256>>,
-        vectorized::MethodKeysFixed<DistinctData<vectorized::UInt136>>>;
+        vectorized::MethodKeysFixed<DistinctData<vectorized::UInt136>>,
+        vectorized::MethodKeysFixed<DistinctData<vectorized::UInt256>>>;
 
 struct DistinctDataVariants
         : public DataVariants<DistinctMethodVariants, vectorized::MethodSingleNullableColumn,
@@ -156,6 +157,10 @@ struct DistinctDataVariants
             method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt64>>>(
                     get_key_sizes(data_types));
             break;
+        case HashKeyType::fixed72:
+            method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt72>>>(
+                    get_key_sizes(data_types));
+            break;
         case HashKeyType::fixed128:
             method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt128>>>(
                     get_key_sizes(data_types));
diff --git a/be/src/pipeline/common/join_utils.h b/be/src/pipeline/common/join_utils.h
index c10b748f82f..08708f037ba 100644
--- a/be/src/pipeline/common/join_utils.h
+++ b/be/src/pipeline/common/join_utils.h
@@ -66,7 +66,8 @@ using HashTableVariants = std::variant<
         DirectPrimaryTypeHashTableContext<vectorized::UInt32>,
         DirectPrimaryTypeHashTableContext<vectorized::UInt64>,
         DirectPrimaryTypeHashTableContext<vectorized::UInt128>,
-        FixedKeyHashTableContext<vectorized::UInt64>, FixedKeyHashTableContext<vectorized::UInt128>,
+        FixedKeyHashTableContext<vectorized::UInt64>, FixedKeyHashTableContext<vectorized::UInt72>,
+        FixedKeyHashTableContext<vectorized::UInt128>,
         FixedKeyHashTableContext<vectorized::UInt136>,
         FixedKeyHashTableContext<vectorized::UInt256>, MethodOneString>;
 
@@ -103,6 +104,10 @@ struct JoinDataVariants {
             method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt64>>(
                     get_key_sizes(data_types));
             break;
+        case HashKeyType::fixed72:
+            method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt72>>(
+                    get_key_sizes(data_types));
+            break;
         case HashKeyType::fixed128:
             method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt128>>(
                     get_key_sizes(data_types));
diff --git a/be/src/pipeline/common/partition_sort_utils.h b/be/src/pipeline/common/partition_sort_utils.h
index 381dd3ec42b..ccd1b6a144d 100644
--- a/be/src/pipeline/common/partition_sort_utils.h
+++ b/be/src/pipeline/common/partition_sort_utils.h
@@ -140,9 +140,10 @@ using PartitionedMethodVariants = std::variant<
         PartitionDataSingleNullable<vectorized::UInt128>,
         PartitionDataSingleNullable<vectorized::UInt256>,
         vectorized::MethodKeysFixed<PartitionData<vectorized::UInt64>>,
+        vectorized::MethodKeysFixed<PartitionData<vectorized::UInt72>>,
         vectorized::MethodKeysFixed<PartitionData<vectorized::UInt128>>,
-        vectorized::MethodKeysFixed<PartitionData<vectorized::UInt256>>,
         vectorized::MethodKeysFixed<PartitionData<vectorized::UInt136>>,
+        vectorized::MethodKeysFixed<PartitionData<vectorized::UInt256>>,
         vectorized::MethodStringNoCache<PartitionDataWithShortStringKey>,
         vectorized::MethodSingleNullableColumn<vectorized::MethodStringNoCache<
                 vectorized::DataWithNullKey<PartitionDataWithShortStringKey>>>>;
@@ -199,6 +200,10 @@ struct PartitionedHashMapVariants
             method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt64>>>(
                     get_key_sizes(data_types));
             break;
+        case HashKeyType::fixed72:
+            method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt72>>>(
+                    get_key_sizes(data_types));
+            break;
         case HashKeyType::fixed128:
             method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt128>>>(
                     get_key_sizes(data_types));
diff --git a/be/src/pipeline/common/set_utils.h b/be/src/pipeline/common/set_utils.h
index d9f70b1e457..665a7710fa8 100644
--- a/be/src/pipeline/common/set_utils.h
+++ b/be/src/pipeline/common/set_utils.h
@@ -67,6 +67,7 @@ using SetHashTableVariants =
                      SetPrimaryTypeHashTableContext<vectorized::UInt128>,
                      SetPrimaryTypeHashTableContext<vectorized::UInt256>,
                      SetFixedKeyHashTableContext<vectorized::UInt64>,
+                     SetFixedKeyHashTableContext<vectorized::UInt72>,
                      SetFixedKeyHashTableContext<vectorized::UInt128>,
                      SetFixedKeyHashTableContext<vectorized::UInt256>,
                      SetFixedKeyHashTableContext<vectorized::UInt136>>;
@@ -105,6 +106,10 @@ struct SetDataVariants
             method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt64>>(
                     get_key_sizes(data_types));
             break;
+        case HashKeyType::fixed72:
+            method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt72>>(
+                    get_key_sizes(data_types));
+            break;
         case HashKeyType::fixed128:
             method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt128>>(
                     get_key_sizes(data_types));
diff --git a/be/src/pipeline/exec/hashjoin_build_sink.cpp b/be/src/pipeline/exec/hashjoin_build_sink.cpp
index cbc22f7168d..778409087ee 100644
--- a/be/src/pipeline/exec/hashjoin_build_sink.cpp
+++ b/be/src/pipeline/exec/hashjoin_build_sink.cpp
@@ -450,9 +450,11 @@ Status HashJoinBuildSinkLocalState::_hash_table_init(RuntimeState* state,
         /// For 'null safe equal' join,
         /// the build key column maybe be converted to nullable from non-nullable.
         if (p._serialize_null_into_key[i]) {
-            data_type = vectorized::make_nullable(data_type);
+            data_types.emplace_back(vectorized::make_nullable(data_type));
+        } else {
+            // in this case, we use nullmap to represent null value
+            data_types.emplace_back(vectorized::remove_nullable(data_type));
         }
-        data_types.emplace_back(std::move(data_type));
     }
     if (_build_expr_ctxs.size() == 1) {
         p._should_keep_hash_key_column = true;
diff --git a/be/src/pipeline/exec/join/process_hash_table_probe_impl.h b/be/src/pipeline/exec/join/process_hash_table_probe_impl.h
index 1f1edec4335..6753052f61c 100644
--- a/be/src/pipeline/exec/join/process_hash_table_probe_impl.h
+++ b/be/src/pipeline/exec/join/process_hash_table_probe_impl.h
@@ -803,6 +803,7 @@ struct ExtractType<T(U)> {
     INSTANTIATION(JoinOpType, (PrimaryTypeHashTableContext<vectorized::UInt128>));       \
     INSTANTIATION(JoinOpType, (PrimaryTypeHashTableContext<vectorized::UInt256>));       \
     INSTANTIATION(JoinOpType, (FixedKeyHashTableContext<vectorized::UInt64>));           \
+    INSTANTIATION(JoinOpType, (FixedKeyHashTableContext<vectorized::UInt72>));           \
     INSTANTIATION(JoinOpType, (FixedKeyHashTableContext<vectorized::UInt128>));          \
     INSTANTIATION(JoinOpType, (FixedKeyHashTableContext<vectorized::UInt136>));          \
     INSTANTIATION(JoinOpType, (FixedKeyHashTableContext<vectorized::UInt256>));          \
diff --git a/be/src/vec/common/hash_table/hash.h b/be/src/vec/common/hash_table/hash.h
index 4b0e20a01a0..6817d7e091d 100644
--- a/be/src/vec/common/hash_table/hash.h
+++ b/be/src/vec/common/hash_table/hash.h
@@ -189,20 +189,27 @@ struct HashCRC32<wide::Int256> {
     }
 };
 
+#include "common/compile_check_avoid_begin.h"
+
+template <>
+struct HashCRC32<doris::vectorized::UInt72> {
+    size_t operator()(const doris::vectorized::UInt72& x) const {
+        doris::vectorized::UInt64 crc = -1ULL;
+        crc = _mm_crc32_u8(crc, x.a);
+        crc = _mm_crc32_u64(crc, x.b);
+        return crc;
+    }
+};
+
 template <>
 struct HashCRC32<doris::vectorized::UInt136> {
     size_t operator()(const doris::vectorized::UInt136& x) const {
-#if defined(__SSE4_2__) || defined(__aarch64__)
         doris::vectorized::UInt64 crc = -1ULL;
-#include "common/compile_check_avoid_begin.h"
-        //_mm_crc32_u8 does not provide a u64 interface, so there is an unavoidable conversion from u64 to u32 here.
         crc = _mm_crc32_u8(crc, x.a);
-#include "common/compile_check_avoid_end.h"
         crc = _mm_crc32_u64(crc, x.b);
         crc = _mm_crc32_u64(crc, x.c);
         return crc;
-#else
-        return Hash128to64({Hash128to64({x.a, x.b}), x.c});
-#endif
     }
 };
+
+#include "common/compile_check_avoid_end.h"
diff --git a/be/src/vec/common/hash_table/hash_key_type.h b/be/src/vec/common/hash_table/hash_key_type.h
index 52d264371cb..7a04137324e 100644
--- a/be/src/vec/common/hash_table/hash_key_type.h
+++ b/be/src/vec/common/hash_table/hash_key_type.h
@@ -37,6 +37,7 @@ enum class HashKeyType {
     int256_key,
     string_key,
     fixed64,
+    fixed72,
     fixed128,
     fixed136,
     fixed256
@@ -59,6 +60,8 @@ inline HashKeyType get_hash_key_type_with_fixed(size_t size) {
     using namespace vectorized;
     if (size <= sizeof(UInt64)) {
         return HashKeyType::fixed64;
+    } else if (size <= sizeof(UInt72)) {
+        return HashKeyType::fixed72;
     } else if (size <= sizeof(UInt128)) {
         return HashKeyType::fixed128;
     } else if (size <= sizeof(UInt136)) {
diff --git a/be/src/vec/common/hash_table/hash_map_context.h b/be/src/vec/common/hash_table/hash_map_context.h
index 0140a30653f..704e2a44833 100644
--- a/be/src/vec/common/hash_table/hash_map_context.h
+++ b/be/src/vec/common/hash_table/hash_map_context.h
@@ -251,7 +251,6 @@ struct MethodSerialized : public MethodBase<TData> {
             for (size_t i = 0; i < num_rows; ++i) {
                 input_keys[i].data =
                         reinterpret_cast<char*>(serialized_key_buffer + i * max_one_row_byte_size);
-                input_keys[i].size = 0;
             }
 
             for (const auto& column : key_columns) {
diff --git a/be/src/vec/common/hash_table/join_hash_table.h b/be/src/vec/common/hash_table/join_hash_table.h
index 9426829e056..0c3d3951431 100644
--- a/be/src/vec/common/hash_table/join_hash_table.h
+++ b/be/src/vec/common/hash_table/join_hash_table.h
@@ -367,7 +367,7 @@ private:
         const auto batch_size = max_batch_size;
 
         auto do_the_probe = [&]() {
-            while (build_idx && matched_cnt < batch_size) {
+            while (build_idx) {
                 if (_eq(keys[probe_idx], build_keys[build_idx])) {
                     probe_idxs[matched_cnt] = probe_idx;
                     build_idxs[matched_cnt] = build_idx;
@@ -378,6 +378,10 @@ private:
                             visited[build_idx] = 1;
                         }
                     }
+                    if (matched_cnt > batch_size) {
+                        build_idx = next[build_idx];
+                        break;
+                    }
                 }
                 build_idx = next[build_idx];
             }
diff --git a/be/src/vec/common/uint128.h b/be/src/vec/common/uint128.h
index 961a4958955..a8eca75fb87 100644
--- a/be/src/vec/common/uint128.h
+++ b/be/src/vec/common/uint128.h
@@ -61,6 +61,16 @@ struct UInt128TrivialHash {
 
 using UInt256 = wide::UInt256;
 
+#pragma pack(1)
+struct UInt72 {
+    UInt8 a;
+    UInt64 b;
+
+    bool operator==(const UInt72& rhs) const { return a == rhs.a && b == rhs.b; }
+};
+#pragma pack()
+
+
 #pragma pack(1)
 struct UInt136 {
     UInt8 a;
diff --git a/be/src/vec/functions/complex_dict_hash_map.h b/be/src/vec/functions/complex_dict_hash_map.h
index de06ce3568e..d815cbb0904 100644
--- a/be/src/vec/functions/complex_dict_hash_map.h
+++ b/be/src/vec/functions/complex_dict_hash_map.h
@@ -47,8 +47,9 @@ using DictHashMapVariants = std::variant<
         MethodOneNumber<UInt128, DictHashMap<UInt128>>,
         MethodOneNumber<UInt256, DictHashMap<UInt256>>,
 
-        MethodKeysFixed<DictHashMap<UInt64>>, MethodKeysFixed<DictHashMap<UInt128>>,
-        MethodKeysFixed<DictHashMap<UInt256>>, MethodKeysFixed<DictHashMap<UInt136>>>;
+        MethodKeysFixed<DictHashMap<UInt64>>, MethodKeysFixed<DictHashMap<UInt72>>,
+        MethodKeysFixed<DictHashMap<UInt128>>, MethodKeysFixed<DictHashMap<UInt136>>,
+        MethodKeysFixed<DictHashMap<UInt256>>>;
 
 struct DictionaryHashMapMethod
         : public DataVariants<DictHashMapVariants, vectorized::MethodSingleNullableColumn,
@@ -83,6 +84,9 @@ struct DictionaryHashMapMethod
         case HashKeyType::fixed64:
             method_variant.emplace<MethodKeysFixed<DictHashMap<UInt64>>>(get_key_sizes(data_types));
             break;
+        case HashKeyType::fixed72:
+            method_variant.emplace<MethodKeysFixed<DictHashMap<UInt72>>>(get_key_sizes(data_types));
+            break;
         case HashKeyType::fixed128:
             method_variant.emplace<MethodKeysFixed<DictHashMap<UInt128>>>(
                     get_key_sizes(data_types));


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


(doris) 04/07: reset

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

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

commit de7beb224a287a630622cae2b3ae56d050e3d631
Author: BiteTheDDDDt <xl...@selectdb.com>
AuthorDate: Mon Nov 24 23:50:29 2025 +0800

    reset
---
 be/src/vec/common/hash_table/join_hash_table.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/be/src/vec/common/hash_table/join_hash_table.h b/be/src/vec/common/hash_table/join_hash_table.h
index 0c3d3951431..9426829e056 100644
--- a/be/src/vec/common/hash_table/join_hash_table.h
+++ b/be/src/vec/common/hash_table/join_hash_table.h
@@ -367,7 +367,7 @@ private:
         const auto batch_size = max_batch_size;
 
         auto do_the_probe = [&]() {
-            while (build_idx) {
+            while (build_idx && matched_cnt < batch_size) {
                 if (_eq(keys[probe_idx], build_keys[build_idx])) {
                     probe_idxs[matched_cnt] = probe_idx;
                     build_idxs[matched_cnt] = build_idx;
@@ -378,10 +378,6 @@ private:
                             visited[build_idx] = 1;
                         }
                     }
-                    if (matched_cnt > batch_size) {
-                        build_idx = next[build_idx];
-                        break;
-                    }
                 }
                 build_idx = next[build_idx];
             }


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


(doris) 07/07: format

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

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

commit 606b58f9c1852ab6f92230c03325cb8ecca45c8f
Author: BiteTheDDDDt <xl...@selectdb.com>
AuthorDate: Tue Nov 25 13:46:46 2025 +0800

    format
---
 be/test/pipeline/common/set_utils_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/test/pipeline/common/set_utils_test.cpp b/be/test/pipeline/common/set_utils_test.cpp
index 10a0747008c..bb12a8edb6f 100644
--- a/be/test/pipeline/common/set_utils_test.cpp
+++ b/be/test/pipeline/common/set_utils_test.cpp
@@ -96,7 +96,7 @@ TEST_F(SetUtilsTest, TestSetDataVariantsInitFixedKeys) {
         case HashKeyType::fixed72:
             ASSERT_TRUE(std::holds_alternative<SetFixedKeyHashTableContext<vectorized::UInt72>>(
                     variants.method_variant));
-            break;    
+            break;
         case HashKeyType::fixed128:
             ASSERT_TRUE(std::holds_alternative<SetFixedKeyHashTableContext<vectorized::UInt128>>(
                     variants.method_variant));


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


(doris) 05/07: reset

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

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

commit affa57117a87ab51baf7fb1c6d682767bb73c4f6
Author: BiteTheDDDDt <xl...@selectdb.com>
AuthorDate: Tue Nov 25 09:48:51 2025 +0800

    reset
---
 be/src/vec/common/hash_table/hash_map_context.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/be/src/vec/common/hash_table/hash_map_context.h b/be/src/vec/common/hash_table/hash_map_context.h
index 704e2a44833..0140a30653f 100644
--- a/be/src/vec/common/hash_table/hash_map_context.h
+++ b/be/src/vec/common/hash_table/hash_map_context.h
@@ -251,6 +251,7 @@ struct MethodSerialized : public MethodBase<TData> {
             for (size_t i = 0; i < num_rows; ++i) {
                 input_keys[i].data =
                         reinterpret_cast<char*>(serialized_key_buffer + i * max_one_row_byte_size);
+                input_keys[i].size = 0;
             }
 
             for (const auto& column : key_columns) {


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