Coverage Report

Created: 2026-09-23 14:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/core/field.cpp
Line
Count
Source
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
// This file is copied from
18
// https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Field.cpp
19
// and modified by Doris
20
21
#include "core/field.h"
22
23
#include "common/compare.h"
24
#include "core/accurate_comparison.h"
25
#include "core/allocator.h"
26
#include "core/allocator_fwd.h"
27
#include "core/data_type/data_type_decimal.h"
28
#include "core/data_type/define_primitive_type.h"
29
#include "core/data_type/primitive_type.h"
30
#include "core/decimal_comparison.h"
31
#include "core/value/bitmap_value.h"
32
#include "core/value/jsonb_value.h"
33
#include "core/value/timestamptz_value.h"
34
#include "core/value/vdatetime_value.h"
35
#include "exprs/function/cast/cast_to_string.h"
36
#include "util/json/path_in_data.h"
37
#include "util/var_int.h"
38
39
namespace doris {
40
class BufferReadable;
41
class BufferWritable;
42
43
template <PrimitiveType T>
44
bool dec_equal(typename PrimitiveTypeTraits<T>::CppType x,
45
0
               typename PrimitiveTypeTraits<T>::CppType y, UInt32 x_scale, UInt32 y_scale) {
46
0
    using Comparator = DecimalComparison<T, T, EqualsOp>;
47
0
    return Comparator::compare(x, y, x_scale, y_scale);
48
0
}
Unexecuted instantiation: _ZN5doris9dec_equalILNS_13PrimitiveTypeE28EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Unexecuted instantiation: _ZN5doris9dec_equalILNS_13PrimitiveTypeE29EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Unexecuted instantiation: _ZN5doris9dec_equalILNS_13PrimitiveTypeE20EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Unexecuted instantiation: _ZN5doris9dec_equalILNS_13PrimitiveTypeE35EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Unexecuted instantiation: _ZN5doris9dec_equalILNS_13PrimitiveTypeE30EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
49
50
template <PrimitiveType T>
51
bool dec_less(typename PrimitiveTypeTraits<T>::CppType x,
52
3.48k
              typename PrimitiveTypeTraits<T>::CppType y, UInt32 x_scale, UInt32 y_scale) {
53
3.48k
    using Comparator = DecimalComparison<T, T, LessOp>;
54
3.48k
    return Comparator::compare(x, y, x_scale, y_scale);
55
3.48k
}
_ZN5doris8dec_lessILNS_13PrimitiveTypeE28EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Line
Count
Source
52
10
              typename PrimitiveTypeTraits<T>::CppType y, UInt32 x_scale, UInt32 y_scale) {
53
10
    using Comparator = DecimalComparison<T, T, LessOp>;
54
10
    return Comparator::compare(x, y, x_scale, y_scale);
55
10
}
_ZN5doris8dec_lessILNS_13PrimitiveTypeE29EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Line
Count
Source
52
3
              typename PrimitiveTypeTraits<T>::CppType y, UInt32 x_scale, UInt32 y_scale) {
53
3
    using Comparator = DecimalComparison<T, T, LessOp>;
54
3
    return Comparator::compare(x, y, x_scale, y_scale);
55
3
}
Unexecuted instantiation: _ZN5doris8dec_lessILNS_13PrimitiveTypeE20EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
_ZN5doris8dec_lessILNS_13PrimitiveTypeE35EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Line
Count
Source
52
972
              typename PrimitiveTypeTraits<T>::CppType y, UInt32 x_scale, UInt32 y_scale) {
53
972
    using Comparator = DecimalComparison<T, T, LessOp>;
54
972
    return Comparator::compare(x, y, x_scale, y_scale);
55
972
}
_ZN5doris8dec_lessILNS_13PrimitiveTypeE30EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Line
Count
Source
52
2.50k
              typename PrimitiveTypeTraits<T>::CppType y, UInt32 x_scale, UInt32 y_scale) {
53
2.50k
    using Comparator = DecimalComparison<T, T, LessOp>;
54
2.50k
    return Comparator::compare(x, y, x_scale, y_scale);
55
2.50k
}
56
57
template <PrimitiveType T>
58
bool dec_less_or_equal(typename PrimitiveTypeTraits<T>::CppType x,
59
0
                       typename PrimitiveTypeTraits<T>::CppType y, UInt32 x_scale, UInt32 y_scale) {
60
0
    using Comparator = DecimalComparison<T, T, LessOrEqualsOp>;
61
0
    return Comparator::compare(x, y, x_scale, y_scale);
62
0
}
Unexecuted instantiation: _ZN5doris17dec_less_or_equalILNS_13PrimitiveTypeE28EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Unexecuted instantiation: _ZN5doris17dec_less_or_equalILNS_13PrimitiveTypeE29EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Unexecuted instantiation: _ZN5doris17dec_less_or_equalILNS_13PrimitiveTypeE20EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Unexecuted instantiation: _ZN5doris17dec_less_or_equalILNS_13PrimitiveTypeE35EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
Unexecuted instantiation: _ZN5doris17dec_less_or_equalILNS_13PrimitiveTypeE30EEEbNS_19PrimitiveTypeTraitsIXT_EE7CppTypeES4_jj
63
64
#define DECLARE_DECIMAL_COMPARISON(TYPE, PTYPE)                        \
65
    template <>                                                        \
66
0
    bool decimal_equal(TYPE x, TYPE y, UInt32 xs, UInt32 ys) {         \
67
0
        return dec_equal<PTYPE>(x, y, xs, ys);                         \
68
0
    }                                                                  \
Unexecuted instantiation: _ZN5doris13decimal_equalINS_7DecimalIiEEEEbT_S3_jj
Unexecuted instantiation: _ZN5doris13decimal_equalINS_7DecimalIlEEEEbT_S3_jj
Unexecuted instantiation: _ZN5doris13decimal_equalINS_14DecimalV2ValueEEEbT_S2_jj
Unexecuted instantiation: _ZN5doris13decimal_equalINS_7DecimalIN4wide7integerILm256EiEEEEEEbT_S6_jj
69
    template <>                                                        \
70
985
    bool decimal_less(TYPE x, TYPE y, UInt32 xs, UInt32 ys) {          \
71
985
        return dec_less<PTYPE>(x, y, xs, ys);                          \
72
985
    }                                                                  \
_ZN5doris12decimal_lessINS_7DecimalIiEEEEbT_S3_jj
Line
Count
Source
70
10
    bool decimal_less(TYPE x, TYPE y, UInt32 xs, UInt32 ys) {          \
71
10
        return dec_less<PTYPE>(x, y, xs, ys);                          \
72
10
    }                                                                  \
_ZN5doris12decimal_lessINS_7DecimalIlEEEEbT_S3_jj
Line
Count
Source
70
3
    bool decimal_less(TYPE x, TYPE y, UInt32 xs, UInt32 ys) {          \
71
3
        return dec_less<PTYPE>(x, y, xs, ys);                          \
72
3
    }                                                                  \
Unexecuted instantiation: _ZN5doris12decimal_lessINS_14DecimalV2ValueEEEbT_S2_jj
_ZN5doris12decimal_lessINS_7DecimalIN4wide7integerILm256EiEEEEEEbT_S6_jj
Line
Count
Source
70
972
    bool decimal_less(TYPE x, TYPE y, UInt32 xs, UInt32 ys) {          \
71
972
        return dec_less<PTYPE>(x, y, xs, ys);                          \
72
972
    }                                                                  \
73
    template <>                                                        \
74
0
    bool decimal_less_or_equal(TYPE x, TYPE y, UInt32 xs, UInt32 ys) { \
75
0
        return dec_less_or_equal<PTYPE>(x, y, xs, ys);                 \
76
0
    }
Unexecuted instantiation: _ZN5doris21decimal_less_or_equalINS_7DecimalIiEEEEbT_S3_jj
Unexecuted instantiation: _ZN5doris21decimal_less_or_equalINS_7DecimalIlEEEEbT_S3_jj
Unexecuted instantiation: _ZN5doris21decimal_less_or_equalINS_14DecimalV2ValueEEEbT_S2_jj
Unexecuted instantiation: _ZN5doris21decimal_less_or_equalINS_7DecimalIN4wide7integerILm256EiEEEEEEbT_S6_jj
77
78
DECLARE_DECIMAL_COMPARISON(Decimal32, TYPE_DECIMAL32)
79
DECLARE_DECIMAL_COMPARISON(Decimal64, TYPE_DECIMAL64)
80
DECLARE_DECIMAL_COMPARISON(DecimalV2Value, TYPE_DECIMALV2)
81
DECLARE_DECIMAL_COMPARISON(Decimal256, TYPE_DECIMAL256)
82
83
template <>
84
0
bool decimal_equal(Decimal128V3 x, Decimal128V3 y, UInt32 xs, UInt32 ys) {
85
0
    return dec_equal<TYPE_DECIMAL128I>(x, y, xs, ys);
86
0
}
87
template <>
88
2.50k
bool decimal_less(Decimal128V3 x, Decimal128V3 y, UInt32 xs, UInt32 ys) {
89
2.50k
    return dec_less<TYPE_DECIMAL128I>(x, y, xs, ys);
90
2.50k
}
91
template <>
92
0
bool decimal_less_or_equal(Decimal128V3 x, Decimal128V3 y, UInt32 xs, UInt32 ys) {
93
0
    return dec_less_or_equal<TYPE_DECIMAL128I>(x, y, xs, ys);
94
0
}
95
96
namespace {
97
// Expression literals can outlive decoder pages and source columns.
98
// Keep the view first for Field::get(), and fit ownership into the existing Field storage.
99
struct OwnedBinaryField {
100
    StringView view;
101
    char* bytes = nullptr;
102
    size_t byte_size = 0;
103
104
123
    explicit OwnedBinaryField(const StringView& value) {
105
        // Inline views already own their bytes; preserve their allocation-free representation.
106
123
        if (value.isInline()) {
107
81
            view = value;
108
81
            return;
109
81
        }
110
        // Charge retained payloads and deep-copy peaks through Doris's checked allocator.
111
        // Keep a standard-layout owner so the leading view remains accessible via Field::get().
112
42
        bytes = static_cast<char*>(Allocator<false> {}.alloc(value.size()));
113
42
        byte_size = value.size();
114
42
        memcpy(bytes, value.data(), value.size());
115
42
        view = StringView(bytes, value.size());
116
42
    }
117
    OwnedBinaryField(const OwnedBinaryField&) = delete;
118
    OwnedBinaryField& operator=(const OwnedBinaryField&) = delete;
119
14
    OwnedBinaryField& operator=(OwnedBinaryField&& other) noexcept {
120
14
        release_bytes();
121
14
        view = other.view;
122
14
        bytes = std::exchange(other.bytes, nullptr);
123
14
        byte_size = std::exchange(other.byte_size, 0);
124
14
        return *this;
125
14
    }
126
119
    ~OwnedBinaryField() { release_bytes(); }
127
128
private:
129
133
    void release_bytes() const {
130
133
        if (bytes != nullptr) {
131
            // Field::get() exposes a mutable view; release the original allocation size.
132
38
            Allocator<false> {}.free(bytes, byte_size);
133
38
        }
134
133
    }
135
};
136
static_assert(std::is_standard_layout_v<OwnedBinaryField>);
137
static_assert(offsetof(OwnedBinaryField, view) == 0);
138
} // namespace
139
140
template <PrimitiveType Type>
141
83.9M
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
83.9M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
83.9M
    if constexpr (Type == TYPE_VARBINARY) {
149
77
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
77
        new (&storage) OwnedBinaryField(x);
151
83.9M
    } else {
152
83.9M
        new (&storage) StorageType(std::move(x));
153
83.9M
    }
154
83.9M
    type = Type;
155
83.9M
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
83.9M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE1EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
20.1k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
20.1k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
20.1k
    } else {
152
20.1k
        new (&storage) StorageType(std::move(x));
153
20.1k
    }
154
20.1k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
20.1k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE3EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
42.2k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
42.2k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
42.2k
    } else {
152
42.2k
        new (&storage) StorageType(std::move(x));
153
42.2k
    }
154
42.2k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
42.2k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE4EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
24.5k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
24.5k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
24.5k
    } else {
152
24.5k
        new (&storage) StorageType(std::move(x));
153
24.5k
    }
154
24.5k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
24.5k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE5EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
25.4M
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
25.4M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
25.4M
    } else {
152
25.4M
        new (&storage) StorageType(std::move(x));
153
25.4M
    }
154
25.4M
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
25.4M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE6EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
14.5M
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
14.5M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
14.5M
    } else {
152
14.5M
        new (&storage) StorageType(std::move(x));
153
14.5M
    }
154
14.5M
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
14.5M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE7EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
19.2k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
19.2k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
19.2k
    } else {
152
19.2k
        new (&storage) StorageType(std::move(x));
153
19.2k
    }
154
19.2k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
19.2k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE11EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
10.1k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
10.1k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
10.1k
    } else {
152
10.1k
        new (&storage) StorageType(std::move(x));
153
10.1k
    }
154
10.1k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
10.1k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE12EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
14.8k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
14.8k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
14.8k
    } else {
152
14.8k
        new (&storage) StorageType(std::move(x));
153
14.8k
    }
154
14.8k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
14.8k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE25EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
7.96k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
7.96k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
7.96k
    } else {
152
7.96k
        new (&storage) StorageType(std::move(x));
153
7.96k
    }
154
7.96k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
7.96k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE26EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
52.6k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
52.6k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
52.6k
    } else {
152
52.6k
        new (&storage) StorageType(std::move(x));
153
52.6k
    }
154
52.6k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
52.6k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE43EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
97
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
97
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
97
    } else {
152
97
        new (&storage) StorageType(std::move(x));
153
97
    }
154
97
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
97
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE28EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
10.8k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
10.8k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
10.8k
    } else {
152
10.8k
        new (&storage) StorageType(std::move(x));
153
10.8k
    }
