Coverage Report

Created: 2026-04-18 15:51

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/exprs/aggregate/aggregate_function_histogram.h
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
#pragma once
19
20
#include <map>
21
#include <memory>
22
#include <string>
23
#include <utility>
24
#include <vector>
25
26
#include "common/exception.h"
27
#include "common/status.h"
28
#include "core/assert_cast.h"
29
#include "core/column/column.h"
30
#include "core/column/column_decimal.h"
31
#include "core/column/column_string.h"
32
#include "core/data_type/data_type_string.h"
33
#include "core/string_ref.h"
34
#include "core/types.h"
35
#include "exec/common/histogram_helpers.hpp"
36
#include "exprs/aggregate/aggregate_function.h"
37
#include "exprs/aggregate/aggregate_function_simple_factory.h"
38
39
namespace doris {} // namespace doris
40
41
namespace doris {
42
43
template <PrimitiveType T>
44
struct AggregateFunctionHistogramData {
45
    static constexpr auto Ptype = T;
46
    using ColVecType = typename PrimitiveTypeTraits<T>::ColumnType;
47
    const static size_t DEFAULT_BUCKET_NUM = 128;
48
    const static size_t BUCKET_NUM_INIT_VALUE = 0;
49
50
6.09k
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE14set_parametersEm
Line
Count
Source
50
15
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE14set_parametersEm
Line
Count
Source
50
347
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE14set_parametersEm
Line
Count
Source
50
359
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE14set_parametersEm
Line
Count
Source
50
463
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE14set_parametersEm
Line
Count
Source
50
361
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE14set_parametersEm
Line
Count
Source
50
347
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE14set_parametersEm
Line
Count
Source
50
332
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE14set_parametersEm
Line
Count
Source
50
332
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE14set_parametersEm
Line
Count
Source
50
171
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE14set_parametersEm
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE14set_parametersEm
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE14set_parametersEm
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE14set_parametersEm
Line
Count
Source
50
2.40k
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE14set_parametersEm
Line
Count
Source
50
479
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE14set_parametersEm
Line
Count
Source
50
479
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
51
52
29
    void reset() { ordered_map.clear(); }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE5resetEv
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE5resetEv
Line
Count
Source
52
26
    void reset() { ordered_map.clear(); }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE5resetEv
Line
Count
Source
52
3
    void reset() { ordered_map.clear(); }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE5resetEv
53
54
2.40k
    void add(const StringRef& value, const UInt64& number = 1) {
55
2.40k
        std::string data = value.to_string();
56
2.40k
        auto it = ordered_map.find(data);
57
2.40k
        if (it != ordered_map.end()) {
58
115
            it->second = it->second + number;
59
2.29k
        } else {
60
2.29k
            ordered_map.insert({data, number});
61
2.29k
        }
62
2.40k
    }
63
64
3.68k
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
3.68k
        auto it = ordered_map.find(value);
66
3.68k
        if (it != ordered_map.end()) {
67
111
            it->second = it->second + number;
68
3.57k
        } else {
69
3.57k
            ordered_map.insert({value, number});
70
3.57k
        }
71
3.68k
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE3addERKhRKm
Line
Count
Source
64
15
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
15
        auto it = ordered_map.find(value);
66
15
        if (it != ordered_map.end()) {
67
11
            it->second = it->second + number;
68
11
        } else {
69
4
            ordered_map.insert({value, number});
70
4
        }
71
15
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE3addERKaRKm
Line
Count
Source
64
347
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
347
        auto it = ordered_map.find(value);
66
347
        if (it != ordered_map.end()) {
67
7
            it->second = it->second + number;
68
340
        } else {
69
340
            ordered_map.insert({value, number});
70
340
        }
71
347
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE3addERKsRKm
Line
Count
Source
64
359
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
359
        auto it = ordered_map.find(value);
66
359
        if (it != ordered_map.end()) {
67
7
            it->second = it->second + number;
68
352
        } else {
69
352
            ordered_map.insert({value, number});
70
352
        }
71
359
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE3addERKiRKm
Line
Count
Source
64
463
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
463
        auto it = ordered_map.find(value);
66
463
        if (it != ordered_map.end()) {
67
19
            it->second = it->second + number;
68
444
        } else {
69
444
            ordered_map.insert({value, number});
70
444
        }
71
463
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE3addERKlRKm
Line
Count
Source
64
360
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
360
        auto it = ordered_map.find(value);
66
360
        if (it != ordered_map.end()) {
67
8
            it->second = it->second + number;
68
352
        } else {
69
352
            ordered_map.insert({value, number});
70
352
        }
71
360
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE3addERKnRKm
Line
Count
Source
64
347
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
347
        auto it = ordered_map.find(value);
66
347
        if (it != ordered_map.end()) {
67
4
            it->second = it->second + number;
68
343
        } else {
69
343
            ordered_map.insert({value, number});
70
343
        }
71
347
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE3addERKfRKm
Line
Count
Source
64
332
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
332
        auto it = ordered_map.find(value);
66
332
        if (it != ordered_map.end()) {
67
4
            it->second = it->second + number;
68
328
        } else {
69
328
            ordered_map.insert({value, number});
70
328
        }
71
332
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE3addERKdRKm
Line
Count
Source
64
332
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
332
        auto it = ordered_map.find(value);
66
332
        if (it != ordered_map.end()) {
67
4
            it->second = it->second + number;
68
328
        } else {
69
328
            ordered_map.insert({value, number});
70
328
        }
71
332
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE3addERKNS_7DecimalIiEERKm
Line
Count
Source
64
171
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
171
        auto it = ordered_map.find(value);
66
171
        if (it != ordered_map.end()) {
67
9
            it->second = it->second + number;
68
162
        } else {
69
162
            ordered_map.insert({value, number});
70
162
        }
71
171
    }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE3addERKNS_7DecimalIlEERKm
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE3addERKNS_12Decimal128V3ERKm
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE3addERKNS_7DecimalIN4wide7integerILm256EiEEEERKm
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE3addERKNS_11DateV2ValueINS_15DateV2ValueTypeEEERKm
Line
Count
Source
64
479
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
479
        auto it = ordered_map.find(value);
66
479
        if (it != ordered_map.end()) {
67
18
            it->second = it->second + number;
68
461
        } else {
69
461
            ordered_map.insert({value, number});
70
461
        }
71
479
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE3addERKNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEERKm
Line
Count
Source
64
479
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
479
        auto it = ordered_map.find(value);
66
479
        if (it != ordered_map.end()) {
67
20
            it->second = it->second + number;
68
459
        } else {
69
459
            ordered_map.insert({value, number});
70
459
        }
71
479
    }
72
73
1.28k
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
1.28k
        if (!rhs.max_num_buckets) {
77
87
            return;
78
87
        }
79
80
1.19k
        max_num_buckets = rhs.max_num_buckets;
81
82
4.03k
        for (auto rhs_it : rhs.ordered_map) {
83
4.03k
            auto lhs_it = ordered_map.find(rhs_it.first);
84
4.03k
            if (lhs_it != ordered_map.end()) {
85
2.06k
                lhs_it->second += rhs_it.second;
86
2.06k
            } else {
87
1.96k
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
1.96k
            }
89
4.03k
        }
