Coverage Report

Created: 2025-12-30 18:18

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/root/doris/be/src/vec/functions/dictionary.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
18
#include "vec/functions/dictionary.h"
19
20
#include <variant>
21
22
#include "runtime/thread_context.h"
23
#include "vec/columns/column.h"
24
#include "vec/data_types/data_type_decimal.h"
25
#include "vec/data_types/data_type_ipv4.h"
26
#include "vec/data_types/data_type_nullable.h"
27
#include "vec/data_types/data_type_number.h" // IWYU pragma: keep
28
29
namespace doris::vectorized {
30
31
IDictionary::IDictionary(std::string name, std::vector<DictionaryAttribute> attributes)
32
694
        : _dict_name(std::move(name)), _attributes(std::move(attributes)) {
33
1.39k
    for (size_t i = 0; i < _attributes.size(); i++) {
34
700
        const auto& nested_name = _attributes[i].name;
35
700
        if (_name_to_attributes_index.contains(nested_name)) {
36
0
            throw doris::Exception(ErrorCode::INVALID_ARGUMENT,
37
0
                                   "The names of attributes should not have duplicates : {}",
38
0
                                   nested_name);
39
0
        }
40
700
        _name_to_attributes_index[nested_name] = i;
41
700
    }
42
694
}
43
44
694
IDictionary::~IDictionary() {
45
694
    if (_mem_tracker) {
46
5
        SCOPED_SWITCH_THREAD_MEM_TRACKER_LIMITER(_mem_tracker);
47
5
        std::vector<ValueData> {}.swap(_values_data);
48
5
        std::string {}.swap(_dict_name);
49
5
        std::vector<DictionaryAttribute> {}.swap(_attributes);
50
5
        _name_to_attributes_index.clear();
51
5
    }
52
694
}
53
54
0
bool IDictionary::has_attribute(const std::string& name) const {
55
0
    return _name_to_attributes_index.contains(name);
56
0
}
57
58
2.07k
size_t IDictionary::attribute_index(const std::string& name) const {
59
2.07k
    auto it = _name_to_attributes_index.find(name);
60
2.07k
    if (it == _name_to_attributes_index.end()) {
61
0
        throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "no this attribute : {}", name);
62
0
    }
63
2.07k
    size_t idx = it->second;
64
2.07k
    return idx;
65
2.07k
}
66
67
0
bool IDictionary::attribute_is_nullable(size_t idx) const {
68
0
    return _attributes[idx].type->is_nullable();
69
0
}
70
71
std::variant<std::false_type, std::true_type> IDictionary::attribute_nullable_variant(
72
1.03k
        size_t idx) const {
73
1.03k
    return vectorized::make_bool_variant(_attributes[idx].type->is_nullable());
74
1.03k
}
75
76
0
DataTypePtr IDictionary::get_attribute_type(const std::string& name) const {
77
0
    auto it = _name_to_attributes_index.find(name);
78
0
    if (it == _name_to_attributes_index.end()) {
79
0
        throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "no this attribute : {}", name);
80
0
    }
81
0
    size_t idx = it->second;
82
0
    return remove_nullable(_attributes[idx].type);
