Coverage Report

Created: 2026-11-05 15:13

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
427
    explicit OwnedBinaryField(const StringView& value) {
106
        // Inline views already own their bytes; preserve their allocation-free representation.
107
427
        if (value.isInline()) {
108
355
            view = value;
109
355
            return;
110
355
        }
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
72
        bytes = static_cast<char*>(Allocator<false> {}.alloc(value.size()));
114
72
        byte_size = value.size();
115
72
        memcpy(bytes, value.data(), value.size());
116
72
        view = StringView(bytes, value.size());
117
72
    }
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
423
    ~OwnedBinaryField() { release_bytes(); }
128
129
private:
130
437
    void release_bytes() const {
131
437
        if (bytes != nullptr) {
132
            // Field::get() exposes a mutable view; release the original allocation size.
133
68
            Allocator<false> {}.free(bytes, byte_size);
134
68
        }
135
437
    }
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
141M
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
141M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
149
141M
    if constexpr (Type == TYPE_VARBINARY) {
150
327
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
151
327
        new (&storage) OwnedBinaryField(x);
152
141M
    } else {
153
141M
        new (&storage) StorageType(std::move(x));
154
141M
    }
155
141M
    type = Type;
156
141M
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
141M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE1EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
190k
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
190k
    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
190k
    } else {
153
190k
        new (&storage) StorageType(std::move(x));
154
190k
    }
155
190k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
190k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE3EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
7.53M
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.53M
    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.53M
    } else {
153
7.53M
        new (&storage) StorageType(std::move(x));
154
7.53M
    }
155
7.53M
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
7.53M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE4EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
222k
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
222k
    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
222k
    } else {
153
222k
        new (&storage) StorageType(std::move(x));
154
222k
    }
155
222k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
222k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE5EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
27.7M
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
27.7M
    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
27.7M
    } else {
153
27.7M
        new (&storage) StorageType(std::move(x));
154
27.7M
    }
155
27.7M
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
27.7M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE6EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
28.1M
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.1M
    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.1M
    } else {
153
28.1M
        new (&storage) StorageType(std::move(x));
154
28.1M
    }
155
28.1M
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
28.1M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE7EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
269k
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
269k
    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
269k
    } else {
153
269k
        new (&storage) StorageType(std::move(x));
154
269k
    }
155
269k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
269k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE11EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
24.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
24.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
24.1k
    } else {
153
24.1k
        new (&storage) StorageType(std::move(x));
154
24.1k
    }
155
24.1k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
24.1k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE12EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
28.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
28.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
28.7k
    } else {
153
28.7k
        new (&storage) StorageType(std::move(x));
154
28.7k
    }
155
28.7k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
28.7k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE25EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
647k
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
647k
    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
647k
    } else {
153
647k
        new (&storage) StorageType(std::move(x));
154
647k
    }
155
647k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
647k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE26EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
3.46M
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
3.46M
    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
3.46M
    } else {
153
3.46M
        new (&storage) StorageType(std::move(x));
154
3.46M
    }
155
3.46M
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
3.46M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE43EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
1.27k
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.27k
    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.27k
    } else {
153
1.27k
        new (&storage) StorageType(std::move(x));
154
1.27k
    }
155
1.27k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
1.27k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE28EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
101k
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
101k
    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
101k
    } else {
153
101k
        new (&storage) StorageType(std::move(x));
154
101k
    }
155
101k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
101k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE29EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
13.7M
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.7M
    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.7M
    } else {
153
13.7M
        new (&storage) StorageType(std::move(x));
154
13.7M
    }
155
13.7M
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
13.7M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE20EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
17.4k
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.4k
    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.4k
    } else {
153
17.4k
        new (&storage) StorageType(std::move(x));
154
17.4k
    }
155
17.4k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
17.4k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE30EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
177k
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
177k
    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
177k
    } else {
153
177k
        new (&storage) StorageType(std::move(x));
154
177k
    }
155
177k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
177k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE35EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
45.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
45.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
45.0k
    } else {
153
45.0k
        new (&storage) StorageType(std::move(x));
154
45.0k
    }
155
45.0k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
45.0k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE15EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
128k
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
128k
    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
128k
    } else {
153
128k
        new (&storage) StorageType(std::move(x));
154
128k
    }
155
128k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
128k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE10EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
1.97M
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.97M
    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.97M
    } else {
153
1.97M
        new (&storage) StorageType(std::move(x));
154
1.97M
    }
155
1.97M
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
1.97M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE23EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
27.8M
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
27.8M
    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
27.8M
    } else {
153
27.8M
        new (&storage) StorageType(std::move(x));
154
27.8M
    }
155
27.8M
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
27.8M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE41EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
327
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
327
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
149
327
    if constexpr (Type == TYPE_VARBINARY) {
150
327
        static_assert(sizeof(OwnedBinaryField) <= sizeof(storage));
151
327
        new (&storage) OwnedBinaryField(x);
152
    } else {
153
        new (&storage) StorageType(std::move(x));
154
    }
155
327
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
327
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE19EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
35
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
    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
    } else {
153
35
        new (&storage) StorageType(std::move(x));
154
35
    }
155
35
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
35
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE32EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
13.4k
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.4k
    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.4k
    } else {
153
13.4k
        new (&storage) StorageType(std::move(x));
154
13.4k
    }
155
13.4k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
13.4k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE24EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
18
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
18
    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
18
    } else {
153
18
        new (&storage) StorageType(std::move(x));
154
18
    }
155
18
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
18
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE17EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
231k
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
231k
    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
231k
    } else {
153
231k
        new (&storage) StorageType(std::move(x));
154
231k
    }
155
231k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
231k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE42EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
2.87k
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
2.87k
    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
2.87k
    } else {
153
2.87k
        new (&storage) StorageType(std::move(x));
154
2.87k
    }
155
2.87k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
2.87k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE36EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
40.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
40.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
40.8k
    } else {
153
40.8k
        new (&storage) StorageType(std::move(x));
154
40.8k
    }
155
40.8k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
40.8k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE37EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
27.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
27.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
27.1k
    } else {
153
27.1k
        new (&storage) StorageType(std::move(x));
154
27.1k
    }
155
27.1k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
27.1k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE44EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
250
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
250
    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
250
    } else {
153
250
        new (&storage) StorageType(std::move(x));
154
250
    }
155
250
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
250
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE2EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
28.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
28.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
28.4M
    } else {
153
28.4M
        new (&storage) StorageType(std::move(x));
154
28.4M
    }
155
28.4M
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
28.4M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE8EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
140k
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
140k
    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
140k
    } else {
153
140k
        new (&storage) StorageType(std::move(x));
154
140k
    }
155
140k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
140k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE9EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
243k
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
243k
    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
243k
    } else {
153
243k
        new (&storage) StorageType(std::move(x));
154
243k
    }
155
243k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
243k
}
_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
7.72k
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.72k
    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.72k
    } else {
153
7.72k
        new (&storage) StorageType(std::move(x));
154
7.72k
    }
155
7.72k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
7.72k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE18EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
24.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
24.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
24.7k
    } else {
153
24.7k
        new (&storage) StorageType(std::move(x));
154
24.7k
    }
155
24.7k
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
24.7k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE22EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
239
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
239
    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
239
    } else {
153
239
        new (&storage) StorageType(std::move(x));
154
239
    }
155
239
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
239
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE27EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
142
271
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
271
    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
271
    } else {
153
271
        new (&storage) StorageType(std::move(x));
154
271
    }
155
271
    type = Type;
156
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
157
271
}
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
243M
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
243M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
243M
    if constexpr (Type == TYPE_VARBINARY) {
168
84
        new (&storage) OwnedBinaryField(x);
169
243M
    } else {
170
243M
        new (&storage) StorageType(x);
171
243M
    }
172
243M
    type = Type;
173
243M
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
243M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE1EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
39.0M
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
39.0M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
39.0M
    } else {
170
39.0M
        new (&storage) StorageType(x);
171
39.0M
    }
172
39.0M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
39.0M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE3EEEvRKNS_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_13PrimitiveTypeE4EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
3.98M
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.98M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
3.98M
    } else {
170
3.98M
        new (&storage) StorageType(x);
171
3.98M
    }
172
3.98M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
3.98M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE5EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
27.6M
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
27.6M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
27.6M
    } else {
170
27.6M
        new (&storage) StorageType(x);
171
27.6M
    }
172
27.6M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
27.6M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE6EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
5.62M
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.62M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
5.62M
    } else {
170
5.62M
        new (&storage) StorageType(x);
171
5.62M
    }
172
5.62M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
5.62M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE7EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
3.19M
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.19M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
3.19M
    } else {
170
3.19M
        new (&storage) StorageType(x);
171
3.19M
    }
172
3.19M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
3.19M
}
_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
4.62M
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.62M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
4.62M
    } else {
170
4.62M
        new (&storage) StorageType(x);
171
4.62M
    }
172
4.62M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
4.62M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE26EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
4.15M
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.15M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
4.15M
    } else {
170
4.15M
        new (&storage) StorageType(x);
171
4.15M
    }