154
10.8k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
10.8k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE29EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
13.5M
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
13.5M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
13.5M
    } else {
152
13.5M
        new (&storage) StorageType(std::move(x));
153
13.5M
    }
154
13.5M
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
13.5M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE20EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
16.7k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
16.7k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
16.7k
    } else {
152
16.7k
        new (&storage) StorageType(std::move(x));
153
16.7k
    }
154
16.7k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
16.7k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE30EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
21.8k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
21.8k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
21.8k
    } else {
152
21.8k
        new (&storage) StorageType(std::move(x));
153
21.8k
    }
154
21.8k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
21.8k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE35EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
35.5k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
35.5k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
35.5k
    } else {
152
35.5k
        new (&storage) StorageType(std::move(x));
153
35.5k
    }
154
35.5k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
35.5k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE15EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
1.41k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
1.41k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
1.41k
    } else {
152
1.41k
        new (&storage) StorageType(std::move(x));
153
1.41k
    }
154
1.41k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
1.41k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE10EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
9.36k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
9.36k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
9.36k
    } else {
152
9.36k
        new (&storage) StorageType(std::move(x));
153
9.36k
    }
154
9.36k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
9.36k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE23EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
1.52M
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
1.52M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
1.52M
    } else {
152
1.52M
        new (&storage) StorageType(std::move(x));
153
1.52M
    }
154
1.52M
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
1.52M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE41EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
77
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
77
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
77
    if constexpr (Type == TYPE_VARBINARY) {
149
77
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
77
        new (&storage) OwnedBinaryField(x);
151
    } else {
152
        new (&storage) StorageType(std::move(x));
153
    }
154
77
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
77
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE19EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
14
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
14
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
14
    } else {
152
14
        new (&storage) StorageType(std::move(x));
153
14
    }
154
14
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
14
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE32EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
112
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
112
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
112
    } else {
152
112
        new (&storage) StorageType(std::move(x));
153
112
    }
154
112
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
112
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE24EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
12
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
12
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
12
    } else {
152
12
        new (&storage) StorageType(std::move(x));
153
12
    }
154
12
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
12
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE17EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
96.0k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
96.0k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
96.0k
    } else {
152
96.0k
        new (&storage) StorageType(std::move(x));
153
96.0k
    }
154
96.0k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
96.0k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE42EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
1.51k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
1.51k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
1.51k
    } else {
152
1.51k
        new (&storage) StorageType(std::move(x));
153
1.51k
    }
154
1.51k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
1.51k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE36EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
33.7k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
33.7k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
33.7k
    } else {
152
33.7k
        new (&storage) StorageType(std::move(x));
153
33.7k
    }
154
33.7k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
33.7k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE37EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
22.8k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
22.8k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
22.8k
    } else {
152
22.8k
        new (&storage) StorageType(std::move(x));
153
22.8k
    }
154
22.8k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
22.8k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE2EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
28.2M
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
28.2M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
28.2M
    } else {
152
28.2M
        new (&storage) StorageType(std::move(x));
153
28.2M
    }
154
28.2M
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
28.2M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE8EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
31.5k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
31.5k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
31.5k
    } else {
152
31.5k
        new (&storage) StorageType(std::move(x));
153
31.5k
    }
154
31.5k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
31.5k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE9EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
27.7k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
27.7k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
27.7k
    } else {
152
27.7k
        new (&storage) StorageType(std::move(x));
153
27.7k
    }
154
27.7k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
27.7k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE31EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
87.9k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
87.9k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
87.9k
    } else {
152
87.9k
        new (&storage) StorageType(std::move(x));
153
87.9k
    }
154
87.9k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
87.9k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE16EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
4.88k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
4.88k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
4.88k
    } else {
152
4.88k
        new (&storage) StorageType(std::move(x));
153
4.88k
    }
154
4.88k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
4.88k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE18EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
1.95k
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
1.95k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
1.95k
    } else {
152
1.95k
        new (&storage) StorageType(std::move(x));
153
1.95k
    }
154
1.95k
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
1.95k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE22EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
17
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
17
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
17
    } else {
152
17
        new (&storage) StorageType(std::move(x));
153
17
    }
154
17
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
17
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE27EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
23
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
23
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
23
    } else {
152
23
        new (&storage) StorageType(std::move(x));
153
23
    }
154
23
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
23
}
Unexecuted instantiation: _ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE38EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE39EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
141
40
void Field::create_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
142
    // In both Field and PODArray, small types may be stored as wider types,
143
    // e.g. char is stored as UInt64. Field can return this extended value
144
    // with get<StorageType>(). To avoid uninitialized results from get(),
145
    // we must initialize the entire wide stored type, and not just the
146
    // nominal type.
147
40
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
148
    if constexpr (Type == TYPE_VARBINARY) {
149
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
150
        new (&storage) OwnedBinaryField(x);
151
40
    } else {
152
40
        new (&storage) StorageType(std::move(x));
153
40
    }
154
40
    type = Type;
155
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
156
40
}
157
158
template <PrimitiveType Type>
159
228M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
228M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
228M
    if constexpr (Type == TYPE_VARBINARY) {
167
30
        new (&storage) OwnedBinaryField(x);
168
228M
    } else {
169
228M
        new (&storage) StorageType(x);
170
228M
    }
171
228M
    type = Type;
172
228M
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
228M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE1EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
38.7M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
38.7M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
38.7M
    } else {
169
38.7M
        new (&storage) StorageType(x);
170
38.7M
    }
171
38.7M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
38.7M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE3EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.46M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.46M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.46M
    } else {
169
3.46M
        new (&storage) StorageType(x);
170
3.46M
    }
171
3.46M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.46M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE4EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.94M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.94M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.94M
    } else {
169
3.94M
        new (&storage) StorageType(x);
170
3.94M
    }
171
3.94M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.94M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE5EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
25.3M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
25.3M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
25.3M
    } else {
169
25.3M
        new (&storage) StorageType(x);
170
25.3M
    }
171
25.3M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
25.3M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE6EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
5.21M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
5.21M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
5.21M
    } else {
169
5.21M
        new (&storage) StorageType(x);
170
5.21M
    }
171
5.21M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
5.21M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE7EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.14M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.14M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.14M
    } else {
169
3.14M
        new (&storage) StorageType(x);
170
3.14M
    }
171
3.14M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.14M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE11EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.39M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.39M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.39M
    } else {
169
3.39M
        new (&storage) StorageType(x);
170
3.39M
    }
171
3.39M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.39M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE12EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.33M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.33M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.33M
    } else {
169
3.33M
        new (&storage) StorageType(x);
170
3.33M
    }
171
3.33M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.33M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE25EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.38M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.38M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.38M
    } else {
169
3.38M
        new (&storage) StorageType(x);
170
3.38M
    }
171
3.38M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.38M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE26EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
4.07M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
4.07M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
4.07M
    } else {
169
4.07M
        new (&storage) StorageType(x);
170
4.07M
    }
171
4.07M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
4.07M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE43EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
163
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
163
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
163
    } else {
169
163
        new (&storage) StorageType(x);
170
163
    }
171
163
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
163
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE42EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
136
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
136
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
136
    } else {
169
136
        new (&storage) StorageType(x);
170
136
    }
171
136
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
136
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE28EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.58M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.58M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.58M
    } else {
169
3.58M
        new (&storage) StorageType(x);
170
3.58M
    }
171
3.58M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.58M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE29EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.60M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.60M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.60M
    } else {
169
3.60M
        new (&storage) StorageType(x);
170
3.60M
    }
171
3.60M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.60M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE20EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
8.99k
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
8.99k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
8.99k
    } else {
169
8.99k
        new (&storage) StorageType(x);
170
8.99k
    }
171
8.99k
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
8.99k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE30EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.50M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.50M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.50M
    } else {
169
3.50M
        new (&storage) StorageType(x);
170
3.50M
    }
171
3.50M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.50M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE35EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.69M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.69M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.69M
    } else {
169
3.69M
        new (&storage) StorageType(x);
170
3.69M
    }
171
3.69M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.69M
}
Unexecuted instantiation: _ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE15EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE10EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
2
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
2
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
2
    } else {
169
2
        new (&storage) StorageType(x);
170
2
    }
171
2
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
2
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE23EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
361k
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
361k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
361k
    } else {
169
361k
        new (&storage) StorageType(x);
170
361k
    }
171
361k
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
361k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE41EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
30
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
30
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
30
    if constexpr (Type == TYPE_VARBINARY) {
167
30
        new (&storage) OwnedBinaryField(x);
168
    } else {
169
        new (&storage) StorageType(x);
170
    }
171
30
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
30
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE19EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
404
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
404
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
404
    } else {
169
404
        new (&storage) StorageType(x);
170
404
    }
171
404
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
404
}
Unexecuted instantiation: _ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE32EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE24EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
22.3k
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
22.3k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
22.3k
    } else {
169
22.3k
        new (&storage) StorageType(x);
170
22.3k
    }
171
22.3k
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
22.3k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE17EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
92.3M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
92.3M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
92.3M
    } else {
169
92.3M
        new (&storage) StorageType(x);
170
92.3M
    }
171
92.3M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
92.3M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE36EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
58.3k
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
58.3k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
58.3k
    } else {
169
58.3k
        new (&storage) StorageType(x);
170
58.3k
    }
171
58.3k
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
58.3k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE37EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
38.6k
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
38.6k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
38.6k
    } else {
169
38.6k
        new (&storage) StorageType(x);
170
38.6k
    }
171
38.6k
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
38.6k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE2EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.51M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.51M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.51M
    } else {
169
3.51M
        new (&storage) StorageType(x);
170
3.51M
    }
171
3.51M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.51M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE8EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.49M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.49M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.49M
    } else {
169
3.49M
        new (&storage) StorageType(x);
170
3.49M
    }
171
3.49M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.49M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE9EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.81M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.81M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.81M
    } else {
169
3.81M
        new (&storage) StorageType(x);
170
3.81M
    }
171
3.81M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.81M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE31EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
11
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
11
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
11
    } else {
169
11
        new (&storage) StorageType(x);
170
11
    }
171
11
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
11
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE16EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
3.04M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
3.04M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
3.04M
    } else {
169
3.04M
        new (&storage) StorageType(x);
170
3.04M
    }
171
3.04M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
3.04M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE18EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
13.2M
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
13.2M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
13.2M
    } else {
169
13.2M
        new (&storage) StorageType(x);
170
13.2M
    }
171
13.2M
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
13.2M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE22EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
2.42k
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
2.42k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
2.42k
    } else {
169
2.42k
        new (&storage) StorageType(x);
170
2.42k
    }
171
2.42k
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
2.42k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE27EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
159
13
void Field::create_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
160
    // In both Field and PODArray, small types may be stored as wider types,
161
    // e.g. char is stored as UInt64. Field can return this extended value
162
    // with get<StorageType>(). To avoid uninitialized results from get(),
163
    // we must initialize the entire wide stored type, and not just the
164
    // nominal type.
165
13
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
166
    if constexpr (Type == TYPE_VARBINARY) {
167
        new (&storage) OwnedBinaryField(x);
168
13
    } else {
169
13
        new (&storage) StorageType(x);
170
13
    }
171
13
    type = Type;