90
1.19k
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE5mergeERKS2_
Line
Count
Source
73
4
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
4
        if (!rhs.max_num_buckets) {
77
2
            return;
78
2
        }
79
80
2
        max_num_buckets = rhs.max_num_buckets;
81
82
4
        for (auto rhs_it : rhs.ordered_map) {
83
4
            auto lhs_it = ordered_map.find(rhs_it.first);
84
4
            if (lhs_it != ordered_map.end()) {
85
2
                lhs_it->second += rhs_it.second;
86
2
            } else {
87
2
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
2
            }
89
4
        }
90
2
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE5mergeERKS2_
Line
Count
Source
73
83
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
83
        if (!rhs.max_num_buckets) {
77
7
            return;
78
7
        }
79
80
76
        max_num_buckets = rhs.max_num_buckets;
81
82
247
        for (auto rhs_it : rhs.ordered_map) {
83
247
            auto lhs_it = ordered_map.find(rhs_it.first);
84
247
            if (lhs_it != ordered_map.end()) {
85
100
                lhs_it->second += rhs_it.second;
86
147
            } else {
87
147
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
147
            }
89
247
        }
90
76
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE5mergeERKS2_
Line
Count
Source
73
83
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
83
        if (!rhs.max_num_buckets) {
77
5
            return;
78
5
        }
79
80
78
        max_num_buckets = rhs.max_num_buckets;
81
82
258
        for (auto rhs_it : rhs.ordered_map) {
83
258
            auto lhs_it = ordered_map.find(rhs_it.first);
84
258
            if (lhs_it != ordered_map.end()) {
85
103
                lhs_it->second += rhs_it.second;
86
155
            } else {
87
155
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
155
            }
89
258
        }
90
78
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE5mergeERKS2_
Line
Count
Source
73
209
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
209
        if (!rhs.max_num_buckets) {
77
15
            return;
78
15
        }
79
80
194
        max_num_buckets = rhs.max_num_buckets;
81
82
355
        for (auto rhs_it : rhs.ordered_map) {
83
355
            auto lhs_it = ordered_map.find(rhs_it.first);
84
355
            if (lhs_it != ordered_map.end()) {
85
163
                lhs_it->second += rhs_it.second;
86
192
            } else {
87
192
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
192
            }
89
355
        }
90
194
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE5mergeERKS2_
Line
Count
Source
73
83
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
83
        if (!rhs.max_num_buckets) {
77
7
            return;
78
7
        }
79
80
76
        max_num_buckets = rhs.max_num_buckets;
81
82
247
        for (auto rhs_it : rhs.ordered_map) {
83
247
            auto lhs_it = ordered_map.find(rhs_it.first);
84
247
            if (lhs_it != ordered_map.end()) {
85
102
                lhs_it->second += rhs_it.second;
86
145
            } else {
87
145
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
145
            }
89
247
        }
90
76
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE5mergeERKS2_
Line
Count
Source
73
83
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
83
        if (!rhs.max_num_buckets) {
77
7
            return;
78
7
        }
79
80
76
        max_num_buckets = rhs.max_num_buckets;
81
82
250
        for (auto rhs_it : rhs.ordered_map) {
83
250
            auto lhs_it = ordered_map.find(rhs_it.first);
84
250
            if (lhs_it != ordered_map.end()) {
85
100
                lhs_it->second += rhs_it.second;
86
150
            } else {
87
150
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
150
            }
89
250
        }
90
76
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE5mergeERKS2_
Line
Count
Source
73
79
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
79
        if (!rhs.max_num_buckets) {
77
5
            return;
78
5
        }
79
80
74
        max_num_buckets = rhs.max_num_buckets;
81
82
235
        for (auto rhs_it : rhs.ordered_map) {
83
235
            auto lhs_it = ordered_map.find(rhs_it.first);
84
235
            if (lhs_it != ordered_map.end()) {
85
100
                lhs_it->second += rhs_it.second;
86
135
            } else {
87
135
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
135
            }
89
235
        }
90
74
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE5mergeERKS2_
Line
Count
Source
73
79
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
79
        if (!rhs.max_num_buckets) {
77
5
            return;
78
5
        }
79
80
74
        max_num_buckets = rhs.max_num_buckets;
81
82
235
        for (auto rhs_it : rhs.ordered_map) {
83
235
            auto lhs_it = ordered_map.find(rhs_it.first);
84
235
            if (lhs_it != ordered_map.end()) {
85
100
                lhs_it->second += rhs_it.second;
86
135
            } else {
87
135
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
135
            }
89
235
        }
90
74
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE5mergeERKS2_
Line
Count
Source
73
84
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
84
        if (!rhs.max_num_buckets) {
77
6
            return;
78
6
        }
79
80
78
        max_num_buckets = rhs.max_num_buckets;
81
82
164
        for (auto rhs_it : rhs.ordered_map) {
83
164
            auto lhs_it = ordered_map.find(rhs_it.first);
84
164
            if (lhs_it != ordered_map.end()) {
85
1
                lhs_it->second += rhs_it.second;
86
163
            } else {
87
163
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
163
            }
89
164
        }
90
78
    }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE5mergeERKS2_
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE5mergeERKS2_
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE5mergeERKS2_
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE5mergeERKS2_
Line
Count
Source
73
177
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
177
        if (!rhs.max_num_buckets) {
77
8
            return;
78
8
        }
79
80
169
        max_num_buckets = rhs.max_num_buckets;
81
82
1.28k
        for (auto rhs_it : rhs.ordered_map) {
83
1.28k
            auto lhs_it = ordered_map.find(rhs_it.first);
84
1.28k
            if (lhs_it != ordered_map.end()) {
85
1.08k
                lhs_it->second += rhs_it.second;
86
1.08k
            } else {
87
195
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
195
            }
89
1.28k
        }
90
169
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE5mergeERKS2_
Line
Count
Source
73
159
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
159
        if (!rhs.max_num_buckets) {
77
10
            return;
78
10
        }
79
80
149
        max_num_buckets = rhs.max_num_buckets;
81
82
377
        for (auto rhs_it : rhs.ordered_map) {
83
377
            auto lhs_it = ordered_map.find(rhs_it.first);
84
377
            if (lhs_it != ordered_map.end()) {
85
103
                lhs_it->second += rhs_it.second;
86
274
            } else {
87
274
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
274
            }
89
377
        }
90
149
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE5mergeERKS2_
Line
Count
Source
73
159
    void merge(const AggregateFunctionHistogramData& rhs) {
74
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
75
        // we should discard this data, because histogram only fouce on the not-null data
76
159
        if (!rhs.max_num_buckets) {
77
10
            return;
78
10
        }
79
80
149
        max_num_buckets = rhs.max_num_buckets;
81
82
375
        for (auto rhs_it : rhs.ordered_map) {
83
375
            auto lhs_it = ordered_map.find(rhs_it.first);
84
375
            if (lhs_it != ordered_map.end()) {
85
102
                lhs_it->second += rhs_it.second;
86
273
            } else {
87
273
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
273
            }
89
375
        }
90
149
    }