172
4.15M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
4.15M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE43EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
1.25k
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
1.25k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
1.25k
    } else {
170
1.25k
        new (&storage) StorageType(x);
171
1.25k
    }
172
1.25k
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
1.25k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE42EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
928
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
928
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
928
    } else {
170
928
        new (&storage) StorageType(x);
171
928
    }
172
928
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
928
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE28EEEvRKNS_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_13PrimitiveTypeE29EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
3.62M
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.62M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
3.62M
    } else {
170
3.62M
        new (&storage) StorageType(x);
171
3.62M
    }
172
3.62M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
3.62M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE20EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
9.09k
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
9.09k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
9.09k
    } else {
170
9.09k
        new (&storage) StorageType(x);
171
9.09k
    }
172
9.09k
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
9.09k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE30EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
3.52M
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.52M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
3.52M
    } else {
170
3.52M
        new (&storage) StorageType(x);
171
3.52M
    }
172
3.52M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
3.52M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE35EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
3.70M
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.70M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
3.70M
    } else {
170
3.70M
        new (&storage) StorageType(x);
171
3.70M
    }
172
3.70M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
3.70M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE15EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
3.40k
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.40k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
3.40k
    } else {
170
3.40k
        new (&storage) StorageType(x);
171
3.40k
    }
172
3.40k
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
3.40k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE10EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
6.71M
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
6.71M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
6.71M
    } else {
170
6.71M
        new (&storage) StorageType(x);
171
6.71M
    }
172
6.71M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
6.71M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE23EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
1.35M
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
1.35M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
1.35M
    } else {
170
1.35M
        new (&storage) StorageType(x);
171
1.35M
    }
172
1.35M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
1.35M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE41EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
84
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
84
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
84
    if constexpr (Type == TYPE_VARBINARY) {
168
84
        new (&storage) OwnedBinaryField(x);
169
    } else {
170
        new (&storage) StorageType(x);
171
    }
172
84
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
84
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE19EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
417
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
417
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
417
    } else {
170
417
        new (&storage) StorageType(x);
171
417
    }
172
417
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
417
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE32EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
6
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
6
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
6
    } else {
170
6
        new (&storage) StorageType(x);
171
6
    }
172
6
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
6
}
_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.4M
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.4M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
92.4M
    } else {
170
92.4M
        new (&storage) StorageType(x);
171
92.4M
    }
172
92.4M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
92.4M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE36EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
61.1k
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
61.1k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
61.1k
    } else {
170
61.1k
        new (&storage) StorageType(x);
171
61.1k
    }
172
61.1k
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
61.1k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE37EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
41.2k
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
41.2k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
41.2k
    } else {
170
41.2k
        new (&storage) StorageType(x);
171
41.2k
    }
172
41.2k
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
41.2k
}
_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.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_13PrimitiveTypeE8EEEvRKNS_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_13PrimitiveTypeE9EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
4.57M
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.57M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
4.57M
    } else {
170
4.57M
        new (&storage) StorageType(x);
171
4.57M
    }
172
4.57M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
4.57M
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE31EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
23
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
23
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
23
    } else {
170
23
        new (&storage) StorageType(x);
171
23
    }
172
23
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
23
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE16EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
3.05M
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.05M
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
3.05M
    } else {
170
3.05M
        new (&storage) StorageType(x);
171
3.05M
    }
172
3.05M
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
3.05M
}
_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.49k
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.49k
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
2.49k
    } else {
170
2.49k
        new (&storage) StorageType(x);
171
2.49k
    }
172
2.49k
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
2.49k
}
_ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE27EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
160
358
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
358
    using StorageType = typename PrimitiveTypeTraits<Type>::CppType;
167
    if constexpr (Type == TYPE_VARBINARY) {
168
        new (&storage) OwnedBinaryField(x);
169
358
    } else {
170
358
        new (&storage) StorageType(x);
171
358
    }
172
358
    type = Type;
173
    DCHECK_NE(type, PrimitiveType::INVALID_TYPE);