172
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
173
13
}
Unexecuted instantiation: _ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE38EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Unexecuted instantiation: _ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE39EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
174
175
25.7M
void Field::create(Field&& field) {
176
25.7M
    switch (field.type) {
177
1.61k
    case PrimitiveType::TYPE_NULL:
178
1.61k
        create_concrete<TYPE_NULL>(std::move(field.template get<TYPE_NULL>()));
179
1.61k
        return;
180
51.4k
    case PrimitiveType::TYPE_DATETIMEV2:
181
51.4k
        create_concrete<TYPE_DATETIMEV2>(std::move(field.template get<TYPE_DATETIMEV2>()));
182
51.4k
        return;
183
60
    case PrimitiveType::TYPE_TIMESTAMP_NS:
184
60
        create_concrete<TYPE_TIMESTAMP_NS>(std::move(field.template get<TYPE_TIMESTAMP_NS>()));
185
60
        return;
186
7.05k
    case PrimitiveType::TYPE_DATEV2:
187
7.05k
        create_concrete<TYPE_DATEV2>(std::move(field.template get<TYPE_DATEV2>()));
188
7.05k
        return;
189
648
    case PrimitiveType::TYPE_TIMESTAMPTZ:
190
648
        create_concrete<TYPE_TIMESTAMPTZ>(std::move(field.template get<TYPE_TIMESTAMPTZ>()));
191
648
        return;
192
13.8k
    case PrimitiveType::TYPE_DATETIME:
193
13.8k
        create_concrete<TYPE_DATETIME>(std::move(field.template get<TYPE_DATETIME>()));
194
13.8k
        return;
195
9.24k
    case PrimitiveType::TYPE_DATE:
196
9.24k
        create_concrete<TYPE_DATE>(std::move(field.template get<TYPE_DATE>()));
197
9.24k
        return;
198
3.35k
    case PrimitiveType::TYPE_BOOLEAN:
199
3.35k
        create_concrete<TYPE_BOOLEAN>(std::move(field.template get<TYPE_BOOLEAN>()));
200
3.35k
        return;
201
32.6k
    case PrimitiveType::TYPE_TINYINT:
202
32.6k
        create_concrete<TYPE_TINYINT>(std::move(field.template get<TYPE_TINYINT>()));
203
32.6k
        return;
204
23.6k
    case PrimitiveType::TYPE_SMALLINT:
205
23.6k
        create_concrete<TYPE_SMALLINT>(std::move(field.template get<TYPE_SMALLINT>()));
206
23.6k
        return;
207
24.6M
    case PrimitiveType::TYPE_INT:
208
24.6M
        create_concrete<TYPE_INT>(std::move(field.template get<TYPE_INT>()));
209
24.6M
        return;
210
534k
    case PrimitiveType::TYPE_BIGINT:
211
534k
        create_concrete<TYPE_BIGINT>(std::move(field.template get<TYPE_BIGINT>()));
212
534k
        return;
213
18.3k
    case PrimitiveType::TYPE_LARGEINT:
214
18.3k
        create_concrete<TYPE_LARGEINT>(std::move(field.template get<TYPE_LARGEINT>()));
215
18.3k
        return;
216
32.8k
    case PrimitiveType::TYPE_IPV4:
217
32.8k
        create_concrete<TYPE_IPV4>(std::move(field.template get<TYPE_IPV4>()));
218
32.8k
        return;
219
22.0k
    case PrimitiveType::TYPE_IPV6:
220
22.0k
        create_concrete<TYPE_IPV6>(std::move(field.template get<TYPE_IPV6>()));
221
22.0k
        return;
222
29.5k
    case PrimitiveType::TYPE_FLOAT:
223
29.5k
        create_concrete<TYPE_FLOAT>(std::move(field.template get<TYPE_FLOAT>()));
224
29.5k
        return;
225
22
    case PrimitiveType::TYPE_TIMEV2:
226
22
        create_concrete<TYPE_TIMEV2>(std::move(field.template get<TYPE_TIMEV2>()));
227
22
        return;
228
25.9k
    case PrimitiveType::TYPE_DOUBLE:
229
25.9k
        create_concrete<TYPE_DOUBLE>(std::move(field.template get<TYPE_DOUBLE>()));
230
25.9k
        return;
231
120k
    case PrimitiveType::TYPE_STRING:
232
120k
        create_concrete<TYPE_STRING>(std::move(field.template get<TYPE_STRING>()));
233
120k
        return;
234
564
    case PrimitiveType::TYPE_CHAR:
235
564
        create_concrete<TYPE_CHAR>(std::move(field.template get<TYPE_CHAR>()));
236
564
        return;
237
3.68k
    case PrimitiveType::TYPE_VARCHAR:
238
3.68k
        create_concrete<TYPE_VARCHAR>(std::move(field.template get<TYPE_VARCHAR>()));
239
3.68k
        return;
240
9
    case PrimitiveType::TYPE_JSONB:
241
9
        create_concrete<TYPE_JSONB>(std::move(field.template get<TYPE_JSONB>()));
242
9
        return;
243
56.8k
    case PrimitiveType::TYPE_ARRAY:
244
56.8k
        create_concrete<TYPE_ARRAY>(std::move(field.template get<TYPE_ARRAY>()));
245
56.8k
        return;
246
2.88k
    case PrimitiveType::TYPE_STRUCT:
247
2.88k
        create_concrete<TYPE_STRUCT>(std::move(field.template get<TYPE_STRUCT>()));
248
2.88k
        return;
249
896
    case PrimitiveType::TYPE_MAP:
250
896
        create_concrete<TYPE_MAP>(std::move(field.template get<TYPE_MAP>()));
251
896
        return;
252
9.74k
    case PrimitiveType::TYPE_DECIMAL32:
253
9.74k
        create_concrete<TYPE_DECIMAL32>(std::move(field.template get<TYPE_DECIMAL32>()));
254
9.74k
        return;
255
16.7k
    case PrimitiveType::TYPE_DECIMAL64:
256
16.7k
        create_concrete<TYPE_DECIMAL64>(std::move(field.template get<TYPE_DECIMAL64>()));
257
16.7k
        return;
258
6.37k
    case PrimitiveType::TYPE_DECIMALV2:
259
6.37k
        create_concrete<TYPE_DECIMALV2>(std::move(field.template get<TYPE_DECIMALV2>()));
260
6.37k
        return;
261
19.2k
    case PrimitiveType::TYPE_DECIMAL128I:
262
19.2k
        create_concrete<TYPE_DECIMAL128I>(std::move(field.template get<TYPE_DECIMAL128I>()));
263
19.2k
        return;
264
33.9k
    case PrimitiveType::TYPE_DECIMAL256:
265
33.9k
        create_concrete<TYPE_DECIMAL256>(std::move(field.template get<TYPE_DECIMAL256>()));
266
33.9k
        return;
267
55
    case PrimitiveType::TYPE_VARIANT:
268
55
        create_concrete<TYPE_VARIANT>(std::move(field.template get<TYPE_VARIANT>()));
269
55
        return;
270
5
    case PrimitiveType::TYPE_BITMAP:
271
5
        create_concrete<TYPE_BITMAP>(std::move(field.template get<TYPE_BITMAP>()));
272
5
        return;
273
4
    case PrimitiveType::TYPE_HLL:
274
4
        create_concrete<TYPE_HLL>(std::move(field.template get<TYPE_HLL>()));
275
4
        return;
276
2
    case PrimitiveType::TYPE_QUANTILE_STATE:
277
2
        create_concrete<TYPE_QUANTILE_STATE>(std::move(field.template get<TYPE_QUANTILE_STATE>()));
278
2
        return;
279
24
    case PrimitiveType::TYPE_VARBINARY:
280
24
        create_concrete<TYPE_VARBINARY>(std::move(field.template get<TYPE_VARBINARY>()));
281
24
        return;
282
0
    default:
283
0
        throw Exception(Status::FatalError("type not supported, type={}", field.get_type_name()));
284
25.7M
    }
285
25.7M
}
286
287
202M
Field::Field(const Field& rhs) {
288
202M
    create(rhs);
289
202M
}
290
291
538k
Field::Field(Field&& rhs) {
292
538k
    create(std::move(rhs));
293
538k
}
294
295
39.1k
Field& Field::operator=(const Field& rhs) {
296
39.1k
    if (this != &rhs) {
297
39.1k
        if (type != rhs.type) {
298
1.31k
            destroy();
299
            // A failed allocation while changing types must leave a destructible Field.
300
1.31k
            type = TYPE_NULL;
301
1.31k
            create(rhs);
302
37.7k
        } else {
303
37.7k
            assign(rhs); /// This assigns string or vector without deallocation of existing buffer.
304
37.7k
        }
305
39.1k
    }
306
39.1k
    return *this;
307
39.1k
}
308
309
202M
void Field::create(const Field& field) {
310
202M
    switch (field.type) {
311
38.7M
    case PrimitiveType::TYPE_NULL:
312
38.7M
        create_concrete<TYPE_NULL>(field.template get<TYPE_NULL>());
313
38.7M
        return;
314
4.01M
    case PrimitiveType::TYPE_DATETIMEV2:
315
4.01M
        create_concrete<TYPE_DATETIMEV2>(field.template get<TYPE_DATETIMEV2>());
316
4.01M
        return;
317
77
    case PrimitiveType::TYPE_TIMESTAMP_NS:
318
77
        create_concrete<TYPE_TIMESTAMP_NS>(field.template get<TYPE_TIMESTAMP_NS>());
319
77
        return;
320
3.38M
    case PrimitiveType::TYPE_DATEV2:
321
3.38M
        create_concrete<TYPE_DATEV2>(field.template get<TYPE_DATEV2>());
322
3.38M
        return;
323
2
    case PrimitiveType::TYPE_TIMESTAMPTZ:
324
2
        create_concrete<TYPE_TIMESTAMPTZ>(field.template get<TYPE_TIMESTAMPTZ>());
325
2
        return;
326
3.32M
    case PrimitiveType::TYPE_DATETIME:
327
3.32M
        create_concrete<TYPE_DATETIME>(field.template get<TYPE_DATETIME>());
328
3.32M
        return;
329
3.38M
    case PrimitiveType::TYPE_DATE:
330
3.38M
        create_concrete<TYPE_DATE>(field.template get<TYPE_DATE>());
331
3.38M
        return;
332
3.50M
    case PrimitiveType::TYPE_BOOLEAN:
333
3.50M
        create_concrete<TYPE_BOOLEAN>(field.template get<TYPE_BOOLEAN>());
334
3.50M
        return;
335
3.43M
    case PrimitiveType::TYPE_TINYINT:
336
3.43M
        create_concrete<TYPE_TINYINT>(field.template get<TYPE_TINYINT>());
337
3.43M
        return;
338
3.92M
    case PrimitiveType::TYPE_SMALLINT:
339
3.92M
        create_concrete<TYPE_SMALLINT>(field.template get<TYPE_SMALLINT>());
340
3.92M
        return;
341
28.8k
    case PrimitiveType::TYPE_INT:
342
28.8k
        create_concrete<TYPE_INT>(field.template get<TYPE_INT>());
343
28.8k
        return;
344
5.18M
    case PrimitiveType::TYPE_BIGINT:
345
5.18M
        create_concrete<TYPE_BIGINT>(field.template get<TYPE_BIGINT>());
346
5.18M
        return;
347
3.13M
    case PrimitiveType::TYPE_LARGEINT:
348
3.13M
        create_concrete<TYPE_LARGEINT>(field.template get<TYPE_LARGEINT>());
349
3.13M
        return;
350
25.6k
    case PrimitiveType::TYPE_IPV4:
351
25.6k
        create_concrete<TYPE_IPV4>(field.template get<TYPE_IPV4>());
352
25.6k
        return;
353
16.8k
    case PrimitiveType::TYPE_IPV6:
354
16.8k
        create_concrete<TYPE_IPV6>(field.template get<TYPE_IPV6>());
355
16.8k
        return;
356
3.46M
    case PrimitiveType::TYPE_FLOAT:
357
3.46M
        create_concrete<TYPE_FLOAT>(field.template get<TYPE_FLOAT>());
358
3.46M
        return;
359
0
    case PrimitiveType::TYPE_TIMEV2:
360
0
        create_concrete<TYPE_TIMEV2>(field.template get<TYPE_TIMEV2>());
361
0
        return;
362
3.78M
    case PrimitiveType::TYPE_DOUBLE:
363
3.78M
        create_concrete<TYPE_DOUBLE>(field.template get<TYPE_DOUBLE>());
364
3.78M
        return;
365
28.3k
    case PrimitiveType::TYPE_STRING:
366
28.3k
        create_concrete<TYPE_STRING>(field.template get<TYPE_STRING>());
367
28.3k
        return;
368
0
    case PrimitiveType::TYPE_CHAR:
369
0
        create_concrete<TYPE_CHAR>(field.template get<TYPE_CHAR>());
370
0
        return;
371
0
    case PrimitiveType::TYPE_VARCHAR:
372
0
        create_concrete<TYPE_VARCHAR>(field.template get<TYPE_VARCHAR>());
373
0
        return;
374
7
    case PrimitiveType::TYPE_JSONB:
375
7
        create_concrete<TYPE_JSONB>(field.template get<TYPE_JSONB>());
376
7
        return;
377
92.3M
    case PrimitiveType::TYPE_ARRAY:
378
92.3M
        create_concrete<TYPE_ARRAY>(field.template get<TYPE_ARRAY>());
379
92.3M
        return;
380
3.04M
    case PrimitiveType::TYPE_STRUCT:
381
3.04M
        create_concrete<TYPE_STRUCT>(field.template get<TYPE_STRUCT>());
382
3.04M
        return;
383
13.2M
    case PrimitiveType::TYPE_MAP:
384
13.2M
        create_concrete<TYPE_MAP>(field.template get<TYPE_MAP>());
385
13.2M
        return;
386
3.57M
    case PrimitiveType::TYPE_DECIMAL32:
387
3.57M
        create_concrete<TYPE_DECIMAL32>(field.template get<TYPE_DECIMAL32>());
388
3.57M
        return;
389
3.58M
    case PrimitiveType::TYPE_DECIMAL64:
390
3.58M
        create_concrete<TYPE_DECIMAL64>(field.template get<TYPE_DECIMAL64>());
391
3.58M
        return;
392
430
    case PrimitiveType::TYPE_DECIMALV2:
393
430
        create_concrete<TYPE_DECIMALV2>(field.template get<TYPE_DECIMALV2>());
394
430
        return;
395
3.48M
    case PrimitiveType::TYPE_DECIMAL128I:
396
3.48M
        create_concrete<TYPE_DECIMAL128I>(field.template get<TYPE_DECIMAL128I>());
397
3.48M
        return;
398
3.66M
    case PrimitiveType::TYPE_DECIMAL256:
399
3.66M
        create_concrete<TYPE_DECIMAL256>(field.template get<TYPE_DECIMAL256>());
400
3.66M
        return;
401
0
    case PrimitiveType::TYPE_VARIANT:
402
0
        create_concrete<TYPE_VARIANT>(field.template get<TYPE_VARIANT>());
403
0
        return;
404
0
    case PrimitiveType::TYPE_BITMAP:
405
0
        create_concrete<TYPE_BITMAP>(field.template get<TYPE_BITMAP>());
406
0
        return;
407
0
    case PrimitiveType::TYPE_HLL:
408
0
        create_concrete<TYPE_HLL>(field.template get<TYPE_HLL>());
409
0
        return;
410
0
    case PrimitiveType::TYPE_QUANTILE_STATE:
411
0
        create_concrete<TYPE_QUANTILE_STATE>(field.template get<TYPE_QUANTILE_STATE>());
412
0
        return;
413
0
    case PrimitiveType::TYPE_UINT32:
414
0
        create_concrete<TYPE_UINT32>(field.template get<TYPE_UINT32>());
415
0
        return;
416
0
    case PrimitiveType::TYPE_UINT64:
417
0
        create_concrete<TYPE_UINT64>(field.template get<TYPE_UINT64>());
418
0
        return;
419
15
    case PrimitiveType::TYPE_VARBINARY:
420
15
        create_concrete<TYPE_VARBINARY>(field.template get<TYPE_VARBINARY>());
421
15
        return;
422
0
    default:
423
0
        throw Exception(Status::FatalError("type not supported, type={}", field.get_type_name()));
424
202M
    }
425
202M
}
426
427
337M
void Field::destroy() {
428
337M
    switch (type) {
429
1.88M
    case PrimitiveType::TYPE_STRING:
430
1.88M
        destroy<TYPE_STRING>();
431
1.88M
        break;
432
1.41k
    case PrimitiveType::TYPE_CHAR:
433
1.41k
        destroy<TYPE_CHAR>();
434
1.41k
        break;
435
9.36k
    case PrimitiveType::TYPE_VARCHAR:
436
9.36k
        destroy<TYPE_VARCHAR>();
437
9.36k
        break;
438
87.9k
    case PrimitiveType::TYPE_JSONB:
439
87.9k
        destroy<TYPE_JSONB>();
440
87.9k
        break;
441
92.4M
    case PrimitiveType::TYPE_ARRAY:
442
92.4M
        destroy<TYPE_ARRAY>();
443
92.4M
        break;
444
3.05M
    case PrimitiveType::TYPE_STRUCT:
445
3.05M
        destroy<TYPE_STRUCT>();
446
3.05M
        break;
447
13.2M
    case PrimitiveType::TYPE_MAP:
448
13.2M
        destroy<TYPE_MAP>();
449
13.2M
        break;
450
112
    case PrimitiveType::TYPE_VARIANT:
451
112
        destroy<TYPE_VARIANT>();
452
112
        break;
453
2.44k
    case PrimitiveType::TYPE_BITMAP:
454
2.44k
        destroy<TYPE_BITMAP>();
455
2.44k
        break;
456
418
    case PrimitiveType::TYPE_HLL:
457
418
        destroy<TYPE_HLL>();
458
418
        break;
459
22.3k
    case PrimitiveType::TYPE_QUANTILE_STATE:
460
22.3k
        destroy<TYPE_QUANTILE_STATE>();
461
22.3k
        break;
462
105
    case PrimitiveType::TYPE_VARBINARY:
463
105
        destroy<TYPE_VARBINARY>();
464
105
        break;
465
226M
    default:
466
226M
        break;
467
337M
    }
468
469
337M
    type = PrimitiveType::
470
337M
            TYPE_NULL; /// for exception safety in subsequent calls to destroy and create, when create fails.
471
337M
}
472
473
822k
void Field::assign(Field&& field) {
474
822k
    switch (field.type) {
475
35.8k
    case PrimitiveType::TYPE_NULL:
476
35.8k
        assign_concrete<TYPE_NULL>(std::move(field.template get<TYPE_NULL>()));
477
35.8k
        return;
478
304
    case PrimitiveType::TYPE_DATETIMEV2:
479
304
        assign_concrete<TYPE_DATETIMEV2>(std::move(field.template get<TYPE_DATETIMEV2>()));
480
304
        return;
481
4
    case PrimitiveType::TYPE_TIMESTAMP_NS:
482
4
        assign_concrete<TYPE_TIMESTAMP_NS>(std::move(field.template get<TYPE_TIMESTAMP_NS>()));
483
4
        return;
484
316
    case PrimitiveType::TYPE_DATETIME:
485
316
        assign_concrete<TYPE_DATETIME>(std::move(field.template get<TYPE_DATETIME>()));
486
316
        return;
487
300
    case PrimitiveType::TYPE_DATE:
488
300
        assign_concrete<TYPE_DATE>(std::move(field.template get<TYPE_DATE>()));
489
300
        return;
490
298
    case PrimitiveType::TYPE_DATEV2:
491
298
        assign_concrete<TYPE_DATEV2>(std::move(field.template get<TYPE_DATEV2>()));
492
298
        return;
493
282
    case PrimitiveType::TYPE_TIMESTAMPTZ:
494
282
        assign_concrete<TYPE_TIMESTAMPTZ>(std::move(field.template get<TYPE_TIMESTAMPTZ>()));
495
282
        return;
496
388
    case PrimitiveType::TYPE_BOOLEAN:
497
388
        assign_concrete<TYPE_BOOLEAN>(std::move(field.template get<TYPE_BOOLEAN>()));
498
388
        return;
499
3.21k
    case PrimitiveType::TYPE_TINYINT:
500
3.21k
        assign_concrete<TYPE_TINYINT>(std::move(field.template get<TYPE_TINYINT>()));
501
3.21k
        return;
502
312
    case PrimitiveType::TYPE_SMALLINT:
503
312
        assign_concrete<TYPE_SMALLINT>(std::move(field.template get<TYPE_SMALLINT>()));
504
312
        return;
505
717k
    case PrimitiveType::TYPE_INT:
506
717k
        assign_concrete<TYPE_INT>(std::move(field.template get<TYPE_INT>()));
507
717k
        return;
508
1.84k
    case PrimitiveType::TYPE_BIGINT:
509
1.84k
        assign_concrete<TYPE_BIGINT>(std::move(field.template get<TYPE_BIGINT>()));
510
1.84k
        return;
511
301
    case PrimitiveType::TYPE_LARGEINT:
512
301
        assign_concrete<TYPE_LARGEINT>(std::move(field.template get<TYPE_LARGEINT>()));
513
301
        return;
514
267
    case PrimitiveType::TYPE_IPV4:
515
267
        assign_concrete<TYPE_IPV4>(std::move(field.template get<TYPE_IPV4>()));
516
267
        return;
517
267
    case PrimitiveType::TYPE_IPV6:
518
267
        assign_concrete<TYPE_IPV6>(std::move(field.template get<TYPE_IPV6>()));
519
267
        return;
520
455
    case PrimitiveType::TYPE_FLOAT:
521
455
        assign_concrete<TYPE_FLOAT>(std::move(field.template get<TYPE_FLOAT>()));
522
455
        return;
523
0
    case PrimitiveType::TYPE_TIMEV2:
524
0
        assign_concrete<TYPE_TIMEV2>(std::move(field.template get<TYPE_TIMEV2>()));
525
0
        return;
526
571
    case PrimitiveType::TYPE_DOUBLE:
527
571
        assign_concrete<TYPE_DOUBLE>(std::move(field.template get<TYPE_DOUBLE>()));
528
571
        return;
529
13.1k
    case PrimitiveType::TYPE_STRING:
530
13.1k
        assign_concrete<TYPE_STRING>(std::move(field.template get<TYPE_STRING>()));
531
13.1k
        return;
532
286
    case PrimitiveType::TYPE_CHAR:
533
286
        assign_concrete<TYPE_CHAR>(std::move(field.template get<TYPE_CHAR>()));
534
286
        return;
535
1.98k
    case PrimitiveType::TYPE_VARCHAR:
536
1.98k
        assign_concrete<TYPE_VARCHAR>(std::move(field.template get<TYPE_VARCHAR>()));
537
1.98k
        return;
538
43.9k
    case PrimitiveType::TYPE_JSONB:
539
43.9k
        assign_concrete<TYPE_JSONB>(std::move(field.template get<TYPE_JSONB>()));
540
43.9k
        return;
541
114
    case PrimitiveType::TYPE_ARRAY:
542
114
        assign_concrete<TYPE_ARRAY>(std::move(field.template get<TYPE_ARRAY>()));
543
114
        return;
544
0
    case PrimitiveType::TYPE_STRUCT:
545
0
        assign_concrete<TYPE_STRUCT>(std::move(field.template get<TYPE_STRUCT>()));
546
0
        return;
547
1
    case PrimitiveType::TYPE_MAP:
548
1
        assign_concrete<TYPE_MAP>(std::move(field.template get<TYPE_MAP>()));
549
1
        return;
550
267
    case PrimitiveType::TYPE_DECIMAL32:
551
267
        assign_concrete<TYPE_DECIMAL32>(std::move(field.template get<TYPE_DECIMAL32>()));
552
267
        return;
553
267
    case PrimitiveType::TYPE_DECIMAL64:
554
267
        assign_concrete<TYPE_DECIMAL64>(std::move(field.template get<TYPE_DECIMAL64>()));
555
267
        return;
556
282
    case PrimitiveType::TYPE_DECIMALV2:
557
282
        assign_concrete<TYPE_DECIMALV2>(std::move(field.template get<TYPE_DECIMALV2>()));
558
282
        return;
559
267
    case PrimitiveType::TYPE_DECIMAL128I:
560
267
        assign_concrete<TYPE_DECIMAL128I>(std::move(field.template get<TYPE_DECIMAL128I>()));
561
267
        return;
562
269
    case PrimitiveType::TYPE_DECIMAL256:
563
269
        assign_concrete<TYPE_DECIMAL256>(std::move(field.template get<TYPE_DECIMAL256>()));
564
269
        return;
565
0
    case PrimitiveType::TYPE_VARIANT:
566
0
        assign_concrete<TYPE_VARIANT>(std::move(field.template get<TYPE_VARIANT>()));
567
0
        return;
568
2
    case PrimitiveType::TYPE_BITMAP:
569
2
        assign_concrete<TYPE_BITMAP>(std::move(field.template get<TYPE_BITMAP>()));
570
2
        return;
571
1
    case PrimitiveType::TYPE_HLL:
572
1
        assign_concrete<TYPE_HLL>(std::move(field.template get<TYPE_HLL>()));
573
1
        return;
574
1
    case PrimitiveType::TYPE_QUANTILE_STATE:
575
1
        assign_concrete<TYPE_QUANTILE_STATE>(std::move(field.template get<TYPE_QUANTILE_STATE>()));
576
1
        return;
577
9
    case PrimitiveType::TYPE_VARBINARY:
578
9
        assign_concrete<TYPE_VARBINARY>(std::move(field.template get<TYPE_VARBINARY>()));
579
9
        return;
580
0
    default:
581
0
        throw Exception(Status::FatalError("type not supported, type={}", field.get_type_name()));
582
822k
    }
583
822k
}
584
585
37.7k
void Field::assign(const Field& field) {
586
37.7k
    switch (field.type) {
587
377
    case PrimitiveType::TYPE_NULL:
588
377
        assign_concrete<TYPE_NULL>(field.template get<TYPE_NULL>());
589
377
        return;
590
277
    case PrimitiveType::TYPE_DATETIMEV2:
591
277
        assign_concrete<TYPE_DATETIMEV2>(field.template get<TYPE_DATETIMEV2>());
592
277
        return;
593
3
    case PrimitiveType::TYPE_TIMESTAMP_NS:
594
3
        assign_concrete<TYPE_TIMESTAMP_NS>(field.template get<TYPE_TIMESTAMP_NS>());
595
3
        return;
596
298
    case PrimitiveType::TYPE_DATETIME:
597
298
        assign_concrete<TYPE_DATETIME>(field.template get<TYPE_DATETIME>());
598
298
        return;
599
284
    case PrimitiveType::TYPE_DATE:
600
284
        assign_concrete<TYPE_DATE>(field.template get<TYPE_DATE>());
601
284
        return;
602
288
    case PrimitiveType::TYPE_DATEV2:
603
288
        assign_concrete<TYPE_DATEV2>(field.template get<TYPE_DATEV2>());
604
288
        return;
605
277
    case PrimitiveType::TYPE_TIMESTAMPTZ:
606
277
        assign_concrete<TYPE_TIMESTAMPTZ>(field.template get<TYPE_TIMESTAMPTZ>());
607
277
        return;
608
388
    case PrimitiveType::TYPE_BOOLEAN:
609
388
        assign_concrete<TYPE_BOOLEAN>(field.template get<TYPE_BOOLEAN>());
610
388
        return;
611
3.17k
    case PrimitiveType::TYPE_TINYINT:
612
3.17k
        assign_concrete<TYPE_TINYINT>(field.template get<TYPE_TINYINT>());
613
3.17k
        return;
614
298
    case PrimitiveType::TYPE_SMALLINT:
615
298
        assign_concrete<TYPE_SMALLINT>(field.template get<TYPE_SMALLINT>());
616
298
        return;
617
18.0k
    case PrimitiveType::TYPE_INT:
618
18.0k
        assign_concrete<TYPE_INT>(field.template get<TYPE_INT>());
619
18.0k
        return;
620
1.80k
    case PrimitiveType::TYPE_BIGINT:
621
1.80k
        assign_concrete<TYPE_BIGINT>(field.template get<TYPE_BIGINT>());
622
1.80k
        return;
623
277
    case PrimitiveType::TYPE_LARGEINT:
624
277
        assign_concrete<TYPE_LARGEINT>(field.template get<TYPE_LARGEINT>());
625
277
        return;
626
267
    case PrimitiveType::TYPE_IPV4:
627
267
        assign_concrete<TYPE_IPV4>(field.template get<TYPE_IPV4>());
628
267
        return;
629
267
    case PrimitiveType::TYPE_IPV6:
630
267
        assign_concrete<TYPE_IPV6>(field.template get<TYPE_IPV6>());
631
267
        return;
632
288
    case PrimitiveType::TYPE_FLOAT:
633
288
        assign_concrete<TYPE_FLOAT>(field.template get<TYPE_FLOAT>());
634
288
        return;
635
0
    case PrimitiveType::TYPE_TIMEV2:
636
0
        assign_concrete<TYPE_TIMEV2>(field.template get<TYPE_TIMEV2>());
637
0
        return;
638
393
    case PrimitiveType::TYPE_DOUBLE:
639
393
        assign_concrete<TYPE_DOUBLE>(field.template get<TYPE_DOUBLE>());
640
393
        return;
641
7.26k
    case PrimitiveType::TYPE_STRING:
642
7.26k
        assign_concrete<TYPE_STRING>(field.template get<TYPE_STRING>());
643
7.26k
        return;
644
283
    case PrimitiveType::TYPE_CHAR:
645
283
        assign_concrete<TYPE_CHAR>(field.template get<TYPE_CHAR>());
646
283
        return;
647
1.86k
    case PrimitiveType::TYPE_VARCHAR:
648
1.86k
        assign_concrete<TYPE_VARCHAR>(field.template get<TYPE_VARCHAR>());
649
1.86k
        return;
650
1
    case PrimitiveType::TYPE_JSONB:
651
1
        assign_concrete<TYPE_JSONB>(field.template get<TYPE_JSONB>());
652
1
        return;
653
13
    case PrimitiveType::TYPE_ARRAY:
654
13
        assign_concrete<TYPE_ARRAY>(field.template get<TYPE_ARRAY>());
655
13
        return;
656
0
    case PrimitiveType::TYPE_STRUCT:
657
0
        assign_concrete<TYPE_STRUCT>(field.template get<TYPE_STRUCT>());
658
0
        return;
659
1
    case PrimitiveType::TYPE_MAP:
660
1
        assign_concrete<TYPE_MAP>(field.template get<TYPE_MAP>());
661
1
        return;
662
267
    case PrimitiveType::TYPE_DECIMAL32:
663
267
        assign_concrete<TYPE_DECIMAL32>(field.template get<TYPE_DECIMAL32>());
664
267
        return;
665
267
    case PrimitiveType::TYPE_DECIMAL64:
666
267
        assign_concrete<TYPE_DECIMAL64>(field.template get<TYPE_DECIMAL64>());
667
267
        return;
668
272
    case PrimitiveType::TYPE_DECIMALV2:
669
272
        assign_concrete<TYPE_DECIMALV2>(field.template get<TYPE_DECIMALV2>());
670
272
        return;
671
267
    case PrimitiveType::TYPE_DECIMAL128I:
672
267
        assign_concrete<TYPE_DECIMAL128I>(field.template get<TYPE_DECIMAL128I>());
673
267
        return;
674
269
    case PrimitiveType::TYPE_DECIMAL256:
675
269
        assign_concrete<TYPE_DECIMAL256>(field.template get<TYPE_DECIMAL256>());
676
269
        return;
677
0
    case PrimitiveType::TYPE_VARIANT:
678
0
        assign_concrete<TYPE_VARIANT>(field.template get<TYPE_VARIANT>());
679
0
        return;
680
2
    case PrimitiveType::TYPE_BITMAP:
681
2
        assign_concrete<TYPE_BITMAP>(field.template get<TYPE_BITMAP>());
682
2
        return;
683
1
    case PrimitiveType::TYPE_HLL:
684
1
        assign_concrete<TYPE_HLL>(field.template get<TYPE_HLL>());
685
1
        return;
686
1
    case PrimitiveType::TYPE_QUANTILE_STATE:
687
1
        assign_concrete<TYPE_QUANTILE_STATE>(field.template get<TYPE_QUANTILE_STATE>());
688
1
        return;
689
0
    case PrimitiveType::TYPE_UINT32:
690
0
        assign_concrete<TYPE_UINT32>(field.template get<TYPE_UINT32>());
691
0
        return;
692
0
    case PrimitiveType::TYPE_UINT64:
693
0
        assign_concrete<TYPE_UINT64>(field.template get<TYPE_UINT64>());
694
0
        return;
695
7
    case PrimitiveType::TYPE_VARBINARY:
696
7
        assign_concrete<TYPE_VARBINARY>(field.template get<TYPE_VARBINARY>());
697
7
        return;
698
0
    default:
699
0
        throw Exception(Status::FatalError("type not supported, type={}", field.get_type_name()));
700
37.7k
    }
701
37.7k
}
702
703
/// Assuming same types.
704
template <PrimitiveType Type>
705
822k
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
822k
    if constexpr (Type == TYPE_VARBINARY) {
707
9
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
9
        return;
709
9
    }