91
92
1.32k
    void write(BufferWritable& buf) const {
93
1.32k
        buf.write_binary(max_num_buckets);
94
1.32k
        auto element_number = (size_t)ordered_map.size();
95
1.32k
        buf.write_binary(element_number);
96
97
1.32k
        auto pair_vector = map_to_vector();
98
99
5.39k
        for (auto i = 0; i < element_number; i++) {
100
4.07k
            auto element = pair_vector[i];
101
4.07k
            buf.write_binary(element.second);
102
4.07k
            buf.write_binary(element.first);
103
4.07k
        }
104
1.32k
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE5writeERNS_14BufferWritableE
Line
Count
Source
92
4
    void write(BufferWritable& buf) const {
93
4
        buf.write_binary(max_num_buckets);
94
4
        auto element_number = (size_t)ordered_map.size();
95
4
        buf.write_binary(element_number);
96
97
4
        auto pair_vector = map_to_vector();
98
99
8
        for (auto i = 0; i < element_number; i++) {
100
4
            auto element = pair_vector[i];
101
4
            buf.write_binary(element.second);
102
4
            buf.write_binary(element.first);
103
4
        }
104
4
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE5writeERNS_14BufferWritableE
Line
Count
Source
92
83
    void write(BufferWritable& buf) const {
93
83
        buf.write_binary(max_num_buckets);
94
83
        auto element_number = (size_t)ordered_map.size();
95
83
        buf.write_binary(element_number);
96
97
83
        auto pair_vector = map_to_vector();
98
99
330
        for (auto i = 0; i < element_number; i++) {
100
247
            auto element = pair_vector[i];
101
247
            buf.write_binary(element.second);
102
247
            buf.write_binary(element.first);
103
247
        }
104
83
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE5writeERNS_14BufferWritableE
Line
Count
Source
92
83
    void write(BufferWritable& buf) const {
93
83
        buf.write_binary(max_num_buckets);
94
83
        auto element_number = (size_t)ordered_map.size();
95
83
        buf.write_binary(element_number);
96
97
83
        auto pair_vector = map_to_vector();
98
99
341
        for (auto i = 0; i < element_number; i++) {
100
258
            auto element = pair_vector[i];
101
258
            buf.write_binary(element.second);
102
258
            buf.write_binary(element.first);
103
258
        }
104
83
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE5writeERNS_14BufferWritableE
Line
Count
Source
92
248
    void write(BufferWritable& buf) const {
93
248
        buf.write_binary(max_num_buckets);
94
248
        auto element_number = (size_t)ordered_map.size();
95
248
        buf.write_binary(element_number);
96
97
248
        auto pair_vector = map_to_vector();
98
99
642
        for (auto i = 0; i < element_number; i++) {
100
394
            auto element = pair_vector[i];
101
394
            buf.write_binary(element.second);
102
394
            buf.write_binary(element.first);
103
394
        }
104
248
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE
Line
Count
Source
92
83
    void write(BufferWritable& buf) const {
93
83
        buf.write_binary(max_num_buckets);
94
83
        auto element_number = (size_t)ordered_map.size();
95
83
        buf.write_binary(element_number);
96
97
83
        auto pair_vector = map_to_vector();
98
99
330
        for (auto i = 0; i < element_number; i++) {
100
247
            auto element = pair_vector[i];
101
247
            buf.write_binary(element.second);
102
247
            buf.write_binary(element.first);
103
247
        }
104
83
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE
Line
Count
Source
92
83
    void write(BufferWritable& buf) const {
93
83
        buf.write_binary(max_num_buckets);
94
83
        auto element_number = (size_t)ordered_map.size();
95
83
        buf.write_binary(element_number);
96
97
83
        auto pair_vector = map_to_vector();
98
99
333
        for (auto i = 0; i < element_number; i++) {
100
250
            auto element = pair_vector[i];
101
250
            buf.write_binary(element.second);
102
250
            buf.write_binary(element.first);
103
250
        }
104
83
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE5writeERNS_14BufferWritableE
Line
Count
Source
92
79
    void write(BufferWritable& buf) const {
93
79
        buf.write_binary(max_num_buckets);
94
79
        auto element_number = (size_t)ordered_map.size();
95
79
        buf.write_binary(element_number);
96
97
79
        auto pair_vector = map_to_vector();
98
99
314
        for (auto i = 0; i < element_number; i++) {
100
235
            auto element = pair_vector[i];
101
235
            buf.write_binary(element.second);
102
235
            buf.write_binary(element.first);
103
235
        }
104
79
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Line
Count
Source
92
79
    void write(BufferWritable& buf) const {
93
79
        buf.write_binary(max_num_buckets);
94
79
        auto element_number = (size_t)ordered_map.size();
95
79
        buf.write_binary(element_number);
96
97
79
        auto pair_vector = map_to_vector();
98
99
314
        for (auto i = 0; i < element_number; i++) {
100
235
            auto element = pair_vector[i];
101
235
            buf.write_binary(element.second);
102
235
            buf.write_binary(element.first);
103
235
        }
104
79
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE
Line
Count
Source
92
84
    void write(BufferWritable& buf) const {
93
84
        buf.write_binary(max_num_buckets);
94
84
        auto element_number = (size_t)ordered_map.size();
95
84
        buf.write_binary(element_number);
96
97
84
        auto pair_vector = map_to_vector();
98
99
248
        for (auto i = 0; i < element_number; i++) {
100
164
            auto element = pair_vector[i];
101
164
            buf.write_binary(element.second);
102
164
            buf.write_binary(element.first);
103
164
        }
104
84
    }
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE5writeERNS_14BufferWritableE
Line
Count
Source
92
177
    void write(BufferWritable& buf) const {
93
177
        buf.write_binary(max_num_buckets);
94
177
        auto element_number = (size_t)ordered_map.size();
95
177
        buf.write_binary(element_number);
96
97
177
        auto pair_vector = map_to_vector();
98
99
1.46k
        for (auto i = 0; i < element_number; i++) {
100
1.28k
            auto element = pair_vector[i];
101
1.28k
            buf.write_binary(element.second);
102
1.28k
            buf.write_binary(element.first);
103
1.28k
        }
104
177
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE5writeERNS_14BufferWritableE
Line
Count
Source
92
159
    void write(BufferWritable& buf) const {
93
159
        buf.write_binary(max_num_buckets);
94
159
        auto element_number = (size_t)ordered_map.size();
95
159
        buf.write_binary(element_number);
96
97
159
        auto pair_vector = map_to_vector();
98
99
536
        for (auto i = 0; i < element_number; i++) {
100
377
            auto element = pair_vector[i];
101
377
            buf.write_binary(element.second);
102
377
            buf.write_binary(element.first);
103
377
        }
104
159
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE5writeERNS_14BufferWritableE
Line
Count
Source
92
159
    void write(BufferWritable& buf) const {
93
159
        buf.write_binary(max_num_buckets);
94
159
        auto element_number = (size_t)ordered_map.size();
95
159
        buf.write_binary(element_number);
96
97
159
        auto pair_vector = map_to_vector();
98
99
534
        for (auto i = 0; i < element_number; i++) {
100
375
            auto element = pair_vector[i];
101
375
            buf.write_binary(element.second);
102
375
            buf.write_binary(element.first);
103
375
        }
104
159
    }
105
106
1.28k
    void read(BufferReadable& buf) {
107
1.28k
        buf.read_binary(max_num_buckets);
108
109
1.28k
        size_t element_number = 0;
110
1.28k
        buf.read_binary(element_number);
111
112
1.28k
        ordered_map.clear();
113
1.28k
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
5.31k
        for (auto i = 0; i < element_number; i++) {
115
4.03k
            buf.read_binary(element.first);
116
4.03k
            buf.read_binary(element.second);
117
4.03k
            ordered_map.insert(element);
118
4.03k
        }
119
1.28k
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE4readERNS_14BufferReadableE
Line
Count
Source
106
4
    void read(BufferReadable& buf) {
107
4
        buf.read_binary(max_num_buckets);
108
109
4
        size_t element_number = 0;
110
4
        buf.read_binary(element_number);
111
112
4
        ordered_map.clear();
113
4
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
8
        for (auto i = 0; i < element_number; i++) {
115
4
            buf.read_binary(element.first);
116
4
            buf.read_binary(element.second);
117
4
            ordered_map.insert(element);
118
4
        }
119
4
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE4readERNS_14BufferReadableE
Line
Count
Source
106
83
    void read(BufferReadable& buf) {
107
83
        buf.read_binary(max_num_buckets);
108
109
83
        size_t element_number = 0;
110
83
        buf.read_binary(element_number);
111
112
83
        ordered_map.clear();
113
83
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
330
        for (auto i = 0; i < element_number; i++) {
115
247
            buf.read_binary(element.first);
116
247
            buf.read_binary(element.second);
117
247
            ordered_map.insert(element);
118
247
        }
119
83
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE4readERNS_14BufferReadableE
Line
Count
Source
106
83
    void read(BufferReadable& buf) {
107
83
        buf.read_binary(max_num_buckets);
108
109
83
        size_t element_number = 0;
110
83
        buf.read_binary(element_number);
111
112
83
        ordered_map.clear();
113
83
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
341
        for (auto i = 0; i < element_number; i++) {
115
258
            buf.read_binary(element.first);
116
258
            buf.read_binary(element.second);
117
258
            ordered_map.insert(element);
118
258
        }
119
83
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE4readERNS_14BufferReadableE
Line
Count
Source
106
209
    void read(BufferReadable& buf) {
107
209
        buf.read_binary(max_num_buckets);
108
109
209
        size_t element_number = 0;
110
209
        buf.read_binary(element_number);
111
112
209
        ordered_map.clear();
113
209
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
564
        for (auto i = 0; i < element_number; i++) {
115
355
            buf.read_binary(element.first);
116
355
            buf.read_binary(element.second);
117
355
            ordered_map.insert(element);
118
355
        }
119
209
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
106
83
    void read(BufferReadable& buf) {
107
83
        buf.read_binary(max_num_buckets);
108
109
83
        size_t element_number = 0;
110
83
        buf.read_binary(element_number);
111
112
83
        ordered_map.clear();
113
83
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
330
        for (auto i = 0; i < element_number; i++) {
115
247
            buf.read_binary(element.first);
116
247
            buf.read_binary(element.second);
117
247
            ordered_map.insert(element);
118
247
        }
119
83
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
106
83
    void read(BufferReadable& buf) {
107
83
        buf.read_binary(max_num_buckets);
108
109
83
        size_t element_number = 0;
110
83
        buf.read_binary(element_number);
111
112
83
        ordered_map.clear();
113
83
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
333
        for (auto i = 0; i < element_number; i++) {
115
250
            buf.read_binary(element.first);
116
250
            buf.read_binary(element.second);
117
250
            ordered_map.insert(element);
118
250
        }
119
83
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE4readERNS_14BufferReadableE
Line
Count
Source
106
79
    void read(BufferReadable& buf) {
107
79
        buf.read_binary(max_num_buckets);
108
109
79
        size_t element_number = 0;
110
79
        buf.read_binary(element_number);
111
112
79
        ordered_map.clear();
113
79
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
314
        for (auto i = 0; i < element_number; i++) {
115
235
            buf.read_binary(element.first);
116
235
            buf.read_binary(element.second);
117
235
            ordered_map.insert(element);
118
235
        }
119
79
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE4readERNS_14BufferReadableE
Line
Count
Source
106
79
    void read(BufferReadable& buf) {
107
79
        buf.read_binary(max_num_buckets);
108
109
79
        size_t element_number = 0;
110
79
        buf.read_binary(element_number);
111
112
79
        ordered_map.clear();
113
79
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
314
        for (auto i = 0; i < element_number; i++) {
115
235
            buf.read_binary(element.first);
116
235
            buf.read_binary(element.second);
117
235
            ordered_map.insert(element);
118
235
        }
119
79
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE
Line
Count
Source
106
84
    void read(BufferReadable& buf) {
107
84
        buf.read_binary(max_num_buckets);
108
109
84
        size_t element_number = 0;
110
84
        buf.read_binary(element_number);
111
112
84
        ordered_map.clear();
113
84
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
248
        for (auto i = 0; i < element_number; i++) {
115
164
            buf.read_binary(element.first);
116
164
            buf.read_binary(element.second);
117
164
            ordered_map.insert(element);
118
164
        }
119
84
    }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE4readERNS_14BufferReadableE
Line
Count
Source
106
177
    void read(BufferReadable& buf) {
107
177
        buf.read_binary(max_num_buckets);
108
109
177
        size_t element_number = 0;
110
177
        buf.read_binary(element_number);
111
112
177
        ordered_map.clear();
113
177
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
1.46k
        for (auto i = 0; i < element_number; i++) {
115
1.28k
            buf.read_binary(element.first);
116
1.28k
            buf.read_binary(element.second);
117
1.28k
            ordered_map.insert(element);
118
1.28k
        }
119
177
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE4readERNS_14BufferReadableE
Line
Count
Source
106
159
    void read(BufferReadable& buf) {
107
159
        buf.read_binary(max_num_buckets);
108
109
159
        size_t element_number = 0;
110
159
        buf.read_binary(element_number);
111
112
159
        ordered_map.clear();
113
159
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
536
        for (auto i = 0; i < element_number; i++) {
115
377
            buf.read_binary(element.first);
116
377
            buf.read_binary(element.second);
117
377
            ordered_map.insert(element);
118
377
        }
119
159
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE4readERNS_14BufferReadableE
Line
Count
Source
106
158
    void read(BufferReadable& buf) {
107
158
        buf.read_binary(max_num_buckets);
108
109
158
        size_t element_number = 0;
110
158
        buf.read_binary(element_number);
111
112
158
        ordered_map.clear();
113
158
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
533
        for (auto i = 0; i < element_number; i++) {
115
375
            buf.read_binary(element.first);
116
375
            buf.read_binary(element.second);
117
375
            ordered_map.insert(element);
118
375
        }
119
158
    }
120
121
    void insert_result_into(IColumn& to) const {
122
        auto pair_vector = map_to_vector();
123
        for (auto i = 0; i < pair_vector.size(); i++) {
124
            const auto& element = pair_vector[i];
125
            if constexpr (is_string_type(T)) {
126
                assert_cast<ColumnString&>(to).insert_data(element.second.c_str(),
127
                                                           element.second.length());
128
            } else {
129
                assert_cast<ColVecType&>(to).get_data().push_back(element.second);
130
            }
131
        }
132
    }
133
134
700
    std::string get(const DataTypePtr& data_type) const {
135
700
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
700
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
700
        build_histogram(
142
700
                buckets, ordered_map,
143
700
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
700
        histogram_to_json(buffer, buckets, data_type);
145
700
        return {buffer.GetString()};
146
700
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
2
    std::string get(const DataTypePtr& data_type) const {
135
2
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
2
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
2
        build_histogram(
142
2
                buckets, ordered_map,
143
2
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
2
        histogram_to_json(buffer, buckets, data_type);
145
2
        return {buffer.GetString()};
146
2
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
48
    std::string get(const DataTypePtr& data_type) const {
135
48
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
48
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
48
        build_histogram(
142
48
                buckets, ordered_map,
143
48
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
48
        histogram_to_json(buffer, buckets, data_type);
145
48
        return {buffer.GetString()};
146
48
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
48
    std::string get(const DataTypePtr& data_type) const {
135
48
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
48
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
48
        build_histogram(
142
48
                buckets, ordered_map,
143
48
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
48
        histogram_to_json(buffer, buckets, data_type);
145
48
        return {buffer.GetString()};
146
48
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
67
    std::string get(const DataTypePtr& data_type) const {
135
67
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
67
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
67
        build_histogram(
142
67
                buckets, ordered_map,
143
67
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
67
        histogram_to_json(buffer, buckets, data_type);
145
67
        return {buffer.GetString()};
146
67
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
65
    std::string get(const DataTypePtr& data_type) const {
135
65
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
65
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
65
        build_histogram(
142
65
                buckets, ordered_map,
143
65
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
65
        histogram_to_json(buffer, buckets, data_type);
145
65
        return {buffer.GetString()};
146
65
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
48
    std::string get(const DataTypePtr& data_type) const {
135
48
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
48
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
48
        build_histogram(
142
48
                buckets, ordered_map,
143
48
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
48
        histogram_to_json(buffer, buckets, data_type);
145
48
        return {buffer.GetString()};
146
48
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
46
    std::string get(const DataTypePtr& data_type) const {
135
46
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
46
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
46
        build_histogram(
142
46
                buckets, ordered_map,
143
46
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
46
        histogram_to_json(buffer, buckets, data_type);
145
46
        return {buffer.GetString()};
146
46
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
46
    std::string get(const DataTypePtr& data_type) const {
135
46
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
46
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
46
        build_histogram(
142
46
                buckets, ordered_map,
143
46
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
46
        histogram_to_json(buffer, buckets, data_type);
145
46
        return {buffer.GetString()};
146
46
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
49
    std::string get(const DataTypePtr& data_type) const {
135
49
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
49
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
49
        build_histogram(
142
49
                buckets, ordered_map,
143
49
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
49
        histogram_to_json(buffer, buckets, data_type);
145
49
        return {buffer.GetString()};
146
49
    }
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
105
    std::string get(const DataTypePtr& data_type) const {
135
105
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
105
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
105
        build_histogram(
142
105
                buckets, ordered_map,
143
105
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
105
        histogram_to_json(buffer, buckets, data_type);
145
105
        return {buffer.GetString()};
146
105
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
88
    std::string get(const DataTypePtr& data_type) const {
135
88
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
88
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
88
        build_histogram(
142
88
                buckets, ordered_map,
143
88
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
88
        histogram_to_json(buffer, buckets, data_type);
145
88
        return {buffer.GetString()};
146
88
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
134
88
    std::string get(const DataTypePtr& data_type) const {
135
88
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
136
88
        rapidjson::StringBuffer buffer;
137
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
138
        // when target column is nullable, and input block is all null,
139
        // set_parameters will not be called because of the short-circuit in
140
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
141
88
        build_histogram(
142
88
                buckets, ordered_map,
143
88
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
144
88
        histogram_to_json(buffer, buckets, data_type);
145
88
        return {buffer.GetString()};
146
88
    }
147
148
1.32k
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
1.32k
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
4.07k
        for (auto it : ordered_map) {
151
4.07k
            pair_vector.emplace_back(it.second, it.first);
152
4.07k
        }
153
1.32k
        return pair_vector;
154
1.32k
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE13map_to_vectorEv
Line
Count
Source
148
4
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
4
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
4
        for (auto it : ordered_map) {
151
4
            pair_vector.emplace_back(it.second, it.first);
152
4
        }
153
4
        return pair_vector;
154
4
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE13map_to_vectorEv
Line
Count
Source
148
83
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
83
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
247
        for (auto it : ordered_map) {
151
247
            pair_vector.emplace_back(it.second, it.first);
152
247
        }
153
83
        return pair_vector;
154
83
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE13map_to_vectorEv
Line
Count
Source
148
83
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
83
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
258
        for (auto it : ordered_map) {
151
258
            pair_vector.emplace_back(it.second, it.first);
152
258
        }
153
83
        return pair_vector;
154
83
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE13map_to_vectorEv
Line
Count
Source
148
248
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
248
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
394
        for (auto it : ordered_map) {
151
394
            pair_vector.emplace_back(it.second, it.first);
152
394
        }
153
248
        return pair_vector;
154
248
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE13map_to_vectorEv
Line
Count
Source
148
83
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
83
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
247
        for (auto it : ordered_map) {
151
247
            pair_vector.emplace_back(it.second, it.first);
152
247
        }
153
83
        return pair_vector;
154
83
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE13map_to_vectorEv
Line
Count
Source
148
83
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
83
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
250
        for (auto it : ordered_map) {
151
250
            pair_vector.emplace_back(it.second, it.first);
152
250
        }
153
83
        return pair_vector;
154
83
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE13map_to_vectorEv
Line
Count
Source
148
79
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
79
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
235
        for (auto it : ordered_map) {
151
235
            pair_vector.emplace_back(it.second, it.first);
152
235
        }
153
79
        return pair_vector;
154
79
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE13map_to_vectorEv
Line
Count
Source
148
79
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
79
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
235
        for (auto it : ordered_map) {
151
235
            pair_vector.emplace_back(it.second, it.first);
152
235
        }
153
79
        return pair_vector;
154
79
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE13map_to_vectorEv
Line
Count
Source
148
84
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
84
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
164
        for (auto it : ordered_map) {
151
164
            pair_vector.emplace_back(it.second, it.first);
152
164
        }
153
84
        return pair_vector;
154
84
    }
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE13map_to_vectorEv
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE13map_to_vectorEv
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE13map_to_vectorEv
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE13map_to_vectorB5cxx11Ev
Line
Count
Source
148
177
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
177
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
1.28k
        for (auto it : ordered_map) {
151
1.28k
            pair_vector.emplace_back(it.second, it.first);
152
1.28k
        }
153
177
        return pair_vector;
154
177
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE13map_to_vectorEv
Line
Count
Source
148
159
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
159
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
377
        for (auto it : ordered_map) {
151
377
            pair_vector.emplace_back(it.second, it.first);
152
377
        }
153
159
        return pair_vector;
154
159
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE13map_to_vectorEv
Line
Count
Source
148
159
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
159
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
375
        for (auto it : ordered_map) {
151
375
            pair_vector.emplace_back(it.second, it.first);
152
375
        }
153
159
        return pair_vector;
154
159
    }
155
156
private:
157
    size_t max_num_buckets = BUCKET_NUM_INIT_VALUE;
158
    std::map<typename PrimitiveTypeTraits<T>::CppType, size_t> ordered_map;
159
};
160
161
template <typename Data, bool has_input_param>
162
class AggregateFunctionHistogram final
163
        : public IAggregateFunctionDataHelper<Data,
164
                                              AggregateFunctionHistogram<Data, has_input_param>>,
165
          VarargsExpression,
166
          NotNullableAggregateFunction {
167
public:
168
    AggregateFunctionHistogram() = default;
169
    AggregateFunctionHistogram(const DataTypes& argument_types_)
170
876
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
876
                      argument_types_),
172
876
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
12
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
12
                      argument_types_),
172
12
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
12
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
12
                      argument_types_),
172
12
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
5
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
5
                      argument_types_),
172
5
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
12
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
12
                      argument_types_),
172
12
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
12
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
12
                      argument_types_),
172
12
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
8
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
8
                      argument_types_),
172
8
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
8
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
8
                      argument_types_),
172
8
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
18
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
18
                      argument_types_),
172
18
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Unexecuted instantiation: _ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Unexecuted instantiation: _ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
43
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
43
                      argument_types_),
172
43
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
19
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
19
                      argument_types_),
172
19
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
19
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
19
                      argument_types_),
172
19
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
4
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
4
                      argument_types_),
172
4
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
20
                      argument_types_),
172
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
20
                      argument_types_),
172
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
449
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
449
                      argument_types_),
172
449
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
21
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
21
                      argument_types_),
172
21
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
20
                      argument_types_),
172
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
20
                      argument_types_),
172
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
20
                      argument_types_),
172
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
19
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
19
                      argument_types_),
172
19
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Unexecuted instantiation: _ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Unexecuted instantiation: _ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
39
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
39
                      argument_types_),
172
39
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
38
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
38
                      argument_types_),
172
38
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
170
38
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
38
                      argument_types_),
172
38
              _argument_type(argument_types_[0]) {}
173
174
30
    std::string get_name() const override { return "histogram"; }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE8get_nameB5cxx11Ev
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE8get_nameB5cxx11Ev
Line
Count
Source
174
20
    std::string get_name() const override { return "histogram"; }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE8get_nameB5cxx11Ev
Line
Count
Source
174
10
    std::string get_name() const override { return "histogram"; }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE8get_nameB5cxx11Ev
175
176
811
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE15get_return_typeEv
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE15get_return_typeEv
Line
Count
Source
176
22
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE15get_return_typeEv
Line
Count
Source
176
22
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE15get_return_typeEv
Line
Count
Source
176
8
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE15get_return_typeEv
Line
Count
Source
176
22
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE15get_return_typeEv
Line
Count
Source
176
22
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE15get_return_typeEv
Line
Count
Source
176
14
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE15get_return_typeEv
Line
Count
Source
176
14
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE15get_return_typeEv
Line
Count
Source
176
36
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE15get_return_typeEv
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE15get_return_typeEv
Line
Count
Source
176
84
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE15get_return_typeEv
Line
Count
Source
176
36
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE15get_return_typeEv
Line
Count
Source
176
36
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE15get_return_typeEv
Line
Count
Source
176
8
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE15get_return_typeEv
Line
Count
Source
176
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE15get_return_typeEv
Line
Count
Source
176
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE15get_return_typeEv
Line
Count
Source
176
60
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE15get_return_typeEv
Line
Count
Source
176
43
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE15get_return_typeEv
Line
Count
Source
176
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE15get_return_typeEv
Line
Count
Source
176
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE15get_return_typeEv
Line
Count
Source
176
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE15get_return_typeEv
Line
Count
Source
176
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE15get_return_typeEv
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE15get_return_typeEv
Line
Count
Source
176
64
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE15get_return_typeEv
Line
Count
Source
176
64
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE15get_return_typeEv
Line
Count
Source
176
64
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
177
178
    void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num,
179
6.09k
             Arena&) const override {
180
6.09k
        if constexpr (has_input_param) {
181
4.40k
            Int32 input_max_num_buckets =
182
4.40k
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
4.40k
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
4.40k
            this->data(place).set_parameters(input_max_num_buckets);
190
4.40k
        } else {
191
1.69k
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
1.69k
        }
193
194
2.40k
        if constexpr (is_string_type(Data::Ptype)) {
195
2.40k
            this->data(place).add(
196
2.40k
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
2.40k
                            .get_data_at(row_num));
198
3.68k
        } else {
199
3.68k
            this->data(place).add(
200
3.68k
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
3.68k
                            *columns[0])
202
3.68k
                            .get_data()[row_num]);
203
3.68k
        }
204
6.09k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
239
             Arena&) const override {
180
239
        if constexpr (has_input_param) {
181
239
            Int32 input_max_num_buckets =
182
239
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
239
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
239
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
239
        } else {
199
239
            this->data(place).add(
200
239
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
239
                            *columns[0])
202
239
                            .get_data()[row_num]);
203
239
        }
204
239
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
251
             Arena&) const override {
180
251
        if constexpr (has_input_param) {
181
251
            Int32 input_max_num_buckets =
182
251
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
251
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
251
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
251
        } else {
199
251
            this->data(place).add(
200
251
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
251
                            *columns[0])
202
251
                            .get_data()[row_num]);
203
251
        }
204
251
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
215
             Arena&) const override {
180
215
        if constexpr (has_input_param) {
181
215
            Int32 input_max_num_buckets =
182
215
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
215
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
215
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
215
        } else {
199
215
            this->data(place).add(
200
215
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
215
                            *columns[0])
202
215
                            .get_data()[row_num]);
203
215
        }
204
215
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
239
             Arena&) const override {
180
239
        if constexpr (has_input_param) {
181
239
            Int32 input_max_num_buckets =
182
239
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
239
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
239
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
239
        } else {
199
239
            this->data(place).add(
200
239
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
239
                            *columns[0])
202
239
                            .get_data()[row_num]);
203
239
        }
204
239
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
239
             Arena&) const override {
180
239
        if constexpr (has_input_param) {
181
239
            Int32 input_max_num_buckets =
182
239
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
239
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
239
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
239
        } else {
199
239
            this->data(place).add(
200
239
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
239
                            *columns[0])
202
239
                            .get_data()[row_num]);
203
239
        }
204
239
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
224
             Arena&) const override {
180
224
        if constexpr (has_input_param) {
181
224
            Int32 input_max_num_buckets =
182
224
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
224
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
224
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
224
        } else {
199
224
            this->data(place).add(
200
224
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
224
                            *columns[0])
202
224
                            .get_data()[row_num]);
203
224
        }
204
224
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
224
             Arena&) const override {
180
224
        if constexpr (has_input_param) {
181
224
            Int32 input_max_num_buckets =
182
224
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
224
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
224
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
224
        } else {
199
224
            this->data(place).add(
200
224
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
224
                            *columns[0])
202
224
                            .get_data()[row_num]);
203
224
        }
204
224
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
63
             Arena&) const override {
180
63
        if constexpr (has_input_param) {
181
63
            Int32 input_max_num_buckets =
182
63
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
63
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
63
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
63
        } else {
199
63
            this->data(place).add(
200
63
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
63
                            *columns[0])
202
63
                            .get_data()[row_num]);
203
63
        }
204
63
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
2.18k
             Arena&) const override {
180
2.18k
        if constexpr (has_input_param) {
181
2.18k
            Int32 input_max_num_buckets =
182
2.18k
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
2.18k
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
2.18k
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
2.18k
        if constexpr (is_string_type(Data::Ptype)) {
195
2.18k
            this->data(place).add(
196
2.18k
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
2.18k
                            .get_data_at(row_num));
198
        } else {
199
            this->data(place).add(
200
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
                            *columns[0])
202
                            .get_data()[row_num]);
203
        }
204
2.18k
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
263
             Arena&) const override {
180
263
        if constexpr (has_input_param) {
181
263
            Int32 input_max_num_buckets =
182
263
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
263
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
263
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
263
        } else {
199
263
            this->data(place).add(
200
263
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
263
                            *columns[0])
202
263
                            .get_data()[row_num]);
203
263
        }
204
263
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
263
             Arena&) const override {
180
263
        if constexpr (has_input_param) {
181
263
            Int32 input_max_num_buckets =
182
263
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
263
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
0
                throw doris::Exception(
185
0
                        ErrorCode::INVALID_ARGUMENT,
186
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
0
                        input_max_num_buckets, row_num);
188
0
            }
189
263
            this->data(place).set_parameters(input_max_num_buckets);
190
        } else {
191
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
263
        } else {
199
263
            this->data(place).add(
200
263
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
263
                            *columns[0])
202
263
                            .get_data()[row_num]);
203
263
        }
204
263
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
15
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
15
        } else {
191
15
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
15
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
15
        } else {
199
15
            this->data(place).add(
200
15
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
15
                            *columns[0])
202
15
                            .get_data()[row_num]);
203
15
        }
204
15
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
108
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
108
        } else {
191
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
108
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
108
        } else {
199
108
            this->data(place).add(
200
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
108
                            *columns[0])
202
108
                            .get_data()[row_num]);
203
108
        }
204
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
108
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
108
        } else {
191
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
108
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
108
        } else {
199
108
            this->data(place).add(
200
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
108
                            *columns[0])
202
108
                            .get_data()[row_num]);
203
108
        }
204
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
248
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
248
        } else {
191
248
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
248
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
248
        } else {
199
248
            this->data(place).add(
200
248
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
248
                            *columns[0])
202
248
                            .get_data()[row_num]);
203
248
        }