174
358
}
Unexecuted instantiation: _ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE38EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Unexecuted instantiation: _ZN5doris5Field15create_concreteILNS_13PrimitiveTypeE39EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
175
176
54.5M
void Field::create(Field&& field) {
177
54.5M
    switch (field.type) {
178
110k
    case PrimitiveType::TYPE_NULL:
179
110k
        create_concrete<TYPE_NULL>(std::move(field.template get<TYPE_NULL>()));
180
110k
        return;
181
1.74M
    case PrimitiveType::TYPE_DATETIMEV2:
182
1.74M
        create_concrete<TYPE_DATETIMEV2>(std::move(field.template get<TYPE_DATETIMEV2>()));
183
1.74M
        return;
184
1.03k
    case PrimitiveType::TYPE_TIMESTAMP_NS:
185
1.03k
        create_concrete<TYPE_TIMESTAMP_NS>(std::move(field.template get<TYPE_TIMESTAMP_NS>()));
186
1.03k
        return;
187
390k
    case PrimitiveType::TYPE_DATEV2:
188
390k
        create_concrete<TYPE_DATEV2>(std::move(field.template get<TYPE_DATEV2>()));
189
390k
        return;
190
1.55k
    case PrimitiveType::TYPE_TIMESTAMPTZ:
191
1.55k
        create_concrete<TYPE_TIMESTAMPTZ>(std::move(field.template get<TYPE_TIMESTAMPTZ>()));
192
1.55k
        return;
193
20.7k
    case PrimitiveType::TYPE_DATETIME:
194
20.7k
        create_concrete<TYPE_DATETIME>(std::move(field.template get<TYPE_DATETIME>()));
195
20.7k
        return;
196
16.4k
    case PrimitiveType::TYPE_DATE:
197
16.4k
        create_concrete<TYPE_DATE>(std::move(field.template get<TYPE_DATE>()));
198
16.4k
        return;
199
73.6k
    case PrimitiveType::TYPE_BOOLEAN:
200
73.6k
        create_concrete<TYPE_BOOLEAN>(std::move(field.template get<TYPE_BOOLEAN>()));
201
73.6k
        return;
202
3.82M
    case PrimitiveType::TYPE_TINYINT:
203
3.82M
        create_concrete<TYPE_TINYINT>(std::move(field.template get<TYPE_TINYINT>()));
204
3.82M
        return;
205
120k
    case PrimitiveType::TYPE_SMALLINT:
206
120k
        create_concrete<TYPE_SMALLINT>(std::move(field.template get<TYPE_SMALLINT>()));
207
120k
        return;
208
25.6M
    case PrimitiveType::TYPE_INT:
209
25.6M
        create_concrete<TYPE_INT>(std::move(field.template get<TYPE_INT>()));
210
25.6M
        return;
211
7.23M
    case PrimitiveType::TYPE_BIGINT:
212
7.23M
        create_concrete<TYPE_BIGINT>(std::move(field.template get<TYPE_BIGINT>()));
213
7.23M
        return;
214
136k
    case PrimitiveType::TYPE_LARGEINT:
215
136k
        create_concrete<TYPE_LARGEINT>(std::move(field.template get<TYPE_LARGEINT>()));
216
136k
        return;
217
36.8k
    case PrimitiveType::TYPE_IPV4:
218
36.8k
        create_concrete<TYPE_IPV4>(std::move(field.template get<TYPE_IPV4>()));
219
36.8k
        return;
220
24.9k
    case PrimitiveType::TYPE_IPV6:
221
24.9k
        create_concrete<TYPE_IPV6>(std::move(field.template get<TYPE_IPV6>()));
222
24.9k
        return;
223
162
    case PrimitiveType::TYPE_UUID:
224
162
        create_concrete<TYPE_UUID>(std::move(field.template get<TYPE_UUID>()));
225
162
        return;
226
95.4k
    case PrimitiveType::TYPE_FLOAT:
227
95.4k
        create_concrete<TYPE_FLOAT>(std::move(field.template get<TYPE_FLOAT>()));
228
95.4k
        return;
229
264
    case PrimitiveType::TYPE_TIMEV2:
230
264
        create_concrete<TYPE_TIMEV2>(std::move(field.template get<TYPE_TIMEV2>()));
231
264
        return;
232
175k
    case PrimitiveType::TYPE_DOUBLE:
233
175k
        create_concrete<TYPE_DOUBLE>(std::move(field.template get<TYPE_DOUBLE>()));
234
175k
        return;
235
13.5M
    case PrimitiveType::TYPE_STRING:
236
13.5M
        create_concrete<TYPE_STRING>(std::move(field.template get<TYPE_STRING>()));
237
13.5M
        return;
238
47.9k
    case PrimitiveType::TYPE_CHAR:
239
47.9k
        create_concrete<TYPE_CHAR>(std::move(field.template get<TYPE_CHAR>()));
240
47.9k
        return;
241
971k
    case PrimitiveType::TYPE_VARCHAR:
242
971k
        create_concrete<TYPE_VARCHAR>(std::move(field.template get<TYPE_VARCHAR>()));
243
971k
        return;
244
13
    case PrimitiveType::TYPE_JSONB:
245
13
        create_concrete<TYPE_JSONB>(std::move(field.template get<TYPE_JSONB>()));
246
13
        return;
247
105k
    case PrimitiveType::TYPE_ARRAY:
248
105k
        create_concrete<TYPE_ARRAY>(std::move(field.template get<TYPE_ARRAY>()));
249
105k
        return;
250
3.79k
    case PrimitiveType::TYPE_STRUCT:
251
3.79k
        create_concrete<TYPE_STRUCT>(std::move(field.template get<TYPE_STRUCT>()));
252
3.79k
        return;
253
6.48k
    case PrimitiveType::TYPE_MAP:
254
6.48k
        create_concrete<TYPE_MAP>(std::move(field.template get<TYPE_MAP>()));
255
6.48k
        return;
256
57.6k
    case PrimitiveType::TYPE_DECIMAL32:
257
57.6k
        create_concrete<TYPE_DECIMAL32>(std::move(field.template get<TYPE_DECIMAL32>()));
258
57.6k
        return;
259
97.1k
    case PrimitiveType::TYPE_DECIMAL64:
260
97.1k
        create_concrete<TYPE_DECIMAL64>(std::move(field.template get<TYPE_DECIMAL64>()));
261
97.1k
        return;
262
6.69k
    case PrimitiveType::TYPE_DECIMALV2:
263
6.69k
        create_concrete<TYPE_DECIMALV2>(std::move(field.template get<TYPE_DECIMALV2>()));
264
6.69k
        return;
265
90.3k
    case PrimitiveType::TYPE_DECIMAL128I:
266
90.3k
        create_concrete<TYPE_DECIMAL128I>(std::move(field.template get<TYPE_DECIMAL128I>()));
267
90.3k
        return;
268
39.5k
    case PrimitiveType::TYPE_DECIMAL256:
269
39.5k
        create_concrete<TYPE_DECIMAL256>(std::move(field.template get<TYPE_DECIMAL256>()));
270
39.5k
        return;
271
6.70k
    case PrimitiveType::TYPE_VARIANT:
272
6.70k
        create_concrete<TYPE_VARIANT>(std::move(field.template get<TYPE_VARIANT>()));
273
6.70k
        return;
274
181
    case PrimitiveType::TYPE_BITMAP:
275
181
        create_concrete<TYPE_BITMAP>(std::move(field.template get<TYPE_BITMAP>()));
276
181
        return;
277
20
    case PrimitiveType::TYPE_HLL:
278
20
        create_concrete<TYPE_HLL>(std::move(field.template get<TYPE_HLL>()));
279
20
        return;
280
6
    case PrimitiveType::TYPE_QUANTILE_STATE:
281
6
        create_concrete<TYPE_QUANTILE_STATE>(std::move(field.template get<TYPE_QUANTILE_STATE>()));
282
6
        return;
283
147
    case PrimitiveType::TYPE_VARBINARY:
284
147
        create_concrete<TYPE_VARBINARY>(std::move(field.template get<TYPE_VARBINARY>()));
285
147
        return;
286
0
    default:
287
0
        throw Exception(Status::FatalError("type not supported, type={}", field.get_type_name()));
288
54.5M
    }
289
54.5M
}
290
291
208M
Field::Field(const Field& rhs) {
292
208M
    create(rhs);
293
208M
}
294
295
1.57M
Field::Field(Field&& rhs) {
296
1.57M
    create(std::move(rhs));
297
1.57M
}
298
299
5.60M
Field& Field::operator=(const Field& rhs) {
300
5.60M
    if (this != &rhs) {
301
5.60M
        if (type != rhs.type) {
302
4.26M
            destroy();
303
            // A failed allocation while changing types must leave a destructible Field.
304
4.26M
            type = TYPE_NULL;
305
4.26M
            create(rhs);
306
4.26M
        } else {
307
1.33M
            assign(rhs); /// This assigns string or vector without deallocation of existing buffer.
308
1.33M
        }
309
5.60M
    }
310
5.60M
    return *this;
311
5.60M
}
312
313
212M
void Field::create(const Field& field) {
314
212M
    switch (field.type) {
315
39.0M
    case PrimitiveType::TYPE_NULL:
316
39.0M
        create_concrete<TYPE_NULL>(field.template get<TYPE_NULL>());
317
39.0M
        return;
318
4.05M
    case PrimitiveType::TYPE_DATETIMEV2:
319
4.05M
        create_concrete<TYPE_DATETIMEV2>(field.template get<TYPE_DATETIMEV2>());
320
4.05M
        return;
321
327
    case PrimitiveType::TYPE_TIMESTAMP_NS:
322
327
        create_concrete<TYPE_TIMESTAMP_NS>(field.template get<TYPE_TIMESTAMP_NS>());
323
327
        return;
324
4.18M
    case PrimitiveType::TYPE_DATEV2:
325
4.18M
        create_concrete<TYPE_DATEV2>(field.template get<TYPE_DATEV2>());
326
4.18M
        return;
327
249
    case PrimitiveType::TYPE_TIMESTAMPTZ:
328
249
        create_concrete<TYPE_TIMESTAMPTZ>(field.template get<TYPE_TIMESTAMPTZ>());
329
249
        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.55M
    case PrimitiveType::TYPE_BOOLEAN:
337
3.55M
        create_concrete<TYPE_BOOLEAN>(field.template get<TYPE_BOOLEAN>());
338
3.55M
        return;
339
4.88M
    case PrimitiveType::TYPE_TINYINT:
340
4.88M
        create_concrete<TYPE_TINYINT>(field.template get<TYPE_TINYINT>());
341
4.88M
        return;
342
3.94M
    case PrimitiveType::TYPE_SMALLINT:
343
3.94M
        create_concrete<TYPE_SMALLINT>(field.template get<TYPE_SMALLINT>());
344
3.94M
        return;
345
792k
    case PrimitiveType::TYPE_INT:
346
792k
        create_concrete<TYPE_INT>(field.template get<TYPE_INT>());
347
792k
        return;
348
5.46M
    case PrimitiveType::TYPE_BIGINT:
349
5.46M
        create_concrete<TYPE_BIGINT>(field.template get<TYPE_BIGINT>());
350
5.46M
        return;
351
3.15M
    case PrimitiveType::TYPE_LARGEINT:
352
3.15M
        create_concrete<TYPE_LARGEINT>(field.template get<TYPE_LARGEINT>());
353
3.15M
        return;
354
27.6k
    case PrimitiveType::TYPE_IPV4:
355
27.6k
        create_concrete<TYPE_IPV4>(field.template get<TYPE_IPV4>());
356
27.6k
        return;
357
17.6k
    case PrimitiveType::TYPE_IPV6:
358
17.6k
        create_concrete<TYPE_IPV6>(field.template get<TYPE_IPV6>());
359
17.6k
        return;
360
160
    case PrimitiveType::TYPE_UUID:
361
160
        create_concrete<TYPE_UUID>(field.template get<TYPE_UUID>());
362
160
        return;
363
3.47M
    case PrimitiveType::TYPE_FLOAT:
364
3.47M
        create_concrete<TYPE_FLOAT>(field.template get<TYPE_FLOAT>());
365
3.47M
        return;
366
100
    case PrimitiveType::TYPE_TIMEV2:
367
100
        create_concrete<TYPE_TIMEV2>(field.template get<TYPE_TIMEV2>());
368
100
        return;
369
3.79M
    case PrimitiveType::TYPE_DOUBLE:
370
3.79M
        create_concrete<TYPE_DOUBLE>(field.template get<TYPE_DOUBLE>());
371
3.79M
        return;
372
394k
    case PrimitiveType::TYPE_STRING:
373
394k
        create_concrete<TYPE_STRING>(field.template get<TYPE_STRING>());
374
394k
        return;
375
2.45k
    case PrimitiveType::TYPE_CHAR:
376
2.45k
        create_concrete<TYPE_CHAR>(field.template get<TYPE_CHAR>());
377
2.45k
        return;
378
6.41M
    case PrimitiveType::TYPE_VARCHAR:
379
6.41M
        create_concrete<TYPE_VARCHAR>(field.template get<TYPE_VARCHAR>());
380
6.41M
        return;
381
14
    case PrimitiveType::TYPE_JSONB:
382
14
        create_concrete<TYPE_JSONB>(field.template get<TYPE_JSONB>());
383
14
        return;
384
92.4M
    case PrimitiveType::TYPE_ARRAY:
385
92.4M
        create_concrete<TYPE_ARRAY>(field.template get<TYPE_ARRAY>());
386
92.4M
        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.58M
    case PrimitiveType::TYPE_DECIMAL32:
394
3.58M
        create_concrete<TYPE_DECIMAL32>(field.template get<TYPE_DECIMAL32>());
395
3.58M
        return;
396
3.59M
    case PrimitiveType::TYPE_DECIMAL64:
397
3.59M
        create_concrete<TYPE_DECIMAL64>(field.template get<TYPE_DECIMAL64>());
398
3.59M
        return;
399
555
    case PrimitiveType::TYPE_DECIMALV2:
400
555
        create_concrete<TYPE_DECIMALV2>(field.template get<TYPE_DECIMALV2>());
401
555
        return;
402
3.49M
    case PrimitiveType::TYPE_DECIMAL128I:
403
3.49M
        create_concrete<TYPE_DECIMAL128I>(field.template get<TYPE_DECIMAL128I>());
404
3.49M
        return;
405
3.67M
    case PrimitiveType::TYPE_DECIMAL256:
406
3.67M
        create_concrete<TYPE_DECIMAL256>(field.template get<TYPE_DECIMAL256>());
407
3.67M
        return;
408
6
    case PrimitiveType::TYPE_VARIANT:
409
6
        create_concrete<TYPE_VARIANT>(field.template get<TYPE_VARIANT>());
410
6
        return;
411
64
    case PrimitiveType::TYPE_BITMAP:
412
64
        create_concrete<TYPE_BITMAP>(field.template get<TYPE_BITMAP>());
413
64
        return;
414
8
    case PrimitiveType::TYPE_HLL:
415
8
        create_concrete<TYPE_HLL>(field.template get<TYPE_HLL>());
416
8
        return;
417
5
    case PrimitiveType::TYPE_QUANTILE_STATE:
418
5
        create_concrete<TYPE_QUANTILE_STATE>(field.template get<TYPE_QUANTILE_STATE>());
419
5
        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
18
    case PrimitiveType::TYPE_VARBINARY:
427
18
        create_concrete<TYPE_VARBINARY>(field.template get<TYPE_VARBINARY>());
428
18
        return;
429
0
    default:
430
0
        throw Exception(Status::FatalError("type not supported, type={}", field.get_type_name()));
431
212M
    }
432
212M
}
433
434
451M
void Field::destroy() {
435
451M
    switch (type) {
436
29.1M
    case PrimitiveType::TYPE_STRING:
437
29.1M
        destroy<TYPE_STRING>();
438
29.1M
        break;
439
131k
    case PrimitiveType::TYPE_CHAR:
440
131k
        destroy<TYPE_CHAR>();
441
131k
        break;
442
8.75M
    case PrimitiveType::TYPE_VARCHAR:
443
8.75M
        destroy<TYPE_VARCHAR>();
444
8.75M
        break;
445
88.0k
    case PrimitiveType::TYPE_JSONB:
446
88.0k
        destroy<TYPE_JSONB>();
447
88.0k
        break;
448
92.6M
    case PrimitiveType::TYPE_ARRAY:
449
92.6M
        destroy<TYPE_ARRAY>();
450
92.6M
        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
13.4k
    case PrimitiveType::TYPE_VARIANT:
458
13.4k
        destroy<TYPE_VARIANT>();
459
13.4k
        break;
460
2.73k
    case PrimitiveType::TYPE_BITMAP:
461
2.73k
        destroy<TYPE_BITMAP>();
462
2.73k
        break;
463
452
    case PrimitiveType::TYPE_HLL:
464
452
        destroy<TYPE_HLL>();
465
452
        break;
466
22.4k
    case PrimitiveType::TYPE_QUANTILE_STATE:
467
22.4k
        destroy<TYPE_QUANTILE_STATE>();
468
22.4k
        break;
469
409
    case PrimitiveType::TYPE_VARBINARY:
470
409
        destroy<TYPE_VARBINARY>();
471
409
        break;
472
304M
    default:
473
304M
        break;
474
451M
    }
475
476
451M
    type = PrimitiveType::
477
451M
            TYPE_NULL; /// for exception safety in subsequent calls to destroy and create, when create fails.
478
451M
}
479
480
2.27M
void Field::assign(Field&& field) {
481
2.27M
    switch (field.type) {
482
209k
    case PrimitiveType::TYPE_NULL:
483
209k
        assign_concrete<TYPE_NULL>(std::move(field.template get<TYPE_NULL>()));
484
209k
        return;
485
59.1k
    case PrimitiveType::TYPE_DATETIMEV2:
486
59.1k
        assign_concrete<TYPE_DATETIMEV2>(std::move(field.template get<TYPE_DATETIMEV2>()));
487
59.1k
        return;
488
58
    case PrimitiveType::TYPE_TIMESTAMP_NS:
489
58
        assign_concrete<TYPE_TIMESTAMP_NS>(std::move(field.template get<TYPE_TIMESTAMP_NS>()));
490
58
        return;
491
1.01k
    case PrimitiveType::TYPE_DATETIME:
492
1.01k
        assign_concrete<TYPE_DATETIME>(std::move(field.template get<TYPE_DATETIME>()));
493
1.01k
        return;
494
646
    case PrimitiveType::TYPE_DATE:
495
646
        assign_concrete<TYPE_DATE>(std::move(field.template get<TYPE_DATE>()));
496
646
        return;
497
53.9k
    case PrimitiveType::TYPE_DATEV2:
498
53.9k
        assign_concrete<TYPE_DATEV2>(std::move(field.template get<TYPE_DATEV2>()));
499
53.9k
        return;
500
377
    case PrimitiveType::TYPE_TIMESTAMPTZ:
501
377
        assign_concrete<TYPE_TIMESTAMPTZ>(std::move(field.template get<TYPE_TIMESTAMPTZ>()));
502
377
        return;
503
15.4k
    case PrimitiveType::TYPE_BOOLEAN:
504
15.4k
        assign_concrete<TYPE_BOOLEAN>(std::move(field.template get<TYPE_BOOLEAN>()));
505
15.4k
        return;
506
77.3k
    case PrimitiveType::TYPE_TINYINT:
507
77.3k
        assign_concrete<TYPE_TINYINT>(std::move(field.template get<TYPE_TINYINT>()));
508
77.3k
        return;
509
19.3k
    case PrimitiveType::TYPE_SMALLINT:
510
19.3k
        assign_concrete<TYPE_SMALLINT>(std::move(field.template get<TYPE_SMALLINT>()));
511
19.3k
        return;
512
915k
    case PrimitiveType::TYPE_INT:
513
915k
        assign_concrete<TYPE_INT>(std::move(field.template get<TYPE_INT>()));
514
915k
        return;
515
298k
    case PrimitiveType::TYPE_BIGINT:
516
298k
        assign_concrete<TYPE_BIGINT>(std::move(field.template get<TYPE_BIGINT>()));
517
298k
        return;
518
27.3k
    case PrimitiveType::TYPE_LARGEINT:
519
27.3k
        assign_concrete<TYPE_LARGEINT>(std::move(field.template get<TYPE_LARGEINT>()));
520
27.3k
        return;
521
671
    case PrimitiveType::TYPE_IPV4:
522
671
        assign_concrete<TYPE_IPV4>(std::move(field.template get<TYPE_IPV4>()));
523
671
        return;
524
647
    case PrimitiveType::TYPE_IPV6:
525
647
        assign_concrete<TYPE_IPV6>(std::move(field.template get<TYPE_IPV6>()));
526
647
        return;
527
16
    case PrimitiveType::TYPE_UUID:
528
16
        assign_concrete<TYPE_UUID>(std::move(field.template get<TYPE_UUID>()));
529
16
        return;
530
10.7k
    case PrimitiveType::TYPE_FLOAT:
531
10.7k
        assign_concrete<TYPE_FLOAT>(std::move(field.template get<TYPE_FLOAT>()));
532
10.7k
        return;
533
0
    case PrimitiveType::TYPE_TIMEV2:
534
0
        assign_concrete<TYPE_TIMEV2>(std::move(field.template get<TYPE_TIMEV2>()));
535
0
        return;
536
15.8k
    case PrimitiveType::TYPE_DOUBLE:
537
15.8k
        assign_concrete<TYPE_DOUBLE>(std::move(field.template get<TYPE_DOUBLE>()));
538
15.8k
        return;
539
148k
    case PrimitiveType::TYPE_STRING:
540
148k
        assign_concrete<TYPE_STRING>(std::move(field.template get<TYPE_STRING>()));
541
148k
        return;
542
32.3k
    case PrimitiveType::TYPE_CHAR:
543
32.3k
        assign_concrete<TYPE_CHAR>(std::move(field.template get<TYPE_CHAR>()));
544
32.3k
        return;
545
287k
    case PrimitiveType::TYPE_VARCHAR:
546
287k
        assign_concrete<TYPE_VARCHAR>(std::move(field.template get<TYPE_VARCHAR>()));
547
287k
        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
4
    case PrimitiveType::TYPE_ARRAY:
552
4
        assign_concrete<TYPE_ARRAY>(std::move(field.template get<TYPE_ARRAY>()));
553
4
        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
5.95k
    case PrimitiveType::TYPE_DECIMAL32:
561
5.95k
        assign_concrete<TYPE_DECIMAL32>(std::move(field.template get<TYPE_DECIMAL32>()));
562
5.95k
        return;
563
32.1k
    case PrimitiveType::TYPE_DECIMAL64:
564
32.1k
        assign_concrete<TYPE_DECIMAL64>(std::move(field.template get<TYPE_DECIMAL64>()));
565
32.1k
        return;
566
304
    case PrimitiveType::TYPE_DECIMALV2:
567
304
        assign_concrete<TYPE_DECIMALV2>(std::move(field.template get<TYPE_DECIMALV2>()));
568
304
        return;
569
17.7k
    case PrimitiveType::TYPE_DECIMAL128I:
570
17.7k
        assign_concrete<TYPE_DECIMAL128I>(std::move(field.template get<TYPE_DECIMAL128I>()));
571
17.7k
        return;
572
703
    case PrimitiveType::TYPE_DECIMAL256:
573
703
        assign_concrete<TYPE_DECIMAL256>(std::move(field.template get<TYPE_DECIMAL256>()));
574
703
        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
2.27M
    }
593
2.27M
}
594
595
1.33M
void Field::assign(const Field& field) {
596
1.33M
    switch (field.type) {
597
162k
    case PrimitiveType::TYPE_NULL:
598
162k
        assign_concrete<TYPE_NULL>(field.template get<TYPE_NULL>());
599
162k
        return;
600
58.0k
    case PrimitiveType::TYPE_DATETIMEV2:
601
58.0k
        assign_concrete<TYPE_DATETIMEV2>(field.template get<TYPE_DATETIMEV2>());
602
58.0k
        return;
603
57
    case PrimitiveType::TYPE_TIMESTAMP_NS:
604
57
        assign_concrete<TYPE_TIMESTAMP_NS>(field.template get<TYPE_TIMESTAMP_NS>());
605
57
        return;
606
693
    case PrimitiveType::TYPE_DATETIME:
607
693
        assign_concrete<TYPE_DATETIME>(field.template get<TYPE_DATETIME>());
608
693
        return;
609
569
    case PrimitiveType::TYPE_DATE:
610
569
        assign_concrete<TYPE_DATE>(field.template get<TYPE_DATE>());
611
569
        return;
612
49.1k
    case PrimitiveType::TYPE_DATEV2:
613
49.1k
        assign_concrete<TYPE_DATEV2>(field.template get<TYPE_DATEV2>());
614
49.1k
        return;
615
373
    case PrimitiveType::TYPE_TIMESTAMPTZ:
616
373
        assign_concrete<TYPE_TIMESTAMPTZ>(field.template get<TYPE_TIMESTAMPTZ>());
617
373
        return;
618
15.4k
    case PrimitiveType::TYPE_BOOLEAN:
619
15.4k
        assign_concrete<TYPE_BOOLEAN>(field.template get<TYPE_BOOLEAN>());
620
15.4k
        return;
621
77.2k
    case PrimitiveType::TYPE_TINYINT:
622
77.2k
        assign_concrete<TYPE_TINYINT>(field.template get<TYPE_TINYINT>());
623
77.2k
        return;
624
19.1k
    case PrimitiveType::TYPE_SMALLINT:
625
19.1k
        assign_concrete<TYPE_SMALLINT>(field.template get<TYPE_SMALLINT>());
626
19.1k
        return;
627
175k
    case PrimitiveType::TYPE_INT:
628
175k
        assign_concrete<TYPE_INT>(field.template get<TYPE_INT>());
629
175k
        return;
630
287k
    case PrimitiveType::TYPE_BIGINT:
631
287k
        assign_concrete<TYPE_BIGINT>(field.template get<TYPE_BIGINT>());
632
287k
        return;
633
26.1k
    case PrimitiveType::TYPE_LARGEINT:
634
26.1k
        assign_concrete<TYPE_LARGEINT>(field.template get<TYPE_LARGEINT>());
635
26.1k
        return;
636
673
    case PrimitiveType::TYPE_IPV4:
637
673
        assign_concrete<TYPE_IPV4>(field.template get<TYPE_IPV4>());
638
673
        return;
639
650
    case PrimitiveType::TYPE_IPV6:
640
650
        assign_concrete<TYPE_IPV6>(field.template get<TYPE_IPV6>());
641
650
        return;
642
18
    case PrimitiveType::TYPE_UUID:
643
18
        assign_concrete<TYPE_UUID>(field.template get<TYPE_UUID>());
644
18
        return;
645
10.4k
    case PrimitiveType::TYPE_FLOAT:
646
10.4k
        assign_concrete<TYPE_FLOAT>(field.template get<TYPE_FLOAT>());
647
10.4k
        return;
648
0
    case PrimitiveType::TYPE_TIMEV2:
649
0
        assign_concrete<TYPE_TIMEV2>(field.template get<TYPE_TIMEV2>());
650
0
        return;
651
14.5k
    case PrimitiveType::TYPE_DOUBLE:
652
14.5k
        assign_concrete<TYPE_DOUBLE>(field.template get<TYPE_DOUBLE>());
653
14.5k
        return;
654
103k
    case PrimitiveType::TYPE_STRING:
655
103k
        assign_concrete<TYPE_STRING>(field.template get<TYPE_STRING>());
656
103k
        return;
657
23.4k
    case PrimitiveType::TYPE_CHAR:
658
23.4k
        assign_concrete<TYPE_CHAR>(field.template get<TYPE_CHAR>());
659
23.4k
        return;
660
272k
    case PrimitiveType::TYPE_VARCHAR:
661
272k
        assign_concrete<TYPE_VARCHAR>(field.template get<TYPE_VARCHAR>());
662
272k
        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
5.95k
    case PrimitiveType::TYPE_DECIMAL32:
676
5.95k
        assign_concrete<TYPE_DECIMAL32>(field.template get<TYPE_DECIMAL32>());
677
5.95k
        return;
678
18.0k
    case PrimitiveType::TYPE_DECIMAL64:
679
18.0k
        assign_concrete<TYPE_DECIMAL64>(field.template get<TYPE_DECIMAL64>());
680
18.0k
        return;
681
304
    case PrimitiveType::TYPE_DECIMALV2:
682
304
        assign_concrete<TYPE_DECIMALV2>(field.template get<TYPE_DECIMALV2>());
683
304
        return;
684
15.2k
    case PrimitiveType::TYPE_DECIMAL128I:
685
15.2k
        assign_concrete<TYPE_DECIMAL128I>(field.template get<TYPE_DECIMAL128I>());
686
15.2k
        return;
687
705
    case PrimitiveType::TYPE_DECIMAL256:
688
705
        assign_concrete<TYPE_DECIMAL256>(field.template get<TYPE_DECIMAL256>());
689
705
        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
1.33M
    }
714
1.33M
}
715
716
/// Assuming same types.
717
template <PrimitiveType Type>
718
2.27M
void Field::assign_concrete(typename PrimitiveTypeTraits<Type>::CppType&& x) {
719
2.27M
    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
2.27M
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
2.27M
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE1EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
209k
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
209k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
209k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
209k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE3EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
77.3k
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
77.3k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
77.3k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
77.3k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE4EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
19.3k
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
19.3k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
19.3k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
19.3k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE5EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
915k
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
915k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
915k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
915k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE6EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
298k
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
298k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
298k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
298k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE7EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
27.3k
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
27.3k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
27.3k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
27.3k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE11EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
646
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
646
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
646
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
646
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE12EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
1.01k
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.01k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
1.01k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
1.01k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE25EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
53.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
53.9k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
53.9k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
53.9k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE26EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
59.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
59.1k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
59.1k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
59.1k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE43EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
58
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
58
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
58
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
58
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE28EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
5.95k
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
5.95k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
5.95k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
5.95k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE29EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
32.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
32.1k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
32.1k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
32.1k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE20EEEvONS_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_13PrimitiveTypeE30EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
17.7k
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
17.7k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
17.7k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
17.7k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE35EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
703
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
703
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
703
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
703
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE15EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
32.3k
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
32.3k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
32.3k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
32.3k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE10EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
287k
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
287k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
287k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
287k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE23EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
148k
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
148k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
148k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
148k
}
_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
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_13PrimitiveTypeE42EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
377
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
377
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
377
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
377
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE36EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
671
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
671
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
671
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
671
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE37EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
647
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
647
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
647
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
647
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE44EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
16
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
16
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
16
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
16
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE2EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
15.4k
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
15.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
15.4k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
15.4k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE8EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
10.7k
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
10.7k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
10.7k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
10.7k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE9EEEvONS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
718
15.8k
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
15.8k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
724
15.8k
    *ptr = std::forward<typename PrimitiveTypeTraits<Type>::CppType>(x);