83
0
}
84
85
7
size_t IDictionary::allocated_bytes() const {
86
7
    size_t bytes = 0;
87
7
    for (const auto& value_data : _values_data) {
88
7
        std::visit(
89
7
                [&](auto&& arg) {
90
7
                    const auto* column = arg.get();
91
7
                    bytes += column->allocated_bytes();
92
7
                    if (arg.get_null_map()) {
93
0
                        bytes += arg.get_null_map()->allocated_bytes();
94
0
                    }
95
7
                },
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeNumberILNS_13PrimitiveTypeE2EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeNumberILNS_13PrimitiveTypeE3EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeNumberILNS_13PrimitiveTypeE4EEEEEEEDaOT_
dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeNumberILNS_13PrimitiveTypeE5EEEEEEEDaOT_
Line
Count
Source
89
7
                [&](auto&& arg) {
90
7
                    const auto* column = arg.get();
91
7
                    bytes += column->allocated_bytes();
92
7
                    if (arg.get_null_map()) {
93
0
                        bytes += arg.get_null_map()->allocated_bytes();
94
0
                    }
95
7
                },
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeNumberILNS_13PrimitiveTypeE6EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeNumberILNS_13PrimitiveTypeE7EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeNumberILNS_13PrimitiveTypeE8EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeNumberILNS_13PrimitiveTypeE9EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_12DataTypeIPv4EEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_12DataTypeIPv6EEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeStringEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_14DataTypeDateV2EEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_18DataTypeDateTimeV2EEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEEEEDaOT_
Unexecuted instantiation: dictionary.cpp:_ZZNK5doris10vectorized11IDictionary15allocated_bytesEvENK3$_0clIRKNS1_14ColumnWithTypeINS0_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEEEEDaOT_
96
7
                value_data);
97
7
    }
98
7
    return bytes;
99
7
}
100
101
694
void IDictionary::load_values(const std::vector<ColumnPtr>& values_column) {
102
    // load value column
103
694
    _values_data.resize(values_column.size());
104
1.39k
    for (size_t i = 0; i < values_column.size(); i++) {
105
700
        const DataTypePtr value_type_without_nullable = remove_nullable(_attributes[i].type);
106
700
        ColumnPtr value_column_without_nullable = remove_nullable(values_column[i]);
107
700
        if (_attributes[i].type->is_nullable() != values_column[i]->is_nullable()) {
108
0
            throw doris::Exception(
109
0
                    ErrorCode::INVALID_ARGUMENT,
110
0
                    "Dictionary({}) attribute {} type is : {} , column is : {}  Not supported",
111
0
                    dict_name(), _attributes[i].name, _attributes[i].type->get_name(),
112
0
                    values_column[i]->get_name());
113
0
        }
114
700
        bool valid =
115
700
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
700
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
700
                    auto& att = _values_data[i];
118
700
                    auto init_column_with_type = [&](auto& column_with_type) {
119
700
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
700
                        column_with_type.column =
121
700
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
700
                        if (values_column[i]->is_nullable()) {
124
3
                            column_with_type.null_map =
125
3
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
3
                                            values_column[i].get())
127
3
                                            ->get_null_map_column_ptr();
128
697
                        } else {
129
697
                            column_with_type.null_map = nullptr;
130
697
                        }
131
700
                        att = column_with_type;
132
700
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE2EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE2EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE3EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE3EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE4EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE4EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE5EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE5EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Line
Count
Source
118
65
                    auto init_column_with_type = [&](auto& column_with_type) {
119
65
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
65
                        column_with_type.column =
121
65
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
65
                        if (values_column[i]->is_nullable()) {
124
3
                            column_with_type.null_map =
125
3
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
3
                                            values_column[i].get())
127
3
                                            ->get_null_map_column_ptr();
128
62
                        } else {
129
62
                            column_with_type.null_map = nullptr;
130
62
                        }
131
65
                        att = column_with_type;
132
65
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE6EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE6EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Line
Count
Source
118
58
                    auto init_column_with_type = [&](auto& column_with_type) {
119
58
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
58
                        column_with_type.column =
121
58
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
58
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
58
                        } else {
129
58
                            column_with_type.null_map = nullptr;
130
58
                        }
131
58
                        att = column_with_type;
132
58
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE7EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE7EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE8EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE8EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Line
Count
Source
118
53
                    auto init_column_with_type = [&](auto& column_with_type) {
119
53
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
53
                        column_with_type.column =
121
53
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
53
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
53
                        } else {
129
53
                            column_with_type.null_map = nullptr;
130
53
                        }
131
53
                        att = column_with_type;
132
53
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE9EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE9EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_12DataTypeIPv4EEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSI_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_12DataTypeIPv4EEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeISE_EEEEDaSI_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_12DataTypeIPv6EEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSI_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_12DataTypeIPv6EEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeISE_EEEEDaSI_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeStringEEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSI_
Line
Count
Source
118
27
                    auto init_column_with_type = [&](auto& column_with_type) {
119
27
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
27
                        column_with_type.column =
121
27
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
27
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
27
                        } else {
129
27
                            column_with_type.null_map = nullptr;
130
27
                        }
131
27
                        att = column_with_type;
132
27
                    };
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeStringEEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeISE_EEEEDaSI_
Line
Count
Source
118
29
                    auto init_column_with_type = [&](auto& column_with_type) {
119
29
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
29
                        column_with_type.column =
121
29
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
29
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
29
                        } else {
129
29
                            column_with_type.null_map = nullptr;
130
29
                        }
131
29
                        att = column_with_type;
132
29
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeDateV2EEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSI_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeDateV2EEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeISE_EEEEDaSI_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_18DataTypeDateTimeV2EEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSI_
dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_18DataTypeDateTimeV2EEEDaRKT_ENKUlRSF_E_clINS1_14ColumnWithTypeISE_EEEEDaSI_
Line
Count
Source
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
0
                            column_with_type.null_map =
125
0
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
0
                                            values_column[i].get())