204
248
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
123
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
123
        } else {
191
123
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
123
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
123
        } else {
199
123
            this->data(place).add(
200
123
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
123
                            *columns[0])
202
123
                            .get_data()[row_num]);
203
123
        }
204
123
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
108
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
108
        } else {
191
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
108
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
108
        } else {
199
108
            this->data(place).add(
200
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
108
                            *columns[0])
202
108
                            .get_data()[row_num]);
203
108
        }
204
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
108
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
108
        } else {
191
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
108
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
108
        } else {
199
108
            this->data(place).add(
200
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
108
                            *columns[0])
202
108
                            .get_data()[row_num]);
203
108
        }
204
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
108
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
108
        } else {
191
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
108
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
108
        } else {
199
108
            this->data(place).add(
200
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
108
                            *columns[0])
202
108
                            .get_data()[row_num]);
203
108
        }
204
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
108
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
108
        } else {
191
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
108
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
108
        } else {
199
108
            this->data(place).add(
200
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
108
                            *columns[0])
202
108
                            .get_data()[row_num]);
203
108
        }
204
108
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
226
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
226
        } else {
191
226
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
226
        }
193
194
226
        if constexpr (is_string_type(Data::Ptype)) {
195
226
            this->data(place).add(
196
226
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
226
                            .get_data_at(row_num));
198
        } else {
199
            this->data(place).add(
200
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
                            *columns[0])
202
                            .get_data()[row_num]);