710
0
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
822k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
822k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE1EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
35.8k
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
35.8k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
35.8k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
35.8k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE3EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
3.21k
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
3.21k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
3.21k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
3.21k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE4EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
312
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
312
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
312
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
312
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE5EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
717k
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
717k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
717k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
717k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE6EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
1.84k
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
1.84k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
1.84k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
1.84k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE7EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
301
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
301
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
301
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
301
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE11EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
300
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
300
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
300
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
300
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE12EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
316
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
316
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
316
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
316
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE25EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
298
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
298
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
298
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
298
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE26EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
304
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
304
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
304
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
304
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE43EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
4
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
4
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
4
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
4
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE28EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
267
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
267
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE29EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
267
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
267
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE20EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
282
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
282
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
282
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
282
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE30EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
267
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
267
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE35EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
269
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
269
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
269
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
269
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE15EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
286
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
286
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
286
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
286
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE10EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
1.98k
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
1.98k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
1.98k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
1.98k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE23EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
13.1k
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
13.1k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
13.1k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
13.1k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE41EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
9
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
9
    if constexpr (Type == TYPE_VARBINARY) {
707
9
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
9
        return;
709
9
    }
710
0
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
9
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
9
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE19EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
1
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
1
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
1
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
1
}
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE32EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE24EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
1
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
1
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
1
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
1
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE17EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
114
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
114
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
114
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
114
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE42EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
282
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
282
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
282
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
282
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE36EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
267
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
267
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE37EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
267
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
267
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE2EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
388
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
388
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
388
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
388
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE8EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
455
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
455
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
455
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
455
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE9EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
571
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
571
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
571
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
571
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE31EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
43.9k
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
43.9k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
43.9k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
43.9k
}
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE16EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE18EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
1
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
1
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
1
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
1
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE22EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
705
2
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
706
    if constexpr (Type == TYPE_VARBINARY) {
707
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
708
        return;
709
    }