725
15.8k
}
_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
1.33M
void Field::assign_concrete(const typename PrimitiveTypeTraits<Type>::CppType& x) {
729
1.33M
    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
1.33M
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
1.33M
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE1EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
164k
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
164k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
164k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
164k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE3EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
77.2k
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
77.2k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
77.2k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
77.2k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE4EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
19.1k
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
19.1k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
19.1k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
19.1k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE5EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
175k
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
175k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
175k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
175k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE6EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
287k
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
287k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
287k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
287k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE7EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
26.1k
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
26.1k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
26.1k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
26.1k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE11EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
569
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
569
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
569
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
569
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE12EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
693
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
693
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
693
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
693
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE25EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
49.1k
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
49.1k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
49.1k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
49.1k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE26EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
58.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
58.0k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
58.0k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
58.0k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE43EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
57
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
57
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
57
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
57
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE42EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
373
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
373
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
373
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
373
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE28EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
5.95k
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
5.95k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
5.95k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
5.95k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE29EEEvRKNS_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_13PrimitiveTypeE20EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
304
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
304
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
304
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
304
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE30EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
15.2k
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
15.2k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
15.2k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
15.2k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE35EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
705
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
705
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
705
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
705
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE15EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
23.4k
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
23.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
23.4k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
23.4k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE10EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
272k
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
272k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
272k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
272k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE23EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
103k
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
103k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
103k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
103k
}
_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
673
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
673
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
673
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
673
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE37EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
650
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
650
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
650
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
650
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE44EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
18
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
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
18
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
18
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE2EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
15.4k
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
15.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
15.4k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
15.4k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE8EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
10.4k
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
10.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
10.4k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
10.4k
}
_ZN5doris5Field15assign_concreteILNS_13PrimitiveTypeE9EEEvRKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeE
Line
Count
Source
728
14.5k
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
14.5k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<Type>::CppType*>(&storage);
734
14.5k
    *ptr = std::forward<const typename PrimitiveTypeTraits<Type>::CppType>(x);