203
        }
204
226
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
216
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
216
        } else {
191
216
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
216
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
216
        } else {
199
216
            this->data(place).add(
200
216
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
216
                            *columns[0])
202
216
                            .get_data()[row_num]);
203
216
        }
204
216
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
216
             Arena&) const override {
180
        if constexpr (has_input_param) {
181
            Int32 input_max_num_buckets =
182
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
183
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
184
                throw doris::Exception(
185
                        ErrorCode::INVALID_ARGUMENT,
186
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
187
                        input_max_num_buckets, row_num);
188
            }
189
            this->data(place).set_parameters(input_max_num_buckets);
190
216
        } else {
191
216
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
216
        }
193
194
        if constexpr (is_string_type(Data::Ptype)) {
195
            this->data(place).add(
196
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
197
                            .get_data_at(row_num));
198
216
        } else {
199
216
            this->data(place).add(
200
216
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
216
                            *columns[0])
202
216
                            .get_data()[row_num]);
203
216
        }
204
216
    }
205
206
29
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE5resetEPc
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE5resetEPc
Line
Count
Source
206
26
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE5resetEPc
Line
Count
Source
206
3
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE5resetEPc
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE5resetEPc
207
208
    void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs,
209
1.28k
               Arena&) const override {
210
1.28k
        this->data(place).merge(this->data(rhs));
211
1.28k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
8
               Arena&) const override {
210
8
        this->data(place).merge(this->data(rhs));
211
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
8
               Arena&) const override {
210
8
        this->data(place).merge(this->data(rhs));
211
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
5
               Arena&) const override {
210
5
        this->data(place).merge(this->data(rhs));
211
5
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
8
               Arena&) const override {
210
8
        this->data(place).merge(this->data(rhs));
211
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
8
               Arena&) const override {
210
8
        this->data(place).merge(this->data(rhs));
211
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
4
               Arena&) const override {
210
4
        this->data(place).merge(this->data(rhs));
211
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
4
               Arena&) const override {
210
4
        this->data(place).merge(this->data(rhs));
211
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
10
               Arena&) const override {
210
10
        this->data(place).merge(this->data(rhs));
211
10
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
28
               Arena&) const override {
210
28
        this->data(place).merge(this->data(rhs));
211
28
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
11
               Arena&) const override {
210
11
        this->data(place).merge(this->data(rhs));
211
11
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
11
               Arena&) const override {
210
11
        this->data(place).merge(this->data(rhs));
211
11
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
4
               Arena&) const override {
210
4
        this->data(place).merge(this->data(rhs));
211
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
75
               Arena&) const override {
210
75
        this->data(place).merge(this->data(rhs));
211
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
75
               Arena&) const override {
210
75
        this->data(place).merge(this->data(rhs));
211
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
204
               Arena&) const override {
210
204
        this->data(place).merge(this->data(rhs));
211
204
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
75
               Arena&) const override {
210
75
        this->data(place).merge(this->data(rhs));
211
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
75
               Arena&) const override {
210
75
        this->data(place).merge(this->data(rhs));
211
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
75
               Arena&) const override {
210
75
        this->data(place).merge(this->data(rhs));
211
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
75
               Arena&) const override {
210
75
        this->data(place).merge(this->data(rhs));
211
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
74
               Arena&) const override {
210
74
        this->data(place).merge(this->data(rhs));
211
74
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
149
               Arena&) const override {
210
149
        this->data(place).merge(this->data(rhs));
211
149
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
148
               Arena&) const override {
210
148
        this->data(place).merge(this->data(rhs));
211
148
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
148
               Arena&) const override {
210
148
        this->data(place).merge(this->data(rhs));
211
148
    }
