Coverage Report

Created: 2026-09-24 14:28

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