735
14.5k
}
_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
125M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
125M
    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
125M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
125M
    return *ptr;
749
125M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE1EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
319k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
319k
    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
319k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
319k
    return *ptr;
749
319k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE3EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
3.89M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
3.89M
    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.89M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
3.89M
    return *ptr;
749
3.89M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE4EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
142k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
142k
    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
142k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
142k
    return *ptr;
749
142k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE5EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
94.1M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
94.1M
    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.1M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
94.1M
    return *ptr;
749
94.1M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE6EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
7.54M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
7.54M
    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.54M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
7.54M
    return *ptr;
749
7.54M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE7EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
167k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
167k
    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
167k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
167k
    return *ptr;
749
167k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE11EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
17.1k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
17.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
17.1k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
17.1k
    return *ptr;
749
17.1k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE12EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
22.4k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
22.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
22.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
22.4k
    return *ptr;
749
22.4k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE25EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
455k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
455k
    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
455k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
455k
    return *ptr;
749
455k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE26EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
1.80M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
1.80M
    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.80M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
1.80M
    return *ptr;
749
1.80M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE43EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
1.10k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
1.10k
    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.10k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
1.10k
    return *ptr;
749
1.10k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE42EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
1.98k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
1.98k
    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.98k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
1.98k
    return *ptr;