710
2
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
711
2
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
712
2
}
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE27EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE38EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE39EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
713
714
template <PrimitiveType Type>
715
37.7k
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
37.7k
    if constexpr (Type == TYPE_VARBINARY) {
717
7
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
7
        return;
719
7
    }
720
0
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
37.7k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
37.7k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE1EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
377
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
377
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
377
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
377
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE3EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
3.17k
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
3.17k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
3.17k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
3.17k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE4EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
298
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
298
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
298
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
298
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE5EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
18.0k
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
18.0k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
18.0k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
18.0k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE6EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
1.80k
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
1.80k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
1.80k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
1.80k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE7EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
277
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
277
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
277
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
277
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE11EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
284
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
284
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
284
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
284
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE12EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
298
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
298
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
298
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
298
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE25EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
288
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
288
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
288
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
288
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE26EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
277
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
277
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
277
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
277
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE43EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
3
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
3
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
3
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
3
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE42EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
277
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
277
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
277
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
277
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE28EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
267
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
267
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE29EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
267
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
267
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE20EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
272
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
272
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
272
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
272
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE30EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
267
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
267
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE35EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
269
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
269
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
269
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
269
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE15EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
283
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
283
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
283
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
283
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE10EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
1.86k
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
1.86k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
1.86k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
1.86k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE23EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
7.26k
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
7.26k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
7.26k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
7.26k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE41EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
7
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
7
    if constexpr (Type == TYPE_VARBINARY) {
717
7
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
7
        return;
719
7
    }
720
0
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
7
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
7
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE19EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
1
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
1
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
1
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
1
}
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE32EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE24EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
1
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
1
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
1
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
1
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE17EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
13
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
13
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
13
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
13
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE36EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
267
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
267
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE37EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
267
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
267
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
267
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
267
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE2EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
388
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
388
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
388
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
388
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE8EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
288
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
288
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
288
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
288
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE9EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
393
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
393
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
393
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
393
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE31EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
1
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
1
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
1
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
1
}
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE16EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE18EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
1
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
1
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
1
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
1
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE22EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
715
2
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
716
    if constexpr (Type == TYPE_VARBINARY) {
717
        *reinterpret_cast<OwnedBinaryField*>(&storage) = OwnedBinaryField(x);
718
        return;
719
    }
720
2
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
721
2
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
722
2
}
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE27EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE38EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Unexecuted instantiation: _ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE39EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
723
724
0
std::string Field::get_type_name() const {
725
0
    return type_to_string(type);
726
0
}
727
728
template <PrimitiveType T>
729
94.1M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
94.1M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
94.1M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
94.1M
    return *ptr;
736
94.1M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE1EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
37.4k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
37.4k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
37.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
37.4k
    return *ptr;
736
37.4k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE3EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
36.0k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
36.0k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
36.0k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
36.0k
    return *ptr;
736
36.0k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE4EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
25.5k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
25.5k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
25.5k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
25.5k
    return *ptr;
736
25.5k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE5EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
92.7M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
92.7M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
92.7M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
92.7M
    return *ptr;
736
92.7M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE6EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
538k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
538k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
538k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
538k
    return *ptr;
736
538k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE7EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
18.7k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
18.7k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
18.7k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
18.7k
    return *ptr;
736
18.7k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE11EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
9.59k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
9.59k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
9.59k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
9.59k
    return *ptr;
736
9.59k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE12EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
14.2k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
14.2k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
14.2k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
14.2k
    return *ptr;
736
14.2k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE25EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
7.38k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
7.38k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
7.38k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
7.38k
    return *ptr;
736
7.38k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE26EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
51.8k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
51.8k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
51.8k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
51.8k
    return *ptr;
736
51.8k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE43EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
87
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
87
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
87
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
87
    return *ptr;
736
87
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE42EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
985
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
985
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
985
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
985
    return *ptr;
736
985
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE28EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
10.4k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
10.4k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
10.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
10.4k
    return *ptr;
736
10.4k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE29EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
20.3k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
20.3k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
20.3k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
20.3k
    return *ptr;
736
20.3k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE20EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
9.35k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
9.35k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
9.35k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
9.35k
    return *ptr;
736
9.35k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE30EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
22.9k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
22.9k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
22.9k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
22.9k
    return *ptr;
736
22.9k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE35EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
35.7k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
35.7k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
35.7k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
35.7k
    return *ptr;
736
35.7k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE15EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
1.18k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
1.18k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
1.18k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
1.18k
    return *ptr;
736
1.18k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE10EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
7.88k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
7.88k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
7.88k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
7.88k
    return *ptr;
736
7.88k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE23EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
202k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
202k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
202k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
202k
    return *ptr;
736
202k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE41EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
75
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
75
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
75
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
75
    return *ptr;
736
75
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE19EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
6
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
6
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
6
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
6
    return *ptr;
736
6
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE32EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
88
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
88
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
88
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
88
    return *ptr;
736
88
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE24EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
4
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
4
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
4
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
4
    return *ptr;
736
4
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE17EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
95.2k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
95.2k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
95.2k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
95.2k
    return *ptr;
736
95.2k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE36EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
33.1k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
33.1k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
33.1k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
33.1k
    return *ptr;
736
33.1k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE37EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
22.3k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
22.3k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
22.3k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
22.3k
    return *ptr;
736
22.3k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE2EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
3.75k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
3.75k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
3.75k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
3.75k
    return *ptr;
736
3.75k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE8EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
30.5k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
30.5k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
30.5k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
30.5k
    return *ptr;
736
30.5k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE9EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
27.0k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
27.0k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
27.0k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
27.0k
    return *ptr;
736
27.0k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE31EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
65.9k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
65.9k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
65.9k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
65.9k
    return *ptr;
736
65.9k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE16EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
4.89k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
4.89k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
4.89k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
4.89k
    return *ptr;
736
4.89k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE18EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
911
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
911
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
911
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
911
    return *ptr;
736
911
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE22EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
137
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
137
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
137
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
137
    return *ptr;
736
137
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE27EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
729
26
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
730
26
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
731
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
732
0
                                           type_to_string(T), get_type_name()));
733
0
    }
734
26
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
735
26
    return *ptr;
736
26
}
Unexecuted instantiation: _ZN5doris5Field3getILNS_13PrimitiveTypeE38EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Unexecuted instantiation: _ZN5doris5Field3getILNS_13PrimitiveTypeE39EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
737
738
template <PrimitiveType T>
739
312M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
312M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
312M
    const auto* MAY_ALIAS ptr =
745
312M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
312M
    return *ptr;
747
312M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE1EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
38.7M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
38.7M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
38.7M
    const auto* MAY_ALIAS ptr =
745
38.7M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
38.7M
    return *ptr;
747
38.7M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE3EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.44M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.44M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.44M
    const auto* MAY_ALIAS ptr =
745
4.44M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.44M
    return *ptr;
747
4.44M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE4EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.92M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.92M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.92M
    const auto* MAY_ALIAS ptr =
745
4.92M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.92M
    return *ptr;
747
4.92M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE5EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
3.40M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
3.40M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
3.40M
    const auto* MAY_ALIAS ptr =
745
3.40M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
3.40M
    return *ptr;
747
3.40M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE6EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
20.2M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
20.2M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
20.2M
    const auto* MAY_ALIAS ptr =
745
20.2M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
20.2M
    return *ptr;
747
20.2M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE7EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.13M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.13M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.13M
    const auto* MAY_ALIAS ptr =
745
4.13M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.13M
    return *ptr;
747
4.13M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE11EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.38M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.38M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.38M
    const auto* MAY_ALIAS ptr =
745
4.38M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.38M
    return *ptr;
747
4.38M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE12EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.32M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.32M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.32M
    const auto* MAY_ALIAS ptr =
745
4.32M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.32M
    return *ptr;
747
4.32M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE25EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.38M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.38M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.38M
    const auto* MAY_ALIAS ptr =
745
4.38M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.38M
    return *ptr;
747
4.38M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE26EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
5.02M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
5.02M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
5.02M
    const auto* MAY_ALIAS ptr =
745
5.02M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
5.02M
    return *ptr;
747
5.02M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE43EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
187
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
187
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
187
    const auto* MAY_ALIAS ptr =
745
187
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
187
    return *ptr;
747
187
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE42EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
788
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
788
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
788
    const auto* MAY_ALIAS ptr =
745
788
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
788
    return *ptr;
747
788
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE28EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.58M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.58M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.58M
    const auto* MAY_ALIAS ptr =
745
4.58M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.58M
    return *ptr;
747
4.58M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE29EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
18.1M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
18.1M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
18.1M
    const auto* MAY_ALIAS ptr =
