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

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


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new b1f76970a39 branch-4.1: [refactor](be) Move PackedUInt128 to 
packed_int128.h #61250 (#64434)
b1f76970a39 is described below

commit b1f76970a39e8d7452412d0fbed2838e5ffb54b1
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jun 16 13:36:44 2026 +0800

    branch-4.1: [refactor](be) Move PackedUInt128 to packed_int128.h #61250 
(#64434)
    
    Cherry-picked from #61250
    
    Co-authored-by: Chenyang Sun <[email protected]>
---
 be/src/core/data_type_serde/data_type_number_serde.cpp |  1 +
 be/src/core/data_type_serde/data_type_serde.h          | 13 -------------
 be/src/core/packed_int128.h                            | 13 +++++++++++++
 3 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/be/src/core/data_type_serde/data_type_number_serde.cpp 
b/be/src/core/data_type_serde/data_type_number_serde.cpp
index e741614b1a5..610a24573ce 100644
--- a/be/src/core/data_type_serde/data_type_number_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_number_serde.cpp
@@ -27,6 +27,7 @@
 #include "core/data_type/define_primitive_type.h"
 #include "core/data_type/primitive_type.h"
 #include "core/data_type_serde/data_type_serde.h"
+#include "core/packed_int128.h"
 #include "core/types.h"
 #include "core/value/timestamptz_value.h"
 #include "exprs/function/cast/cast_to_basic_number_common.h"
diff --git a/be/src/core/data_type_serde/data_type_serde.h 
b/be/src/core/data_type_serde/data_type_serde.h
index 4ffac54b899..b9a5cbe76bd 100644
--- a/be/src/core/data_type_serde/data_type_serde.h
+++ b/be/src/core/data_type_serde/data_type_serde.h
@@ -111,19 +111,6 @@ struct FieldInfo {
     int scale = 0;
     int precision = 0;
 };
-struct PackedUInt128 {
-    // PackedInt128() : value(0) {}
-    PackedUInt128() = default;
-
-    PackedUInt128(const unsigned __int128& value_) { value = value_; }
-    PackedUInt128& operator=(const unsigned __int128& value_) {
-        value = value_;
-        return *this;
-    }
-    PackedUInt128& operator=(const PackedUInt128& rhs) = default;
-
-    uint128_t value;
-} __attribute__((packed));
 
 // Deserialize means read from different file format or memory format,
 // for example read from arrow, read from parquet.
diff --git a/be/src/core/packed_int128.h b/be/src/core/packed_int128.h
index 07d595fdd03..ef59a8e7529 100644
--- a/be/src/core/packed_int128.h
+++ b/be/src/core/packed_int128.h
@@ -37,6 +37,19 @@ struct PackedInt128 {
     __int128 value;
 } __attribute__((packed));
 
+struct PackedUInt128 {
+    PackedUInt128() = default;
+
+    PackedUInt128(const unsigned __int128& value_) { value = value_; }
+    PackedUInt128& operator=(const unsigned __int128& value_) {
+        value = value_;
+        return *this;
+    }
+    PackedUInt128& operator=(const PackedUInt128& rhs) = default;
+
+    uint128_t value;
+} __attribute__((packed));
+
 // unalign address directly casted to int128 will core dump
 inline int128_t get_int128_from_unalign(const void* address) {
     int128_t value = 0;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to