749
1.98k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE28EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
64.6k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
64.6k
    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
64.6k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
64.6k
    return *ptr;
749
64.6k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE29EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
164k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
164k
    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
164k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
164k
    return *ptr;
749
164k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE20EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
9.69k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
9.69k
    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.69k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
9.69k
    return *ptr;
749
9.69k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE30EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
119k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
119k
    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
119k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
119k
    return *ptr;
749
119k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE35EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
41.9k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
41.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
41.9k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
41.9k
    return *ptr;
749
41.9k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE15EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
126k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
126k
    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
126k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
126k
    return *ptr;
749
126k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE10EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
1.60M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
1.60M
    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.60M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
1.60M
    return *ptr;
749
1.60M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE23EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
13.9M
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
13.9M
    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
13.9M
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
13.9M
    return *ptr;
749
13.9M
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE41EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
198
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
198
    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
198
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
198
    return *ptr;
749
198
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE19EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
22
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
22
    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
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
22
    return *ptr;
749
22
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE32EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
6.73k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
6.73k
    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.73k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
6.73k
    return *ptr;
749
6.73k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE24EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
8
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
8
    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
8
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
8
    return *ptr;
749
8
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE17EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
335k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
335k
    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
335k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
335k
    return *ptr;
749
335k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE36EEERNS_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_13PrimitiveTypeE37EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
25.6k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
25.6k
    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.6k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
25.6k
    return *ptr;
749
25.6k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE44EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
202
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
202
    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
202
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
202
    return *ptr;
749
202
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE2EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
88.9k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
88.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
88.9k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
88.9k
    return *ptr;
749
88.9k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE8EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
107k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
107k
    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
107k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
107k
    return *ptr;
749
107k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE9EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
331k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
331k
    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
331k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
331k
    return *ptr;
749
331k
}
_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
9.98k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
9.98k
    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.98k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
9.98k
    return *ptr;
749
9.98k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE18EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
29.3k
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
29.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
29.3k
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
29.3k
    return *ptr;
749
29.3k
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE22EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
313
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
313
    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
313
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
313
    return *ptr;
749
313
}
_ZN5doris5Field3getILNS_13PrimitiveTypeE27EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
742
274
typename PrimitiveTypeTraits<T>::CppType& Field::get() {
743
274
    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
274
    auto* MAY_ALIAS ptr = reinterpret_cast<typename PrimitiveTypeTraits<T>::CppType*>(&storage);
748
274
    return *ptr;
749
274
}
Unexecuted instantiation: _ZN5doris5Field3getILNS_13PrimitiveTypeE38EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Unexecuted instantiation: _ZN5doris5Field3getILNS_13PrimitiveTypeE39EEERNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
750
751
template <PrimitiveType T>
752
361M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
361M
    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
361M
    const auto* MAY_ALIAS ptr =
758
361M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
361M
    return *ptr;
760
361M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE1EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
39.1M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
39.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
39.1M
    const auto* MAY_ALIAS ptr =
758
39.1M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
39.1M
    return *ptr;
760
39.1M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE3EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
10.5M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
10.5M
    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
10.5M
    const auto* MAY_ALIAS ptr =
758
10.5M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
10.5M
    return *ptr;
760
10.5M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE4EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
5.04M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
5.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
5.04M
    const auto* MAY_ALIAS ptr =
758
5.04M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
5.04M
    return *ptr;
760
5.04M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE5EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
8.37M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
8.37M
    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.37M
    const auto* MAY_ALIAS ptr =
758
8.37M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
8.37M
    return *ptr;
760
8.37M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE6EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
24.7M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
24.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
24.7M
    const auto* MAY_ALIAS ptr =
758
24.7M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
24.7M
    return *ptr;
760
24.7M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE7EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
4.31M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
4.31M
    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.31M
    const auto* MAY_ALIAS ptr =
758
4.31M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
4.31M
    return *ptr;
760
4.31M
}
_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
7.14M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
7.14M
    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.14M
    const auto* MAY_ALIAS ptr =
758
7.14M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
7.14M
    return *ptr;
760
7.14M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE26EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
5.35M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
5.35M
    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.35M
    const auto* MAY_ALIAS ptr =
758
5.35M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
5.35M
    return *ptr;
760
5.35M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE43EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
1.09k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
1.09k
    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.09k
    const auto* MAY_ALIAS ptr =
758
1.09k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
1.09k
    return *ptr;
760
1.09k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE42EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
2.19k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
2.19k
    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
2.19k
    const auto* MAY_ALIAS ptr =
758
2.19k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
2.19k
    return *ptr;
760
2.19k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE28EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
4.61M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
4.61M
    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.61M
    const auto* MAY_ALIAS ptr =
758
4.61M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
4.61M
    return *ptr;
760
4.61M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE29EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
18.2M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
18.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
18.2M
    const auto* MAY_ALIAS ptr =
758
18.2M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
18.2M
    return *ptr;
760
18.2M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE20EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
16.8k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
16.8k
    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.8k
    const auto* MAY_ALIAS ptr =
758
16.8k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
16.8k
    return *ptr;
760
16.8k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE30EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
4.56M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
4.56M
    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.56M
    const auto* MAY_ALIAS ptr =
758
4.56M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
4.56M
    return *ptr;
760
4.56M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE35EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
4.67M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
4.67M
    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.67M
    const auto* MAY_ALIAS ptr =
758
4.67M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
4.67M
    return *ptr;
760
4.67M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE15EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
41.6k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
41.6k
    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
41.6k
    const auto* MAY_ALIAS ptr =
758
41.6k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
41.6k
    return *ptr;
760
41.6k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE10EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
9.48M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
9.48M
    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
9.48M
    const auto* MAY_ALIAS ptr =
758
9.48M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
9.48M
    return *ptr;
760
9.48M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE23EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
22.6M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
22.6M
    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.6M
    const auto* MAY_ALIAS ptr =
758
22.6M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
22.6M
    return *ptr;
760
22.6M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE41EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
243
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
243
    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
243
    const auto* MAY_ALIAS ptr =
758
243
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
243
    return *ptr;
760
243
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE19EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
28
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
28
    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
28
    const auto* MAY_ALIAS ptr =
758
28
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
28
    return *ptr;
760
28
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE32EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
6.69k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
6.69k
    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
6.69k
    const auto* MAY_ALIAS ptr =
758
6.69k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
6.69k
    return *ptr;
760
6.69k
}
_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
33.6k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
33.6k
    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
33.6k
    const auto* MAY_ALIAS ptr =
758
33.6k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
33.6k
    return *ptr;
760
33.6k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE37EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
21.8k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
21.8k
    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
21.8k
    const auto* MAY_ALIAS ptr =
758
21.8k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
21.8k
    return *ptr;
760
21.8k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE44EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
87.8k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
87.8k
    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.8k
    const auto* MAY_ALIAS ptr =
758
87.8k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
87.8k
    return *ptr;