745
18.1M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
18.1M
    return *ptr;
747
18.1M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE20EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
16.4k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
16.4k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
16.4k
    const auto* MAY_ALIAS ptr =
745
16.4k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
16.4k
    return *ptr;
747
16.4k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE30EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.49M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.49M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.49M
    const auto* MAY_ALIAS ptr =
745
4.49M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.49M
    return *ptr;
747
4.49M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE35EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.66M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.66M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.66M
    const auto* MAY_ALIAS ptr =
745
4.66M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.66M
    return *ptr;
747
4.66M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE15EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
284
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
284
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
284
    const auto* MAY_ALIAS ptr =
745
284
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
284
    return *ptr;
747
284
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE10EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
1.87k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
1.87k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
1.87k
    const auto* MAY_ALIAS ptr =
745
1.87k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
1.87k
    return *ptr;
747
1.87k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE23EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
3.45M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
3.45M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
3.45M
    const auto* MAY_ALIAS ptr =
745
3.45M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
3.45M
    return *ptr;
747
3.45M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE41EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
63
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
63
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
63
    const auto* MAY_ALIAS ptr =
745
63
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
63
    return *ptr;
747
63
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE19EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
8
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
8
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
8
    const auto* MAY_ALIAS ptr =
745
8
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
8
    return *ptr;
747
8
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE32EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
27
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
27
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
27
    const auto* MAY_ALIAS ptr =
745
27
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
27
    return *ptr;
747
27
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE24EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
20.0k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
20.0k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
20.0k
    const auto* MAY_ALIAS ptr =
745
20.0k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
20.0k
    return *ptr;
747
20.0k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE17EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
119M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
119M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
119M
    const auto* MAY_ALIAS ptr =
745
119M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
119M
    return *ptr;
747
119M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE36EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
26.9k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
26.9k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
26.9k
    const auto* MAY_ALIAS ptr =
745
26.9k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
26.9k
    return *ptr;
747
26.9k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE37EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
18.0k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
18.0k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
18.0k
    const auto* MAY_ALIAS ptr =
745
18.0k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
18.0k
    return *ptr;
747
18.0k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE2EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
32.7M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
32.7M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
32.7M
    const auto* MAY_ALIAS ptr =
745
32.7M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
32.7M
    return *ptr;
747
32.7M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE8EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.47M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.47M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.47M
    const auto* MAY_ALIAS ptr =
745
4.47M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.47M
    return *ptr;
747
4.47M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE9EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.79M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.79M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.79M
    const auto* MAY_ALIAS ptr =
745
4.79M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.79M
    return *ptr;
747
4.79M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE31EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
22.0k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
22.0k
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
22.0k
    const auto* MAY_ALIAS ptr =
745
22.0k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
22.0k
    return *ptr;
747
22.0k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE16EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
4.04M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
4.04M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
4.04M
    const auto* MAY_ALIAS ptr =
745
4.04M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
4.04M
    return *ptr;
747
4.04M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE18EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
17.2M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
17.2M
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
17.2M
    const auto* MAY_ALIAS ptr =
745
17.2M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
17.2M
    return *ptr;
747
17.2M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE22EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
13
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
13
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
13
    const auto* MAY_ALIAS ptr =
745
13
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
13
    return *ptr;
747
13
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE27EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
7
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
7
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
7
    const auto* MAY_ALIAS ptr =
745
7
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
7
    return *ptr;
747
7
}
Unexecuted instantiation: _ZNK5doris5Field3getILNS_13PrimitiveTypeE38EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
_ZNK5doris5Field3getILNS_13PrimitiveTypeE39EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
739
40
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
740
40
    if (T != type && !(is_string_type(type) && is_string_type(T)) && type != TYPE_NULL) {
741
0
        throw Exception(Status::FatalError("Field::get type mismatch: requested {}, actual {}",
742
0
                                           type_to_string(T), get_type_name()));
743
0
    }
744
40
    const auto* MAY_ALIAS ptr =
745
40
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
746
40
    return *ptr;
747
40
}
748
749
template <PrimitiveType T>
750
110M
void Field::destroy() {
751
110M
    if constexpr (T == TYPE_VARBINARY) {
752
105
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
105
        return;
754
105
    }
755
0
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
110M
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
105
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
110M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
110M
    ptr->~TargetType();
760
110M
}
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE1EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE3EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE4EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE5EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE6EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE7EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE11EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE12EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE25EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE26EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE43EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE42EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE28EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE29EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE20EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE30EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE35EEEvv
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE15EEEvv
Line
Count
Source
750
1.41k
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
1.41k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
1.41k
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
1.41k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
1.41k
    ptr->~TargetType();
760
1.41k
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE10EEEvv
Line
Count
Source
750
9.36k
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
9.36k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
9.36k
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
9.36k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
9.36k
    ptr->~TargetType();
760
9.36k
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE23EEEvv
Line
Count
Source
750
1.88M
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
1.88M
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
1.88M
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
1.88M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
1.88M
    ptr->~TargetType();
760
1.88M
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE41EEEvv
Line
Count
Source
750
105
void Field::destroy() {
751
105
    if constexpr (T == TYPE_VARBINARY) {
752
105
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
105
        return;
754
105
    }
755
0
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
105
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
105
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
105
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
105
    ptr->~TargetType();
760
105
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE19EEEvv
Line
Count
Source
750
418
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
418
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
418
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
418
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
418
    ptr->~TargetType();
760
418
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE32EEEvv
Line
Count
Source
750
112
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
112
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
112
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
112
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
112
    ptr->~TargetType();
760
112
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE24EEEvv
Line
Count
Source
750
22.3k
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
22.3k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
22.3k
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
22.3k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
22.3k
    ptr->~TargetType();
760
22.3k
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE17EEEvv
Line
Count
Source
750
92.4M
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
92.4M
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
92.4M
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
92.4M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
92.4M
    ptr->~TargetType();
760
92.4M
}
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE36EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE37EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE2EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE8EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE9EEEvv
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE31EEEvv
Line
Count
Source
750
87.9k
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
87.9k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
87.9k
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
87.9k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
87.9k
    ptr->~TargetType();
760
87.9k
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE16EEEvv
Line
Count
Source
750
3.05M
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
3.05M
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
3.05M
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
3.05M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
3.05M
    ptr->~TargetType();
760
3.05M
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE18EEEvv
Line
Count
Source
750
13.2M
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
13.2M
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
13.2M
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
13.2M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
13.2M
    ptr->~TargetType();
760
13.2M
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE22EEEvv
Line
Count
Source
750
2.44k
void Field::destroy() {
751
    if constexpr (T == TYPE_VARBINARY) {
752
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
753
        return;
754
    }
755
2.44k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
756
2.44k
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
757
0
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
758
2.44k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
759
2.44k
    ptr->~TargetType();
760
2.44k
}
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE27EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE38EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE39EEEvv
761
762
131k
std::strong_ordering Field::operator<=>(const Field& rhs) const {
763
131k
    if (type == PrimitiveType::TYPE_NULL || rhs == PrimitiveType::TYPE_NULL) {
764
88.6k
        return type <=> rhs.type;
765
88.6k
    }
766
42.4k
    if (type != rhs.type) {
767
        // String-family types (STRING, CHAR, VARCHAR) all store String internally
768
        // and are inter-comparable.  This arises when comparing RowCursor fields
769
        // (which carry the declared column type) against Column::operator[] results
770
        // (which always return TYPE_STRING for ColumnString).
771
0
        if (is_string_type(type) && is_string_type(rhs.type)) {
772
0
            return get<TYPE_STRING>() <=> rhs.get<TYPE_STRING>();
773
0
        }
774
0
        throw Exception(Status::FatalError("lhs type not equal with rhs, lhs={}, rhs={}",
775
0
                                           get_type_name(), rhs.get_type_name()));
776
0
    }
777
778
42.4k
    switch (type) {
779
1.14k
    case PrimitiveType::TYPE_BITMAP:
780
1.34k
    case PrimitiveType::TYPE_HLL:
781
2.53k
    case PrimitiveType::TYPE_QUANTILE_STATE:
782
2.53k
    case PrimitiveType::INVALID_TYPE:
783
2.53k
    case PrimitiveType::TYPE_JSONB:
784
2.53k
    case PrimitiveType::TYPE_NULL:
785
8.67k
    case PrimitiveType::TYPE_ARRAY:
786
8.72k
    case PrimitiveType::TYPE_MAP:
787
8.75k
    case PrimitiveType::TYPE_STRUCT:
788
8.75k
    case PrimitiveType::TYPE_VARIANT:
789
8.75k
        return std::strong_ordering::equal; //TODO: throw Exception?
790
108
    case PrimitiveType::TYPE_DATETIMEV2:
791
108
        return get<PrimitiveType::TYPE_DATETIMEV2>().to_date_int_val() <=>
792
108
               rhs.get<PrimitiveType::TYPE_DATETIMEV2>().to_date_int_val();
793
3
    case PrimitiveType::TYPE_TIMESTAMP_NS:
794
3
        return get<PrimitiveType::TYPE_TIMESTAMP_NS>() <=>
795
3
               rhs.get<PrimitiveType::TYPE_TIMESTAMP_NS>();
796
57
    case PrimitiveType::TYPE_DATEV2:
797
57
        return get<PrimitiveType::TYPE_DATEV2>().to_date_int_val() <=>
798
57
               rhs.get<PrimitiveType::TYPE_DATEV2>().to_date_int_val();
799
4
    case PrimitiveType::TYPE_TIMESTAMPTZ:
800
4
        return get<PrimitiveType::TYPE_TIMESTAMPTZ>().to_date_int_val() <=>
801
4
               rhs.get<PrimitiveType::TYPE_TIMESTAMPTZ>().to_date_int_val();
802
51
    case PrimitiveType::TYPE_DATE:
803
51
        return get<PrimitiveType::TYPE_DATE>() <=> rhs.get<PrimitiveType::TYPE_DATE>();
804
51
    case PrimitiveType::TYPE_DATETIME:
805
51
        return get<PrimitiveType::TYPE_DATETIME>() <=> rhs.get<PrimitiveType::TYPE_DATETIME>();
806
186
    case PrimitiveType::TYPE_BIGINT:
807
186
        return get<PrimitiveType::TYPE_BIGINT>() <=> rhs.get<PrimitiveType::TYPE_BIGINT>();
808
72
    case PrimitiveType::TYPE_BOOLEAN:
809
72
        return get<PrimitiveType::TYPE_BOOLEAN>() <=> rhs.get<PrimitiveType::TYPE_BOOLEAN>();
810
95
    case PrimitiveType::TYPE_TINYINT:
811
95
        return get<TYPE_TINYINT>() <=> rhs.get<TYPE_TINYINT>();
812
96
    case PrimitiveType::TYPE_SMALLINT:
813
96
        return get<TYPE_SMALLINT>() <=> rhs.get<TYPE_SMALLINT>();
814
1.01k
    case PrimitiveType::TYPE_INT:
815
1.01k
        return get<TYPE_INT>() <=> rhs.get<TYPE_INT>();
816
106
    case PrimitiveType::TYPE_LARGEINT:
817
106
        return get<TYPE_LARGEINT>() <=> rhs.get<TYPE_LARGEINT>();
818
231
    case PrimitiveType::TYPE_IPV6:
819
231
        return get<TYPE_IPV6>() <=> rhs.get<TYPE_IPV6>();
820
261
    case PrimitiveType::TYPE_IPV4:
821
261
        return get<TYPE_IPV4>() <=> rhs.get<TYPE_IPV4>();
822
52
    case PrimitiveType::TYPE_FLOAT:
823
52
        switch (Compare::compare(get<TYPE_FLOAT>(), rhs.get<TYPE_FLOAT>())) {
824
2
        case -1:
825
2
            return std::strong_ordering::less;
826
24
        case 0:
827
24
            return std::strong_ordering::equal;
828
26
        case 1:
829
26
            return std::strong_ordering::greater;
830
0
        default:
831
0
            LOG(FATAL) << "unexpected float compare result";
832
52
        }
833
0
    case PrimitiveType::TYPE_TIMEV2:
834
0
        return get<TYPE_TIMEV2>() < rhs.get<TYPE_TIMEV2>()    ? std::strong_ordering::less
835
0
               : get<TYPE_TIMEV2>() == rhs.get<TYPE_TIMEV2>() ? std::strong_ordering::equal
836
0
                                                              : std::strong_ordering::greater;
837
69
    case PrimitiveType::TYPE_DOUBLE:
838
69
        switch (Compare::compare(get<TYPE_DOUBLE>(), rhs.get<TYPE_DOUBLE>())) {
839
10
        case -1:
840
10
            return std::strong_ordering::less;
841
21
        case 0:
842
21
            return std::strong_ordering::equal;
843
38
        case 1:
844
38
            return std::strong_ordering::greater;
845
0
        default:
846
0
            LOG(FATAL) << "unexpected double compare result";
847
69
        }
848
23.5k
    case PrimitiveType::TYPE_STRING:
849
23.5k
        return get<TYPE_STRING>() <=> rhs.get<TYPE_STRING>();
850
0
    case PrimitiveType::TYPE_CHAR:
851
0
        return get<TYPE_CHAR>() <=> rhs.get<TYPE_CHAR>();
852
0
    case PrimitiveType::TYPE_VARCHAR:
853
0
        return get<TYPE_VARCHAR>() <=> rhs.get<TYPE_VARCHAR>();
854
3
    case PrimitiveType::TYPE_VARBINARY:
855
3
        return get<TYPE_VARBINARY>() <=> rhs.get<TYPE_VARBINARY>();
856
325
    case PrimitiveType::TYPE_DECIMAL32:
857
325
        return get<TYPE_DECIMAL32>() <=> rhs.get<TYPE_DECIMAL32>();
858
1.84k
    case PrimitiveType::TYPE_DECIMAL64:
859
1.84k
        return get<TYPE_DECIMAL64>() <=> rhs.get<TYPE_DECIMAL64>();
860
2.70k
    case PrimitiveType::TYPE_DECIMALV2:
861
2.70k
        return get<TYPE_DECIMALV2>() <=> rhs.get<TYPE_DECIMALV2>();
862
1.85k
    case PrimitiveType::TYPE_DECIMAL128I:
863
1.85k
        return get<TYPE_DECIMAL128I>() <=> rhs.get<TYPE_DECIMAL128I>();
864
934
    case PrimitiveType::TYPE_DECIMAL256:
865
934
        return get<TYPE_DECIMAL256>() <=> rhs.get<TYPE_DECIMAL256>();
866
0
    default:
867
0
        throw Exception(Status::FatalError("Unsupported type: {}", get_type_name()));
868
42.4k
    }
869
42.4k
}
870
871
#define MATCH_PRIMITIVE_TYPE(primitive_type)                                   \
872
0
    if (type == primitive_type) {                                              \
873
0
        const auto& v = get<primitive_type>();                                 \
874
0
        return std::string_view(reinterpret_cast<const char*>(&v), sizeof(v)); \
875
0
    }