212
213
1.32k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
1.32k
        this->data(place).write(buf);
215
1.32k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
8
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
8
        this->data(place).write(buf);
215
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
8
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
8
        this->data(place).write(buf);
215
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
5
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
5
        this->data(place).write(buf);
215
5
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
8
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
8
        this->data(place).write(buf);
215
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
8
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
8
        this->data(place).write(buf);
215
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
4
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
4
        this->data(place).write(buf);
215
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
4
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
4
        this->data(place).write(buf);
215
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
10
        this->data(place).write(buf);
215
10
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
28
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
28
        this->data(place).write(buf);
215
28
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
11
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
11
        this->data(place).write(buf);
215
11
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
11
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
11
        this->data(place).write(buf);
215
11
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
4
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
4
        this->data(place).write(buf);
215
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
75
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
75
        this->data(place).write(buf);
215
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
75
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
75
        this->data(place).write(buf);
215
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
243
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
243
        this->data(place).write(buf);
215
243
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
75
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
75
        this->data(place).write(buf);
215
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
75
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
75
        this->data(place).write(buf);
215
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
75
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
75
        this->data(place).write(buf);
215
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
75
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
75
        this->data(place).write(buf);
215
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
74
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
74
        this->data(place).write(buf);
215
74
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
149
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
149
        this->data(place).write(buf);