127
0
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeINS1_20DictDataTypeString64EEEEEDaSK_
Unexecuted instantiation: dictionary.cpp:_ZZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEEDaRKT_ENKUlRSH_E_clINS1_14ColumnWithTypeISG_EEEEDaSK_
133
134
700
                    if (value_column_without_nullable->is_column_string64()) {
135
27
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
27
                        init_column_with_type(column_with_type);
137
673
                    } else {
138
673
                        ColumnWithType<ValueRealDataType> column_with_type;
139
673
                        init_column_with_type(column_with_type);
140
673
                    }
141
700
                    return true;
142
700
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE2EEEEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE3EEEEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE4EEEEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE5EEEEEDaRKT_
Line
Count
Source
115
65
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
65
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
65
                    auto& att = _values_data[i];
118
65
                    auto init_column_with_type = [&](auto& column_with_type) {
119
65
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
65
                        column_with_type.column =
121
65
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
65
                        if (values_column[i]->is_nullable()) {
124
65
                            column_with_type.null_map =
125
65
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
65
                                            values_column[i].get())
127
65
                                            ->get_null_map_column_ptr();
128
65
                        } else {
129
65
                            column_with_type.null_map = nullptr;
130
65
                        }
131
65
                        att = column_with_type;
132
65
                    };
133
134
65
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
65
                    } else {
138
65
                        ColumnWithType<ValueRealDataType> column_with_type;
139
65
                        init_column_with_type(column_with_type);
140
65
                    }
141
65
                    return true;
142
65
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE6EEEEEDaRKT_
Line
Count
Source
115
58
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
58
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
58
                    auto& att = _values_data[i];
118
58
                    auto init_column_with_type = [&](auto& column_with_type) {
119
58
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
58
                        column_with_type.column =
121
58
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
58
                        if (values_column[i]->is_nullable()) {
124
58
                            column_with_type.null_map =
125
58
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
58
                                            values_column[i].get())
127
58
                                            ->get_null_map_column_ptr();
128
58
                        } else {
129
58
                            column_with_type.null_map = nullptr;
130
58
                        }
131
58
                        att = column_with_type;
132
58
                    };
133
134
58
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
58
                    } else {
138
58
                        ColumnWithType<ValueRealDataType> column_with_type;
139
58
                        init_column_with_type(column_with_type);
140
58
                    }
141
58
                    return true;
142
58
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE7EEEEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE8EEEEEDaRKT_
Line
Count
Source
115
53
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
53
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
53
                    auto& att = _values_data[i];
118
53
                    auto init_column_with_type = [&](auto& column_with_type) {
119
53
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
53
                        column_with_type.column =
121
53
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
53
                        if (values_column[i]->is_nullable()) {
124
53
                            column_with_type.null_map =
125
53
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
53
                                            values_column[i].get())
127
53
                                            ->get_null_map_column_ptr();
128
53
                        } else {
129
53
                            column_with_type.null_map = nullptr;
130
53
                        }