876
877
117
std::string_view Field::as_string_view() const {
878
117
    if (type == PrimitiveType::TYPE_STRING || type == PrimitiveType::TYPE_VARCHAR ||
879
117
        type == PrimitiveType::TYPE_CHAR) {
880
112
        const auto& s = get<TYPE_STRING>();
881
112
        return {s.data(), s.size()};
882
112
    }
883
5
    if (type == PrimitiveType::TYPE_VARBINARY) {
884
5
        const auto& svf = get<TYPE_VARBINARY>();
885
5
        return {svf.data(), svf.size()};
886
5
    }
887
    // MATCH_PRIMITIVE_TYPE(INVALID_TYPE);
888
    // MATCH_PRIMITIVE_TYPE(TYPE_NULL);
889
0
    MATCH_PRIMITIVE_TYPE(TYPE_BOOLEAN);
890
0
    MATCH_PRIMITIVE_TYPE(TYPE_TINYINT);
891
0
    MATCH_PRIMITIVE_TYPE(TYPE_SMALLINT);
892
0
    MATCH_PRIMITIVE_TYPE(TYPE_INT);
893
0
    MATCH_PRIMITIVE_TYPE(TYPE_BIGINT);
894
0
    MATCH_PRIMITIVE_TYPE(TYPE_LARGEINT);
895
0
    MATCH_PRIMITIVE_TYPE(TYPE_FLOAT)
896
0
    MATCH_PRIMITIVE_TYPE(TYPE_DOUBLE);
897
    // MATCH_PRIMITIVE_TYPE(TYPE_VARCHAR);
898
0
    MATCH_PRIMITIVE_TYPE(TYPE_DATE);
899
0
    MATCH_PRIMITIVE_TYPE(TYPE_DATETIME);
900
0
    MATCH_PRIMITIVE_TYPE(TYPE_TIMESTAMPTZ);
901
    // MATCH_PRIMITIVE_TYPE(TYPE_BINARY);
902
    // MATCH_PRIMITIVE_TYPE(TYPE_DECIMAL);
903
    // MATCH_PRIMITIVE_TYPE(TYPE_CHAR);
904
    // MATCH_PRIMITIVE_TYPE(TYPE_STRUCT);
905
    // MATCH_PRIMITIVE_TYPE(TYPE_ARRAY);
906
    // MATCH_PRIMITIVE_TYPE(TYPE_MAP);
907
    // MATCH_PRIMITIVE_TYPE(TYPE_HLL);
908
0
    MATCH_PRIMITIVE_TYPE(TYPE_DECIMALV2);
909
    // MATCH_PRIMITIVE_TYPE(TYPE_BITMAP);
910
    // MATCH_PRIMITIVE_TYPE(TYPE_STRING);
911
    // MATCH_PRIMITIVE_TYPE(TYPE_QUANTILE_STATE);
912
0
    MATCH_PRIMITIVE_TYPE(TYPE_DATEV2);
913
0
    MATCH_PRIMITIVE_TYPE(TYPE_DATETIMEV2);
914
0
    MATCH_PRIMITIVE_TYPE(TYPE_TIMESTAMP_NS);
915
0
    MATCH_PRIMITIVE_TYPE(TYPE_TIMEV2);
916
0
    MATCH_PRIMITIVE_TYPE(TYPE_DECIMAL32);
917
0
    MATCH_PRIMITIVE_TYPE(TYPE_DECIMAL64);
918
0
    MATCH_PRIMITIVE_TYPE(TYPE_DECIMAL128I);
919
    // MATCH_PRIMITIVE_TYPE(TYPE_JSONB);
920
    // MATCH_PRIMITIVE_TYPE(TYPE_VARIANT);
921
    // MATCH_PRIMITIVE_TYPE(TYPE_LAMBDA_FUNCTION);
922
    // MATCH_PRIMITIVE_TYPE(TYPE_AGG_STATE);
923
0
    MATCH_PRIMITIVE_TYPE(TYPE_DECIMAL256);
924
0
    MATCH_PRIMITIVE_TYPE(TYPE_IPV4);
925
0
    MATCH_PRIMITIVE_TYPE(TYPE_IPV6);
926
0
    MATCH_PRIMITIVE_TYPE(TYPE_UINT32);
927
0
    MATCH_PRIMITIVE_TYPE(TYPE_UINT64);
928
    // MATCH_PRIMITIVE_TYPE(TYPE_FIXED_LENGTH_OBJECT);
929
0
    throw Exception(
930
0
            Status::FatalError("type not supported for as_string_view, type={}", get_type_name()));
931
0
}
932
933
#undef MATCH_PRIMITIVE_TYPE
934
935
// Important!!! This method is not accurate, for example, decimal to string, it uses scale == 0, because
936
// it do not know the actual scale of the decimal value. It is only used for debug printing, so it is fine.
937
10
std::string Field::to_debug_string(int scale) const {
938
10
    if (is_null()) {
939
0
        return "NULL";
940
0
    }
941
10
    switch (type) {
942
0
    case PrimitiveType::TYPE_BOOLEAN:
943
0
        return get<TYPE_BOOLEAN>() ? "true" : "false";
944
0
    case PrimitiveType::TYPE_TINYINT:
945
0
        return CastToString::from_number(get<TYPE_TINYINT>());
946
0
    case PrimitiveType::TYPE_SMALLINT:
947
0
        return CastToString::from_number(get<TYPE_SMALLINT>());
948
0
    case PrimitiveType::TYPE_INT:
949
0
        return CastToString::from_number(get<TYPE_INT>());
950
0
    case PrimitiveType::TYPE_BIGINT:
951
0
        return CastToString::from_number(get<TYPE_BIGINT>());
952
0
    case PrimitiveType::TYPE_LARGEINT:
953
0
        return CastToString::from_number(get<TYPE_LARGEINT>());
954
0
    case PrimitiveType::TYPE_FLOAT:
955
0
        return CastToString::from_number(get<TYPE_FLOAT>());
956
0
    case PrimitiveType::TYPE_DOUBLE:
957
0
        return CastToString::from_number(get<TYPE_DOUBLE>());
958
0
    case PrimitiveType::TYPE_STRING:
959
0
    case PrimitiveType::TYPE_CHAR:
960
0
    case PrimitiveType::TYPE_VARCHAR:
961
0
        return get<TYPE_STRING>();
962
0
    case PrimitiveType::TYPE_VARBINARY:
963
0
        return get<TYPE_VARBINARY>();
964
0
    case PrimitiveType::TYPE_DATE:
965
0
        return CastToString::from_date_or_datetime(get<TYPE_DATE>());
966
0
    case PrimitiveType::TYPE_DATETIME:
967
0
        return CastToString::from_date_or_datetime(get<TYPE_DATETIME>());
968
1
    case PrimitiveType::TYPE_DATEV2:
969
1
        return CastToString::from_datev2(get<TYPE_DATEV2>());
970
3
    case PrimitiveType::TYPE_DATETIMEV2:
971
3
        return CastToString::from_datetimev2(get<TYPE_DATETIMEV2>(), scale);
972
2
    case PrimitiveType::TYPE_TIMESTAMP_NS:
973
2
        return get<TYPE_TIMESTAMP_NS>().to_string();
974
0
    case PrimitiveType::TYPE_TIMESTAMPTZ:
975
0
        return CastToString::from_timestamptz(get<TYPE_TIMESTAMPTZ>(), scale);
976
0
    case PrimitiveType::TYPE_DECIMALV2:
977
0
        return get<TYPE_DECIMALV2>().to_string();
978
1
    case PrimitiveType::TYPE_DECIMAL32:
979
1
        return CastToString::from_decimal(get<TYPE_DECIMAL32>(), scale);
980
1
    case PrimitiveType::TYPE_DECIMAL64:
981
1
        return CastToString::from_decimal(get<TYPE_DECIMAL64>(), scale);
982
1
    case PrimitiveType::TYPE_DECIMAL128I:
983
1
        return CastToString::from_decimal(get<TYPE_DECIMAL128I>(), scale);
984
1
    case PrimitiveType::TYPE_DECIMAL256:
985
1
        return CastToString::from_decimal(get<TYPE_DECIMAL256>(), scale);
986
0
    case PrimitiveType::TYPE_IPV4:
987
0
        return CastToString::from_ip(get<TYPE_IPV4>());
988
0
    case PrimitiveType::TYPE_IPV6:
989
0
        return CastToString::from_ip(get<TYPE_IPV6>());
990
0
    default:
991
0
        throw Exception(Status::FatalError("type not supported for to_debug_string, type={}",
992
0
                                           get_type_name()));
993
0
        __builtin_unreachable();
994
10
    }
995
10
}
996
997
#define DECLARE_FUNCTION(FUNC_NAME)                                                               \
998
    template void Field::FUNC_NAME<TYPE_NULL>(typename PrimitiveTypeTraits<TYPE_NULL>::CppType && \
999
                                              rhs);                                               \
1000
    template void Field::FUNC_NAME<TYPE_TINYINT>(                                                 \
1001
            typename PrimitiveTypeTraits<TYPE_TINYINT>::CppType && rhs);                          \
1002
    template void Field::FUNC_NAME<TYPE_SMALLINT>(                                                \
1003
            typename PrimitiveTypeTraits<TYPE_SMALLINT>::CppType && rhs);                         \
1004
    template void Field::FUNC_NAME<TYPE_INT>(typename PrimitiveTypeTraits<TYPE_INT>::CppType &&   \
1005
                                             rhs);                                                \
1006
    template void Field::FUNC_NAME<TYPE_BIGINT>(                                                  \
1007
            typename PrimitiveTypeTraits<TYPE_BIGINT>::CppType && rhs);                           \
1008
    template void Field::FUNC_NAME<TYPE_LARGEINT>(                                                \
1009
            typename PrimitiveTypeTraits<TYPE_LARGEINT>::CppType && rhs);                         \
1010
    template void Field::FUNC_NAME<TYPE_DATE>(typename PrimitiveTypeTraits<TYPE_DATE>::CppType && \
1011
                                              rhs);                                               \
1012
    template void Field::FUNC_NAME<TYPE_DATETIME>(                                                \
1013
            typename PrimitiveTypeTraits<TYPE_DATETIME>::CppType && rhs);                         \
1014
    template void Field::FUNC_NAME<TYPE_DATEV2>(                                                  \
1015
            typename PrimitiveTypeTraits<TYPE_DATEV2>::CppType && rhs);                           \
1016
    template void Field::FUNC_NAME<TYPE_DATETIMEV2>(                                              \
1017
            typename PrimitiveTypeTraits<TYPE_DATETIMEV2>::CppType && rhs);                       \
1018
    template void Field::FUNC_NAME<TYPE_TIMESTAMP_NS>(                                            \
1019
            typename PrimitiveTypeTraits<TYPE_TIMESTAMP_NS>::CppType && rhs);                     \
1020
    template void Field::FUNC_NAME<TYPE_DECIMAL32>(                                               \
1021
            typename PrimitiveTypeTraits<TYPE_DECIMAL32>::CppType && rhs);                        \
1022
    template void Field::FUNC_NAME<TYPE_DECIMAL64>(                                               \
1023
            typename PrimitiveTypeTraits<TYPE_DECIMAL64>::CppType && rhs);                        \
1024
    template void Field::FUNC_NAME<TYPE_DECIMALV2>(                                               \
1025
            typename PrimitiveTypeTraits<TYPE_DECIMALV2>::CppType && rhs);                        \
1026
    template void Field::FUNC_NAME<TYPE_DECIMAL128I>(                                             \
1027
            typename PrimitiveTypeTraits<TYPE_DECIMAL128I>::CppType && rhs);                      \
1028
    template void Field::FUNC_NAME<TYPE_DECIMAL256>(                                              \
1029
            typename PrimitiveTypeTraits<TYPE_DECIMAL256>::CppType && rhs);                       \
1030
    template void Field::FUNC_NAME<TYPE_CHAR>(typename PrimitiveTypeTraits<TYPE_CHAR>::CppType && \
1031
                                              rhs);                                               \
1032
    template void Field::FUNC_NAME<TYPE_VARCHAR>(                                                 \
1033
            typename PrimitiveTypeTraits<TYPE_VARCHAR>::CppType && rhs);                          \
1034
    template void Field::FUNC_NAME<TYPE_STRING>(                                                  \
1035
            typename PrimitiveTypeTraits<TYPE_STRING>::CppType && rhs);                           \
1036
    template void Field::FUNC_NAME<TYPE_VARBINARY>(                                               \
1037
            typename PrimitiveTypeTraits<TYPE_VARBINARY>::CppType && rhs);                        \