215
149
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
148
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
148
        this->data(place).write(buf);
215
148
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
148
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
148
        this->data(place).write(buf);
215
148
    }
216
217
    void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf,
218
1.28k
                     Arena&) const override {
219
1.28k
        this->data(place).read(buf);
220
1.28k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
8
                     Arena&) const override {
219
8
        this->data(place).read(buf);
220
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
8
                     Arena&) const override {
219
8
        this->data(place).read(buf);
220
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
5
                     Arena&) const override {
219
5
        this->data(place).read(buf);
220
5
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
8
                     Arena&) const override {
219
8
        this->data(place).read(buf);
220
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
8
                     Arena&) const override {
219
8
        this->data(place).read(buf);
220
8
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
4
                     Arena&) const override {
219
4
        this->data(place).read(buf);
220
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
4
                     Arena&) const override {
219
4
        this->data(place).read(buf);
220
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
10
                     Arena&) const override {
219
10
        this->data(place).read(buf);
220
10
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
28
                     Arena&) const override {
219
28
        this->data(place).read(buf);
220
28
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
11
                     Arena&) const override {
219
11
        this->data(place).read(buf);
220
11
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
11
                     Arena&) const override {
219
11
        this->data(place).read(buf);
220
11
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
4
                     Arena&) const override {
219
4
        this->data(place).read(buf);
220
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
75
                     Arena&) const override {
219
75
        this->data(place).read(buf);
220
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
75
                     Arena&) const override {
219
75
        this->data(place).read(buf);
220
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
204
                     Arena&) const override {
219
204
        this->data(place).read(buf);
220
204
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
75
                     Arena&) const override {
219
75
        this->data(place).read(buf);
220
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
75
                     Arena&) const override {
219
75
        this->data(place).read(buf);
220
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
75
                     Arena&) const override {
219
75
        this->data(place).read(buf);
220
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
75
                     Arena&) const override {
219
75
        this->data(place).read(buf);
220
75
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
74
                     Arena&) const override {
219
74
        this->data(place).read(buf);
220
74
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
149
                     Arena&) const override {
219
149
        this->data(place).read(buf);
220
149
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
148
                     Arena&) const override {
219
148
        this->data(place).read(buf);
220
148
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
147
                     Arena&) const override {
219
147
        this->data(place).read(buf);
220
147
    }