131
53
                        att = column_with_type;
132
53
                    };
133
134
53
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
53
                    } else {
138
53
                        ColumnWithType<ValueRealDataType> column_with_type;
139
53
                        init_column_with_type(column_with_type);
140
53
                    }
141
53
                    return true;
142
53
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeNumberILNS_13PrimitiveTypeE9EEEEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_12DataTypeIPv4EEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_12DataTypeIPv6EEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeStringEEEDaRKT_
Line
Count
Source
115
56
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
56
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
56
                    auto& att = _values_data[i];
118
56
                    auto init_column_with_type = [&](auto& column_with_type) {
119
56
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
56
                        column_with_type.column =
121
56
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
56
                        if (values_column[i]->is_nullable()) {
124
56
                            column_with_type.null_map =
125
56
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
56
                                            values_column[i].get())
127
56
                                            ->get_null_map_column_ptr();
128
56
                        } else {
129
56
                            column_with_type.null_map = nullptr;
130
56
                        }
131
56
                        att = column_with_type;
132
56
                    };
133
134
56
                    if (value_column_without_nullable->is_column_string64()) {
135
27
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
27
                        init_column_with_type(column_with_type);
137
29
                    } else {
138
29
                        ColumnWithType<ValueRealDataType> column_with_type;
139
29
                        init_column_with_type(column_with_type);
140
29
                    }
141
56
                    return true;
142
56
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_14DataTypeDateV2EEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_18DataTypeDateTimeV2EEEDaRKT_
Line
Count
Source
115
52
                IDictionary::cast_type(value_type_without_nullable.get(), [&](const auto& type) {
116
52
                    using ValueRealDataType = std::decay_t<decltype(type)>;
117
52
                    auto& att = _values_data[i];
118
52
                    auto init_column_with_type = [&](auto& column_with_type) {
119
52
                        using Type = std::decay_t<decltype(column_with_type)>::RealColumnType;
120
52
                        column_with_type.column =
121
52
                                cast_to_column<Type>(value_column_without_nullable);
122
                        // if original value is nullable, the null_map must be not null
123
52
                        if (values_column[i]->is_nullable()) {
124
52
                            column_with_type.null_map =
125
52
                                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(
126
52
                                            values_column[i].get())
127
52
                                            ->get_null_map_column_ptr();
128
52
                        } else {
129
52
                            column_with_type.null_map = nullptr;
130
52
                        }
131
52
                        att = column_with_type;
132
52
                    };
133
134
52
                    if (value_column_without_nullable->is_column_string64()) {
135
0
                        ColumnWithType<DictDataTypeString64> column_with_type;
136
0
                        init_column_with_type(column_with_type);
137
52
                    } else {
138
52
                        ColumnWithType<ValueRealDataType> column_with_type;
139
52
                        init_column_with_type(column_with_type);
140
52
                    }
141
52
                    return true;
142
52
                });
Unexecuted instantiation: dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEEDaRKT_
Unexecuted instantiation: dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEEDaRKT_
Unexecuted instantiation: dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEEDaRKT_
Unexecuted instantiation: dictionary.cpp:_ZZN5doris10vectorized11IDictionary11load_valuesERKSt6vectorINS_3COWINS0_7IColumnEE13immutable_ptrIS4_EESaIS7_EEENK3$_0clINS0_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEEDaRKT_
143
700
        if (!valid) {
144
0
            throw doris::Exception(
145
0
                    ErrorCode::INVALID_ARGUMENT,
146
0
                    "Dictionary({}) attribute {} type is : {} , column is : {}  Not supported",
147
0
                    dict_name(), _attributes[i].name, _attributes[i].type->get_name(),
148
0
                    values_column[i]->get_name());
149
0
        }
150
700
    }
151
694
}
152
153
} // namespace doris::vectorized