760
87.8k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE2EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
32.9M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
32.9M
    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.9M
    const auto* MAY_ALIAS ptr =
758
32.9M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
32.9M
    return *ptr;
760
32.9M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE8EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
4.52M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
4.52M
    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.52M
    const auto* MAY_ALIAS ptr =
758
4.52M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
4.52M
    return *ptr;
760
4.52M
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE9EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
5.42M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
5.42M
    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.42M
    const auto* MAY_ALIAS ptr =
758
5.42M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
5.42M
    return *ptr;
760
5.42M
}
_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.05M
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
4.05M
    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.05M
    const auto* MAY_ALIAS ptr =
758
4.05M
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
4.05M
    return *ptr;
760
4.05M
}
_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
20.1k
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
20.1k
    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.1k
    const auto* MAY_ALIAS ptr =
758
20.1k
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
20.1k
    return *ptr;
760
20.1k
}
_ZNK5doris5Field3getILNS_13PrimitiveTypeE27EEERKNS_19PrimitiveTypeTraitsIXT_EE7CppTypeEv
Line
Count
Source
752
591
const typename PrimitiveTypeTraits<T>::CppType& Field::get() const {
753
591
    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
591
    const auto* MAY_ALIAS ptr =
758
591
            reinterpret_cast<const typename PrimitiveTypeTraits<T>::CppType*>(&storage);
759
591
    return *ptr;
760
591
}
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
146M
void Field::destroy() {
764
146M
    if constexpr (T == TYPE_VARBINARY) {
765
409
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
409
        return;
767
409
    }
768
0
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
146M
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
770
4.66k
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
771
146M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
146M
    ptr->~TargetType();
773
146M
}
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
131k
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
131k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
18.4E
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
770
18.4E
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
771
131k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
131k
    ptr->~TargetType();
773
131k
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE10EEEvv
Line
Count
Source
763
8.71M
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
8.71M
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
18.4E
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
770
18.4E
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
771
8.71M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
8.71M
    ptr->~TargetType();
773
8.71M
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE23EEEvv
Line
Count
Source
763
28.8M
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
28.8M
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
28.8M
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
770
4.33k
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
771
28.8M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
28.8M
    ptr->~TargetType();
773
28.8M
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE41EEEvv
Line
Count
Source
763
409
void Field::destroy() {
764
409
    if constexpr (T == TYPE_VARBINARY) {
765
409
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
409
        return;
767
409
    }
768
0
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
409
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
770
409
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
771
409
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
409
    ptr->~TargetType();
773
409
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE19EEEvv
Line
Count
Source
763
452
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
452
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
452
    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
452
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
452
    ptr->~TargetType();
773
452
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE32EEEvv
Line
Count
Source
763
13.4k
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
13.4k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
18.4E
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
770
18.4E
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
771
13.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
13.4k
    ptr->~TargetType();
773
13.4k
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE24EEEvv
Line
Count
Source
763
22.4k
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
22.4k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
22.4k
    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.4k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
22.4k
    ptr->~TargetType();
773
22.4k
}
_ZN5doris5Field7destroyILNS_13PrimitiveTypeE17EEEvv
Line
Count
Source
763
92.6M
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
92.6M
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
18.4E
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
770
18.4E
            << "Type mismatch: requested " << type_to_string(T) << ", actual " << get_type_name();
771
92.6M
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
92.6M
    ptr->~TargetType();
773
92.6M
}
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
88.0k
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
88.0k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
88.0k
    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
88.0k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
88.0k
    ptr->~TargetType();
773
88.0k
}
_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
18.4E
    DCHECK(T == type || ((is_string_type(type) && is_string_type(T))))
770
18.4E
            << "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.73k
void Field::destroy() {
764
    if constexpr (T == TYPE_VARBINARY) {
765
        reinterpret_cast<OwnedBinaryField*>(&storage)->~OwnedBinaryField();
766
        return;
767
    }
768
2.73k
    using TargetType = typename PrimitiveTypeTraits<T>::CppType;
769
2.73k
    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.73k
    auto* MAY_ALIAS ptr = reinterpret_cast<TargetType*>(&storage);
772
2.73k
    ptr->~TargetType();
773
2.73k
}
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE27EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE38EEEvv
Unexecuted instantiation: _ZN5doris5Field7destroyILNS_13PrimitiveTypeE39EEEvv
774
775
10.2M
std::strong_ordering Field::operator<=>(const Field& rhs) const {
776
10.2M
    if (type == PrimitiveType::TYPE_NULL || rhs == PrimitiveType::TYPE_NULL) {
777
6.89M
        return type <=> rhs.type;
778
6.89M
    }
779
3.33M
    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
44.0k
        if (is_string_type(type) && is_string_type(rhs.type)) {
785
44.0k
            return get<TYPE_STRING>() <=> rhs.get<TYPE_STRING>();
786
44.0k
        }
787
18.4E
        throw Exception(Status::FatalError("lhs type not equal with rhs, lhs={}, rhs={}",
788
18.4E
                                           get_type_name(), rhs.get_type_name()));
789
43.9k
    }
790
791
3.28M
    switch (type) {
792
1.15k
    case PrimitiveType::TYPE_BITMAP:
793
1.35k
    case PrimitiveType::TYPE_HLL:
794
2.55k
    case PrimitiveType::TYPE_QUANTILE_STATE:
795
2.55k
    case PrimitiveType::INVALID_TYPE:
796
2.56k
    case PrimitiveType::TYPE_JSONB:
797
2.56k
    case PrimitiveType::TYPE_NULL:
798
8.72k
    case PrimitiveType::TYPE_ARRAY:
799
8.79k
    case PrimitiveType::TYPE_MAP:
800
8.83k
    case PrimitiveType::TYPE_STRUCT:
801
8.83k
    case PrimitiveType::TYPE_VARIANT:
802
8.83k
        return std::strong_ordering::equal; //TODO: throw Exception?
803
32.4k
    case PrimitiveType::TYPE_DATETIMEV2:
804
32.4k
        return get<PrimitiveType::TYPE_DATETIMEV2>().to_date_int_val() <=>
805
32.4k
               rhs.get<PrimitiveType::TYPE_DATETIMEV2>().to_date_int_val();
806
69
    case PrimitiveType::TYPE_TIMESTAMP_NS:
807
69
        return get<PrimitiveType::TYPE_TIMESTAMP_NS>() <=>
808
69
               rhs.get<PrimitiveType::TYPE_TIMESTAMP_NS>();
809
432k
    case PrimitiveType::TYPE_DATEV2:
810
432k
        return get<PrimitiveType::TYPE_DATEV2>().to_date_int_val() <=>
811
432k
               rhs.get<PrimitiveType::TYPE_DATEV2>().to_date_int_val();
812
107
    case PrimitiveType::TYPE_TIMESTAMPTZ:
813
107
        return get<PrimitiveType::TYPE_TIMESTAMPTZ>().to_date_int_val() <=>
814
107
               rhs.get<PrimitiveType::TYPE_TIMESTAMPTZ>().to_date_int_val();
815
424
    case PrimitiveType::TYPE_DATE:
816
424
        return get<PrimitiveType::TYPE_DATE>() <=> rhs.get<PrimitiveType::TYPE_DATE>();
817
517
    case PrimitiveType::TYPE_DATETIME:
818
517
        return get<PrimitiveType::TYPE_DATETIME>() <=> rhs.get<PrimitiveType::TYPE_DATETIME>();
819
73.5k
    case PrimitiveType::TYPE_BIGINT:
820
73.5k
        return get<PrimitiveType::TYPE_BIGINT>() <=> rhs.get<PrimitiveType::TYPE_BIGINT>();
821
15.7k
    case PrimitiveType::TYPE_BOOLEAN:
822
15.7k
        return get<PrimitiveType::TYPE_BOOLEAN>() <=> rhs.get<PrimitiveType::TYPE_BOOLEAN>();
823
466k
    case PrimitiveType::TYPE_TINYINT:
824
466k
        return get<TYPE_TINYINT>() <=> rhs.get<TYPE_TINYINT>();
825
3.38k
    case PrimitiveType::TYPE_SMALLINT:
826
3.38k
        return get<TYPE_SMALLINT>() <=> rhs.get<TYPE_SMALLINT>();
827
893k
    case PrimitiveType::TYPE_INT:
828
893k
        return get<TYPE_INT>() <=> rhs.get<TYPE_INT>();
829
8.50k
    case PrimitiveType::TYPE_LARGEINT:
830
8.50k
        return get<TYPE_LARGEINT>() <=> rhs.get<TYPE_LARGEINT>();
831
313
    case PrimitiveType::TYPE_IPV6:
832
313
        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
543
    case PrimitiveType::TYPE_IPV4:
836
543
        return get<TYPE_IPV4>() <=> rhs.get<TYPE_IPV4>();
837
578
    case PrimitiveType::TYPE_FLOAT:
838
578
        switch (Compare::compare(get<TYPE_FLOAT>(), rhs.get<TYPE_FLOAT>())) {
839
49
        case -1:
840
49
            return std::strong_ordering::less;
841
455
        case 0:
842
455
            return std::strong_ordering::equal;
843
74
        case 1:
844
74
            return std::strong_ordering::greater;
845
0
        default:
846
0
            LOG(FATAL) << "unexpected float compare result";
847
578
        }
848
53
    case PrimitiveType::TYPE_TIMEV2:
849
53
        return get<TYPE_TIMEV2>() < rhs.get<TYPE_TIMEV2>()    ? std::strong_ordering::less
850
53
               : get<TYPE_TIMEV2>() == rhs.get<TYPE_TIMEV2>() ? std::strong_ordering::equal
851
53
                                                              : std::strong_ordering::greater;
852
605
    case PrimitiveType::TYPE_DOUBLE:
853
605
        switch (Compare::compare(get<TYPE_DOUBLE>(), rhs.get<TYPE_DOUBLE>())) {
854
53
        case -1:
855
53
            return std::strong_ordering::less;
856
465
        case 0:
857
465
            return std::strong_ordering::equal;
858
87
        case 1:
859
87
            return std::strong_ordering::greater;
860
0
        default:
861
0
            LOG(FATAL) << "unexpected double compare result";
862
605
        }
863
28.1k
    case PrimitiveType::TYPE_STRING:
864
28.1k
        return get<TYPE_STRING>() <=> rhs.get<TYPE_STRING>();
865
355
    case PrimitiveType::TYPE_CHAR:
866
355
        return get<TYPE_CHAR>() <=> rhs.get<TYPE_CHAR>();
867
1.38M
    case PrimitiveType::TYPE_VARCHAR:
868
1.38M
        return get<TYPE_VARCHAR>() <=> rhs.get<TYPE_VARCHAR>();
869
27
    case PrimitiveType::TYPE_VARBINARY:
870
27
        return get<TYPE_VARBINARY>() <=> rhs.get<TYPE_VARBINARY>();
871
408
    case PrimitiveType::TYPE_DECIMAL32:
872
408
        return get<TYPE_DECIMAL32>() <=> rhs.get<TYPE_DECIMAL32>();
873
2.13k
    case PrimitiveType::TYPE_DECIMAL64:
874
2.13k
        return get<TYPE_DECIMAL64>() <=> rhs.get<TYPE_DECIMAL64>();
875
2.73k
    case PrimitiveType::TYPE_DECIMALV2:
876
2.73k
        return get<TYPE_DECIMALV2>() <=> rhs.get<TYPE_DECIMALV2>();
877
2.86k
    case PrimitiveType::TYPE_DECIMAL128I:
878
2.86k
        return get<TYPE_DECIMAL128I>() <=> rhs.get<TYPE_DECIMAL128I>();
879
971
    case PrimitiveType::TYPE_DECIMAL256:
880
971
        return get<TYPE_DECIMAL256>() <=> rhs.get<TYPE_DECIMAL256>();
881
0
    default:
882
0
        throw Exception(Status::FatalError("Unsupported type: {}", get_type_name()));
883
3.28M
    }