221
222
700
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
700
        const std::string bucket_json = this->data(place).get(_argument_type);
224
700
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
700
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
9
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
9
        const std::string bucket_json = this->data(place).get(_argument_type);
224
9
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
9
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
9
        const std::string bucket_json = this->data(place).get(_argument_type);
224
9
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
4
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
4
        const std::string bucket_json = this->data(place).get(_argument_type);
224
4
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
9
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
9
        const std::string bucket_json = this->data(place).get(_argument_type);
224
9
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
9
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
9
        const std::string bucket_json = this->data(place).get(_argument_type);
224
9
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
7
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
7
        const std::string bucket_json = this->data(place).get(_argument_type);
224
7
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
7
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
7
        const std::string bucket_json = this->data(place).get(_argument_type);
224
7
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
12
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
12
        const std::string bucket_json = this->data(place).get(_argument_type);
224
12
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
12
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
29
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
29
        const std::string bucket_json = this->data(place).get(_argument_type);
224
29
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
29
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
14
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
14
        const std::string bucket_json = this->data(place).get(_argument_type);
224
14
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
14
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
14
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
14
        const std::string bucket_json = this->data(place).get(_argument_type);
224
14
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
14
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
2
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
2
        const std::string bucket_json = this->data(place).get(_argument_type);
224
2
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
2
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
39
        const std::string bucket_json = this->data(place).get(_argument_type);
224
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
39
        const std::string bucket_json = this->data(place).get(_argument_type);
224
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
63
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
63
        const std::string bucket_json = this->data(place).get(_argument_type);
224
63
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
63
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
56
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
56
        const std::string bucket_json = this->data(place).get(_argument_type);
224
56
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
56
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
39
        const std::string bucket_json = this->data(place).get(_argument_type);
224
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
39
        const std::string bucket_json = this->data(place).get(_argument_type);
224
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
39
        const std::string bucket_json = this->data(place).get(_argument_type);
224
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
37
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
37
        const std::string bucket_json = this->data(place).get(_argument_type);
224
37
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
37
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
76
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
76
        const std::string bucket_json = this->data(place).get(_argument_type);
224
76
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
76
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
74
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
74
        const std::string bucket_json = this->data(place).get(_argument_type);
224
74
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
74
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
222
74
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
223
74
        const std::string bucket_json = this->data(place).get(_argument_type);
224
74
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
225
74
    }
226
227
private:
228
    DataTypePtr _argument_type;
229
};
230
231
} // namespace doris