1038
    template void Field::FUNC_NAME<TYPE_HLL>(typename PrimitiveTypeTraits<TYPE_HLL>::CppType &&   \
1039
                                             rhs);                                                \
1040
    template void Field::FUNC_NAME<TYPE_VARIANT>(                                                 \
1041
            typename PrimitiveTypeTraits<TYPE_VARIANT>::CppType && rhs);                          \
1042
    template void Field::FUNC_NAME<TYPE_QUANTILE_STATE>(                                          \
1043
            typename PrimitiveTypeTraits<TYPE_QUANTILE_STATE>::CppType && rhs);                   \
1044
    template void Field::FUNC_NAME<TYPE_ARRAY>(                                                   \
1045
            typename PrimitiveTypeTraits<TYPE_ARRAY>::CppType && rhs);                            \
1046
    template void Field::FUNC_NAME<TYPE_NULL>(                                                    \
1047
            const typename PrimitiveTypeTraits<TYPE_NULL>::CppType& rhs);                         \
1048
    template void Field::FUNC_NAME<TYPE_TINYINT>(                                                 \
1049
            const typename PrimitiveTypeTraits<TYPE_TINYINT>::CppType& rhs);                      \
1050
    template void Field::FUNC_NAME<TYPE_SMALLINT>(                                                \
1051
            const typename PrimitiveTypeTraits<TYPE_SMALLINT>::CppType& rhs);                     \
1052
    template void Field::FUNC_NAME<TYPE_INT>(                                                     \
1053
            const typename PrimitiveTypeTraits<TYPE_INT>::CppType& rhs);                          \
1054
    template void Field::FUNC_NAME<TYPE_BIGINT>(                                                  \
1055
            const typename PrimitiveTypeTraits<TYPE_BIGINT>::CppType& rhs);                       \
1056
    template void Field::FUNC_NAME<TYPE_LARGEINT>(                                                \
1057
            const typename PrimitiveTypeTraits<TYPE_LARGEINT>::CppType& rhs);                     \
1058
    template void Field::FUNC_NAME<TYPE_DATE>(                                                    \
1059
            const typename PrimitiveTypeTraits<TYPE_DATE>::CppType& rhs);                         \
1060
    template void Field::FUNC_NAME<TYPE_DATETIME>(                                                \
1061
            const typename PrimitiveTypeTraits<TYPE_DATETIME>::CppType& rhs);                     \
1062
    template void Field::FUNC_NAME<TYPE_DATEV2>(                                                  \
1063
            const typename PrimitiveTypeTraits<TYPE_DATEV2>::CppType& rhs);                       \
1064
    template void Field::FUNC_NAME<TYPE_DATETIMEV2>(                                              \
1065
            const typename PrimitiveTypeTraits<TYPE_DATETIMEV2>::CppType& rhs);                   \
1066
    template void Field::FUNC_NAME<TYPE_TIMESTAMP_NS>(                                            \
1067
            const typename PrimitiveTypeTraits<TYPE_TIMESTAMP_NS>::CppType& rhs);                 \
1068
    template void Field::FUNC_NAME<TYPE_TIMESTAMPTZ>(                                             \
1069
            const typename PrimitiveTypeTraits<TYPE_TIMESTAMPTZ>::CppType& rhs);                  \
1070
    template void Field::FUNC_NAME<TYPE_TIMESTAMPTZ>(                                             \
1071
            typename PrimitiveTypeTraits<TYPE_TIMESTAMPTZ>::CppType && rhs);                      \
1072
    template void Field::FUNC_NAME<TYPE_DECIMAL32>(                                               \
1073
            const typename PrimitiveTypeTraits<TYPE_DECIMAL32>::CppType& rhs);                    \
1074
    template void Field::FUNC_NAME<TYPE_DECIMAL64>(                                               \
1075
            const typename PrimitiveTypeTraits<TYPE_DECIMAL64>::CppType& rhs);                    \
1076
    template void Field::FUNC_NAME<TYPE_DECIMALV2>(                                               \
1077
            const typename PrimitiveTypeTraits<TYPE_DECIMALV2>::CppType& rhs);                    \
1078
    template void Field::FUNC_NAME<TYPE_DECIMAL128I>(                                             \
1079
            const typename PrimitiveTypeTraits<TYPE_DECIMAL128I>::CppType& rhs);                  \
1080
    template void Field::FUNC_NAME<TYPE_DECIMAL256>(                                              \
1081
            const typename PrimitiveTypeTraits<TYPE_DECIMAL256>::CppType& rhs);                   \
1082
    template void Field::FUNC_NAME<TYPE_CHAR>(                                                    \
1083
            const typename PrimitiveTypeTraits<TYPE_CHAR>::CppType& rhs);                         \
1084
    template void Field::FUNC_NAME<TYPE_VARCHAR>(                                                 \
1085
            const typename PrimitiveTypeTraits<TYPE_VARCHAR>::CppType& rhs);                      \
1086
    template void Field::FUNC_NAME<TYPE_STRING>(                                                  \
1087
            const typename PrimitiveTypeTraits<TYPE_STRING>::CppType& rhs);                       \
1088
    template void Field::FUNC_NAME<TYPE_VARBINARY>(                                               \
1089
            const typename PrimitiveTypeTraits<TYPE_VARBINARY>::CppType& rhs);                    \
1090
    template void Field::FUNC_NAME<TYPE_HLL>(                                                     \
1091
            const typename PrimitiveTypeTraits<TYPE_HLL>::CppType& rhs);                          \
1092
    template void Field::FUNC_NAME<TYPE_VARIANT>(                                                 \
1093
            const typename PrimitiveTypeTraits<TYPE_VARIANT>::CppType& rhs);                      \
1094
    template void Field::FUNC_NAME<TYPE_QUANTILE_STATE>(                                          \
1095
            const typename PrimitiveTypeTraits<TYPE_QUANTILE_STATE>::CppType& rhs);               \
1096
    template void Field::FUNC_NAME<TYPE_ARRAY>(                                                   \
1097
            const typename PrimitiveTypeTraits<TYPE_ARRAY>::CppType& rhs);                        \
1098
    template void Field::FUNC_NAME<TYPE_IPV4>(typename PrimitiveTypeTraits<TYPE_IPV4>::CppType && \
1099
                                              rhs);                                               \
1100
    template void Field::FUNC_NAME<TYPE_IPV4>(                                                    \
1101
            const typename PrimitiveTypeTraits<TYPE_IPV4>::CppType& rhs);                         \
1102
    template void Field::FUNC_NAME<TYPE_IPV6>(typename PrimitiveTypeTraits<TYPE_IPV6>::CppType && \
1103
                                              rhs);                                               \
1104
    template void Field::FUNC_NAME<TYPE_IPV6>(                                                    \
1105
            const typename PrimitiveTypeTraits<TYPE_IPV6>::CppType& rhs);                         \
1106
    template void Field::FUNC_NAME<TYPE_BOOLEAN>(                                                 \
1107
            typename PrimitiveTypeTraits<TYPE_BOOLEAN>::CppType && rhs);                          \
1108
    template void Field::FUNC_NAME<TYPE_BOOLEAN>(                                                 \
1109
            const typename PrimitiveTypeTraits<TYPE_BOOLEAN>::CppType& rhs);                      \
1110
    template void Field::FUNC_NAME<TYPE_FLOAT>(                                                   \
1111
            typename PrimitiveTypeTraits<TYPE_FLOAT>::CppType && rhs);                            \
1112
    template void Field::FUNC_NAME<TYPE_FLOAT>(                                                   \
1113
            const typename PrimitiveTypeTraits<TYPE_FLOAT>::CppType& rhs);                        \
1114
    template void Field::FUNC_NAME<TYPE_DOUBLE>(                                                  \
1115
            typename PrimitiveTypeTraits<TYPE_DOUBLE>::CppType && rhs);                           \
1116
    template void Field::FUNC_NAME<TYPE_DOUBLE>(                                                  \
1117
            const typename PrimitiveTypeTraits<TYPE_DOUBLE>::CppType& rhs);                       \
1118
    template void Field::FUNC_NAME<TYPE_JSONB>(                                                   \
1119
            typename PrimitiveTypeTraits<TYPE_JSONB>::CppType && rhs);                            \
1120
    template void Field::FUNC_NAME<TYPE_JSONB>(                                                   \
1121
            const typename PrimitiveTypeTraits<TYPE_JSONB>::CppType& rhs);                        \
1122
    template void Field::FUNC_NAME<TYPE_STRUCT>(                                                  \
1123
            typename PrimitiveTypeTraits<TYPE_STRUCT>::CppType && rhs);                           \
1124
    template void Field::FUNC_NAME<TYPE_STRUCT>(                                                  \
1125
            const typename PrimitiveTypeTraits<TYPE_STRUCT>::CppType& rhs);                       \
1126
    template void Field::FUNC_NAME<TYPE_MAP>(typename PrimitiveTypeTraits<TYPE_MAP>::CppType &&   \
1127
                                             rhs);                                                \
1128
    template void Field::FUNC_NAME<TYPE_MAP>(                                                     \
1129
            const typename PrimitiveTypeTraits<TYPE_MAP>::CppType& rhs);                          \
1130
    template void Field::FUNC_NAME<TYPE_BITMAP>(                                                  \
1131
            typename PrimitiveTypeTraits<TYPE_BITMAP>::CppType && rhs);                           \
1132
    template void Field::FUNC_NAME<TYPE_BITMAP>(                                                  \
1133
            const typename PrimitiveTypeTraits<TYPE_BITMAP>::CppType& rhs);                       \
1134
    template void Field::FUNC_NAME<TYPE_TIMEV2>(                                                  \
1135
            const typename PrimitiveTypeTraits<TYPE_TIMEV2>::CppType& rhs);                       \
1136
    template void Field::FUNC_NAME<TYPE_TIMEV2>(                                                  \
1137
            typename PrimitiveTypeTraits<TYPE_TIMEV2>::CppType && rhs);                           \
1138
    template void Field::FUNC_NAME<TYPE_UINT32>(                                                  \
1139
            const typename PrimitiveTypeTraits<TYPE_UINT32>::CppType& rhs);                       \
1140
    template void Field::FUNC_NAME<TYPE_UINT32>(                                                  \
1141
            typename PrimitiveTypeTraits<TYPE_UINT32>::CppType && rhs);                           \
1142
    template void Field::FUNC_NAME<TYPE_UINT64>(                                                  \
1143
            const typename PrimitiveTypeTraits<TYPE_UINT64>::CppType& rhs);                       \
1144
    template void Field::FUNC_NAME<TYPE_UINT64>(                                                  \
1145
            typename PrimitiveTypeTraits<TYPE_UINT64>::CppType && rhs);
1146
DECLARE_FUNCTION(create_concrete)
1147
DECLARE_FUNCTION(assign_concrete)
1148
#undef DECLARE_FUNCTION
1149
1150
#define DECLARE_FUNCTION(TYPE_NAME)                                                          \
1151
    template typename PrimitiveTypeTraits<TYPE_NAME>::CppType& Field::get<TYPE_NAME>();      \
1152
    template const typename PrimitiveTypeTraits<TYPE_NAME>::CppType& Field::get<TYPE_NAME>() \
1153
            const;                                                                           \
1154
    template void Field::destroy<TYPE_NAME>();
1155
DECLARE_FUNCTION(TYPE_NULL)
1156
DECLARE_FUNCTION(TYPE_TINYINT)
1157
DECLARE_FUNCTION(TYPE_SMALLINT)
1158
DECLARE_FUNCTION(TYPE_INT)
1159
DECLARE_FUNCTION(TYPE_BIGINT)
1160
DECLARE_FUNCTION(TYPE_LARGEINT)
1161
DECLARE_FUNCTION(TYPE_DATE)
1162
DECLARE_FUNCTION(TYPE_DATETIME)
1163
DECLARE_FUNCTION(TYPE_DATEV2)
1164
DECLARE_FUNCTION(TYPE_DATETIMEV2)
1165
DECLARE_FUNCTION(TYPE_TIMESTAMP_NS)
1166
DECLARE_FUNCTION(TYPE_TIMESTAMPTZ)
1167
DECLARE_FUNCTION(TYPE_DECIMAL32)
1168
DECLARE_FUNCTION(TYPE_DECIMAL64)
1169
DECLARE_FUNCTION(TYPE_DECIMALV2)
1170
DECLARE_FUNCTION(TYPE_DECIMAL128I)
1171
DECLARE_FUNCTION(TYPE_DECIMAL256)
1172
DECLARE_FUNCTION(TYPE_CHAR)
1173
DECLARE_FUNCTION(TYPE_VARCHAR)
1174
DECLARE_FUNCTION(TYPE_STRING)
1175
DECLARE_FUNCTION(TYPE_VARBINARY)
1176
DECLARE_FUNCTION(TYPE_HLL)
1177
DECLARE_FUNCTION(TYPE_VARIANT)
1178
DECLARE_FUNCTION(TYPE_QUANTILE_STATE)
1179
DECLARE_FUNCTION(TYPE_ARRAY)
1180
DECLARE_FUNCTION(TYPE_IPV4)
1181
DECLARE_FUNCTION(TYPE_IPV6)
1182
DECLARE_FUNCTION(TYPE_BOOLEAN)
1183
DECLARE_FUNCTION(TYPE_FLOAT)
1184
DECLARE_FUNCTION(TYPE_DOUBLE)
1185
DECLARE_FUNCTION(TYPE_JSONB)
1186
DECLARE_FUNCTION(TYPE_STRUCT)
1187
DECLARE_FUNCTION(TYPE_MAP)
1188
DECLARE_FUNCTION(TYPE_BITMAP)
1189
DECLARE_FUNCTION(TYPE_TIMEV2)
1190
DECLARE_FUNCTION(TYPE_UINT32)
1191
DECLARE_FUNCTION(TYPE_UINT64)
1192
#undef DECLARE_FUNCTION
1193
} // namespace doris