884
3.28M
}
885
886
#define MATCH_PRIMITIVE_TYPE(primitive_type)                                   \
887
33.0k
    if (type == primitive_type) {                                              \
888
2.99k
        const auto& v = get<primitive_type>();                                 \
889
2.99k
        return std::string_view(reinterpret_cast<const char*>(&v), sizeof(v)); \
890
2.99k
    }
891
892
5.60k
std::string_view Field::as_string_view() const {
893
5.60k
    if (type == PrimitiveType::TYPE_STRING || type == PrimitiveType::TYPE_VARCHAR ||
894
5.60k
        type == PrimitiveType::TYPE_CHAR) {
895
2.59k
        const auto& s = get<TYPE_STRING>();
896
2.59k
        return {s.data(), s.size()};
897
2.59k
    }
898
3.00k
    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
2.99k
    MATCH_PRIMITIVE_TYPE(TYPE_BOOLEAN);
905
2.99k
    MATCH_PRIMITIVE_TYPE(TYPE_TINYINT);
906
2.99k
    MATCH_PRIMITIVE_TYPE(TYPE_SMALLINT);
907
2.99k
    MATCH_PRIMITIVE_TYPE(TYPE_INT);
908
1.32k
    MATCH_PRIMITIVE_TYPE(TYPE_BIGINT);
909
1.25k
    MATCH_PRIMITIVE_TYPE(TYPE_LARGEINT);
910
1.25k
    MATCH_PRIMITIVE_TYPE(TYPE_FLOAT)
911
1.25k
    MATCH_PRIMITIVE_TYPE(TYPE_DOUBLE);
912
    // MATCH_PRIMITIVE_TYPE(TYPE_VARCHAR);
913
1.25k
    MATCH_PRIMITIVE_TYPE(TYPE_DATE);
914
1.25k
    MATCH_PRIMITIVE_TYPE(TYPE_DATETIME);
915
1.25k
    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
1.25k
    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
1.25k
    MATCH_PRIMITIVE_TYPE(TYPE_DATEV2);
928
1.23k
    MATCH_PRIMITIVE_TYPE(TYPE_DATETIMEV2);
929
1.19k
    MATCH_PRIMITIVE_TYPE(TYPE_TIMESTAMP_NS);
930
1.19k
    MATCH_PRIMITIVE_TYPE(TYPE_TIMEV2);
931
1.16k
    MATCH_PRIMITIVE_TYPE(TYPE_DECIMAL32);
932
1.16k
    MATCH_PRIMITIVE_TYPE(TYPE_DECIMAL64);
933
1.16k
    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
1.16k
    MATCH_PRIMITIVE_TYPE(TYPE_DECIMAL256);
939
1.16k
    MATCH_PRIMITIVE_TYPE(TYPE_IPV4);
940
250
    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
13.2M
std::string Field::to_debug_string(int scale) const {
954
13.2M
    if (is_null()) {
955
0
        return "NULL";
956
0
    }
957
13.2M
    switch (type) {
958
35.6k
    case PrimitiveType::TYPE_BOOLEAN:
959
35.6k
        return get<TYPE_BOOLEAN>() ? "true" : "false";
960
1.47M
    case PrimitiveType::TYPE_TINYINT:
961
1.47M
        return CastToString::from_number(get<TYPE_TINYINT>());
962
7.76k
    case PrimitiveType::TYPE_SMALLINT:
963
7.76k
        return CastToString::from_number(get<TYPE_SMALLINT>());
964
482k
    case PrimitiveType::TYPE_INT:
965
482k
        return CastToString::from_number(get<TYPE_INT>());
966
202k
    case PrimitiveType::TYPE_BIGINT:
967
202k
        return CastToString::from_number(get<TYPE_BIGINT>());
968
21.7k
    case PrimitiveType::TYPE_LARGEINT:
969
21.7k
        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
1.60k
    case PrimitiveType::TYPE_CHAR:
976
10.3M
    case PrimitiveType::TYPE_VARCHAR:
977
10.3M
        return get<TYPE_STRING>();
978
0
    case PrimitiveType::TYPE_VARBINARY:
979
0
        return get<TYPE_VARBINARY>();
980
4
    case PrimitiveType::TYPE_DATE:
981
4
        return CastToString::from_date_or_datetime(get<TYPE_DATE>());
982
8
    case PrimitiveType::TYPE_DATETIME:
983
8
        return CastToString::from_date_or_datetime(get<TYPE_DATETIME>());
984
667k
    case PrimitiveType::TYPE_DATEV2:
985
667k
        return CastToString::from_datev2(get<TYPE_DATEV2>());
986
9.26k
    case PrimitiveType::TYPE_DATETIMEV2:
987
9.26k
        return CastToString::from_datetimev2(get<TYPE_DATETIMEV2>(), scale);
988
34
    case PrimitiveType::TYPE_TIMESTAMP_NS:
989
34
        return get<TYPE_TIMESTAMP_NS>().to_string();
990
124
    case PrimitiveType::TYPE_TIMESTAMPTZ:
991
124
        return CastToString::from_timestamptz(get<TYPE_TIMESTAMPTZ>(), scale);
992
4
    case PrimitiveType::TYPE_DECIMALV2:
993
4
        return get<TYPE_DECIMALV2>().to_string();
994
160
    case PrimitiveType::TYPE_DECIMAL32:
995
160
        return CastToString::from_decimal(get<TYPE_DECIMAL32>(), scale);
996
608
    case PrimitiveType::TYPE_DECIMAL64:
997
608
        return CastToString::from_decimal(get<TYPE_DECIMAL64>(), scale);
998
1.15k
    case PrimitiveType::TYPE_DECIMAL128I:
999
1.15k
        return CastToString::from_decimal(get<TYPE_DECIMAL128I>(), scale);
1000
89
    case PrimitiveType::TYPE_DECIMAL256:
1001
89
        return CastToString::from_decimal(get<TYPE_DECIMAL256>(), scale);
1002
0
    case PrimitiveType::TYPE_IPV4:
1003
0
        return CastToString::from_ip(get<TYPE_IPV4>());
1004
3
    case PrimitiveType::TYPE_IPV6:
1005
3
        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
13.2M
    }
1013
13.2M
}
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