Coverage Report

Created: 2026-04-22 13:18

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.08k
    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
344
    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
346
    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
169
    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
113
            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
114
            it->second = it->second + number;
68
3.56k
        } else {
69
3.56k
            ordered_map.insert({value, number});
70
3.56k
        }
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
346
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
346
        auto it = ordered_map.find(value);
66
346
        if (it != ordered_map.end()) {
67
7
            it->second = it->second + number;
68
339
        } else {
69
339
            ordered_map.insert({value, number});
70
339
        }
71
346
    }
_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
20
            it->second = it->second + number;
68
443
        } else {
69
443
            ordered_map.insert({value, number});
70
443
        }
71
463
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE3addERKlRKm
Line
Count
Source
64
361
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
361
        auto it = ordered_map.find(value);
66
361
        if (it != ordered_map.end()) {
67
8
            it->second = it->second + number;
68
353
        } else {
69
353
            ordered_map.insert({value, number});
70
353
        }
71
361
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE3addERKnRKm
Line
Count
Source
64
346
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
346
        auto it = ordered_map.find(value);
66
346
        if (it != ordered_map.end()) {
67
4
            it->second = it->second + number;
68
342
        } else {
69
342
            ordered_map.insert({value, number});
70
342
        }
71
346
    }
_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
169
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
169
        auto it = ordered_map.find(value);
66
169
        if (it != ordered_map.end()) {
67
8
            it->second = it->second + number;
68
161
        } else {
69
161
            ordered_map.insert({value, number});
70
161
        }
71
169
    }
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
20
            it->second = it->second + number;
68
459
        } else {
69
459
            ordered_map.insert({value, number});
70
459
        }
71
479
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE3addERKNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEERKm
Line
Count
Source
64
478
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
65
478
        auto it = ordered_map.find(value);
66
478
        if (it != ordered_map.end()) {
67
21
            it->second = it->second + number;
68
457
        } else {
69
457
            ordered_map.insert({value, number});
70
457
        }
71
478
    }
72
73
1.26k
    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.26k
        if (!rhs.max_num_buckets) {
77
75
            return;
78
75
        }
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
3
    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
3
        if (!rhs.max_num_buckets) {
77
1
            return;
78
1
        }
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
82
    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
82
        if (!rhs.max_num_buckets) {
77
6
            return;
78
6
        }
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
82
    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
82
        if (!rhs.max_num_buckets) {
77
5
            return;
78
5
        }
79
80
77
        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
77
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE5mergeERKS2_
Line
Count
Source
73
208
    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
208
        if (!rhs.max_num_buckets) {
77
14
            return;
78
14
        }
79
80
194
        max_num_buckets = rhs.max_num_buckets;
81
82
354
        for (auto rhs_it : rhs.ordered_map) {
83
354
            auto lhs_it = ordered_map.find(rhs_it.first);
84
354
            if (lhs_it != ordered_map.end()) {
85
162
                lhs_it->second += rhs_it.second;
86
192
            } else {
87
192
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
192
            }
89
354
        }
90
194
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE5mergeERKS2_
Line
Count
Source
73
82
    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
82
        if (!rhs.max_num_buckets) {
77
6
            return;
78
6
        }
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
82
    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
82
        if (!rhs.max_num_buckets) {
77
6
            return;
78
6
        }
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
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
165
        for (auto rhs_it : rhs.ordered_map) {
83
165
            auto lhs_it = ordered_map.find(rhs_it.first);
84
165
            if (lhs_it != ordered_map.end()) {
85
2
                lhs_it->second += rhs_it.second;
86
163
            } else {
87
163
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
163
            }
89
165
        }
90
78
    }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE5mergeERKS2_
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE5mergeERKS2_
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE5mergeERKS2_
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE5mergeERKS2_
Line
Count
Source
73
173
    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
173
        if (!rhs.max_num_buckets) {
77
4
            return;
78
4
        }
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.09k
                lhs_it->second += rhs_it.second;
86
1.09k
            } 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
158
    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
158
        if (!rhs.max_num_buckets) {
77
9
            return;
78
9
        }
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
101
                lhs_it->second += rhs_it.second;
86
274
            } else {
87
274
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
274
            }
89
375
        }
90
149
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE5mergeERKS2_
Line
Count
Source
73
158
    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
158
        if (!rhs.max_num_buckets) {
77
9
            return;
78
9
        }
79
80
149
        max_num_buckets = rhs.max_num_buckets;
81
82
374
        for (auto rhs_it : rhs.ordered_map) {
83
374
            auto lhs_it = ordered_map.find(rhs_it.first);
84
374
            if (lhs_it != ordered_map.end()) {
85
101
                lhs_it->second += rhs_it.second;
86
273
            } else {
87
273
                ordered_map.insert({rhs_it.first, rhs_it.second});
88
273
            }
89
374
        }
90
149
    }
91
92
1.30k
    void write(BufferWritable& buf) const {
93
1.30k
        buf.write_binary(max_num_buckets);
94
1.30k
        auto element_number = (size_t)ordered_map.size();
95
1.30k
        buf.write_binary(element_number);
96
97
1.30k
        auto pair_vector = map_to_vector();
98
99
5.37k
        for (auto i = 0; i < element_number; i++) {
100
4.06k
            auto element = pair_vector[i];
101
4.06k
            buf.write_binary(element.second);
102
4.06k
            buf.write_binary(element.first);
103
4.06k
        }
104
1.30k
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE5writeERNS_14BufferWritableE
Line
Count
Source
92
3
    void write(BufferWritable& buf) const {
93
3
        buf.write_binary(max_num_buckets);
94
3
        auto element_number = (size_t)ordered_map.size();
95
3
        buf.write_binary(element_number);
96
97
3
        auto pair_vector = map_to_vector();
98
99
7
        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
3
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE5writeERNS_14BufferWritableE
Line
Count
Source
92
82
    void write(BufferWritable& buf) const {
93
82
        buf.write_binary(max_num_buckets);
94
82
        auto element_number = (size_t)ordered_map.size();
95
82
        buf.write_binary(element_number);
96
97
82
        auto pair_vector = map_to_vector();
98
99
329
        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
82
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE5writeERNS_14BufferWritableE
Line
Count
Source
92
82
    void write(BufferWritable& buf) const {
93
82
        buf.write_binary(max_num_buckets);
94
82
        auto element_number = (size_t)ordered_map.size();
95
82
        buf.write_binary(element_number);
96
97
82
        auto pair_vector = map_to_vector();
98
99
340
        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
82
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE5writeERNS_14BufferWritableE
Line
Count
Source
92
247
    void write(BufferWritable& buf) const {
93
247
        buf.write_binary(max_num_buckets);
94
247
        auto element_number = (size_t)ordered_map.size();
95
247
        buf.write_binary(element_number);
96
97
247
        auto pair_vector = map_to_vector();
98
99
640
        for (auto i = 0; i < element_number; i++) {
100
393
            auto element = pair_vector[i];
101
393
            buf.write_binary(element.second);
102
393
            buf.write_binary(element.first);
103
393
        }
104
247
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE
Line
Count
Source
92
82
    void write(BufferWritable& buf) const {
93
82
        buf.write_binary(max_num_buckets);
94
82
        auto element_number = (size_t)ordered_map.size();
95
82
        buf.write_binary(element_number);
96
97
82
        auto pair_vector = map_to_vector();
98
99
329
        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
82
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE
Line
Count
Source
92
82
    void write(BufferWritable& buf) const {
93
82
        buf.write_binary(max_num_buckets);
94
82
        auto element_number = (size_t)ordered_map.size();
95
82
        buf.write_binary(element_number);
96
97
82
        auto pair_vector = map_to_vector();
98
99
332
        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
82
    }
_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
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
248
        for (auto i = 0; i < element_number; i++) {
100
165
            auto element = pair_vector[i];
101
165
            buf.write_binary(element.second);
102
165
            buf.write_binary(element.first);
103
165
        }
104
83
    }
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE5writeERNS_14BufferWritableE
Line
Count
Source
92
173
    void write(BufferWritable& buf) const {
93
173
        buf.write_binary(max_num_buckets);
94
173
        auto element_number = (size_t)ordered_map.size();
95
173
        buf.write_binary(element_number);
96
97
173
        auto pair_vector = map_to_vector();
98
99
1.45k
        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
173
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE5writeERNS_14BufferWritableE
Line
Count
Source
92
158
    void write(BufferWritable& buf) const {
93
158
        buf.write_binary(max_num_buckets);
94
158
        auto element_number = (size_t)ordered_map.size();
95
158
        buf.write_binary(element_number);
96
97
158
        auto pair_vector = map_to_vector();
98
99
533
        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
158
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE5writeERNS_14BufferWritableE
Line
Count
Source
92
158
    void write(BufferWritable& buf) const {
93
158
        buf.write_binary(max_num_buckets);
94
158
        auto element_number = (size_t)ordered_map.size();
95
158
        buf.write_binary(element_number);
96
97
158
        auto pair_vector = map_to_vector();
98
99
532
        for (auto i = 0; i < element_number; i++) {
100
374
            auto element = pair_vector[i];
101
374
            buf.write_binary(element.second);
102
374
            buf.write_binary(element.first);
103
374
        }
104
158
    }
105
106
1.26k
    void read(BufferReadable& buf) {
107
1.26k
        buf.read_binary(max_num_buckets);
108
109
1.26k
        size_t element_number = 0;
110
1.26k
        buf.read_binary(element_number);
111
112
1.26k
        ordered_map.clear();
113
1.26k
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
5.29k
        for (auto i = 0; i < element_number; i++) {
115
4.02k
            buf.read_binary(element.first);
116
4.02k
            buf.read_binary(element.second);
117
4.02k
            ordered_map.insert(element);
118
4.02k
        }
119
1.26k
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE4readERNS_14BufferReadableE
Line
Count
Source
106
3
    void read(BufferReadable& buf) {
107
3
        buf.read_binary(max_num_buckets);
108
109
3
        size_t element_number = 0;
110
3
        buf.read_binary(element_number);
111
112
3
        ordered_map.clear();
113
3
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
7
        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
3
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE4readERNS_14BufferReadableE
Line
Count
Source
106
82
    void read(BufferReadable& buf) {
107
82
        buf.read_binary(max_num_buckets);
108
109
82
        size_t element_number = 0;
110
82
        buf.read_binary(element_number);
111
112
82
        ordered_map.clear();
113
82
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
329
        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
82
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE4readERNS_14BufferReadableE
Line
Count
Source
106
82
    void read(BufferReadable& buf) {
107
82
        buf.read_binary(max_num_buckets);
108
109
82
        size_t element_number = 0;
110
82
        buf.read_binary(element_number);
111
112
82
        ordered_map.clear();
113
82
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
340
        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
82
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE4readERNS_14BufferReadableE
Line
Count
Source
106
208
    void read(BufferReadable& buf) {
107
208
        buf.read_binary(max_num_buckets);
108
109
208
        size_t element_number = 0;
110
208
        buf.read_binary(element_number);
111
112
208
        ordered_map.clear();
113
208
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
562
        for (auto i = 0; i < element_number; i++) {
115
354
            buf.read_binary(element.first);
116
354
            buf.read_binary(element.second);
117
354
            ordered_map.insert(element);
118
354
        }
119
208
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
106
82
    void read(BufferReadable& buf) {
107
82
        buf.read_binary(max_num_buckets);
108
109
82
        size_t element_number = 0;
110
82
        buf.read_binary(element_number);
111
112
82
        ordered_map.clear();
113
82
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
329
        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
82
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
106
82
    void read(BufferReadable& buf) {
107
82
        buf.read_binary(max_num_buckets);
108
109
82
        size_t element_number = 0;
110
82
        buf.read_binary(element_number);
111
112
82
        ordered_map.clear();
113
82
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
332
        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
82
    }
_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
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
248
        for (auto i = 0; i < element_number; i++) {
115
165
            buf.read_binary(element.first);
116
165
            buf.read_binary(element.second);
117
165
            ordered_map.insert(element);
118
165
        }
119
83
    }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE4readERNS_14BufferReadableE
Line
Count
Source
106
173
    void read(BufferReadable& buf) {
107
173
        buf.read_binary(max_num_buckets);
108
109
173
        size_t element_number = 0;
110
173
        buf.read_binary(element_number);
111
112
173
        ordered_map.clear();
113
173
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
1.45k
        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
173
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE4readERNS_14BufferReadableE
Line
Count
Source
106
157
    void read(BufferReadable& buf) {
107
157
        buf.read_binary(max_num_buckets);
108
109
157
        size_t element_number = 0;
110
157
        buf.read_binary(element_number);
111
112
157
        ordered_map.clear();
113
157
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
114
531
        for (auto i = 0; i < element_number; i++) {
115
374
            buf.read_binary(element.first);
116
374
            buf.read_binary(element.second);
117
374
            ordered_map.insert(element);
118
374
        }
119
157
    }
_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
532
        for (auto i = 0; i < element_number; i++) {
115
374
            buf.read_binary(element.first);
116
374
            buf.read_binary(element.second);
117
374
            ordered_map.insert(element);
118
374
        }
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.30k
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
1.30k
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
4.06k
        for (auto it : ordered_map) {
151
4.06k
            pair_vector.emplace_back(it.second, it.first);
152
4.06k
        }
153
1.30k
        return pair_vector;
154
1.30k
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE13map_to_vectorEv
Line
Count
Source
148
3
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
3
        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
3
        return pair_vector;
154
3
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE13map_to_vectorEv
Line
Count
Source
148
82
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
82
        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
82
        return pair_vector;
154
82
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE13map_to_vectorEv
Line
Count
Source
148
82
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
82
        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
82
        return pair_vector;
154
82
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE13map_to_vectorEv
Line
Count
Source
148
247
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
247
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
393
        for (auto it : ordered_map) {
151
393
            pair_vector.emplace_back(it.second, it.first);
152
393
        }
153
247
        return pair_vector;
154
247
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE13map_to_vectorEv
Line
Count
Source
148
82
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
82
        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
82
        return pair_vector;
154
82
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE13map_to_vectorEv
Line
Count
Source
148
82
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
82
        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
82
        return pair_vector;
154
82
    }
_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
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
165
        for (auto it : ordered_map) {
151
165
            pair_vector.emplace_back(it.second, it.first);
152
165
        }
153
83
        return pair_vector;
154
83
    }
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
173
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
173
        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
173
        return pair_vector;
154
173
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE13map_to_vectorEv
Line
Count
Source
148
158
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
158
        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
158
        return pair_vector;
154
158
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE13map_to_vectorEv
Line
Count
Source
148
158
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
149
158
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
150
374
        for (auto it : ordered_map) {
151
374
            pair_vector.emplace_back(it.second, it.first);
152
374
        }
153
158
        return pair_vector;
154
158
    }
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
763
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
763
                      argument_types_),
172
763
              _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
336
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
171
336
                      argument_types_),
172
336
              _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
29
    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
9
    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.08k
             Arena&) const override {
180
6.08k
        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.68k
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
1.68k
        }
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.67k
        } else {
199
3.67k
            this->data(place).add(
200
3.67k
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
3.67k
                            *columns[0])
202
3.67k
                            .get_data()[row_num]);
203
3.67k
        }
204
6.08k
    }
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
105
             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
105
        } else {
191
105
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
105
        }
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
105
        } else {
199
105
            this->data(place).add(
200
105
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
105
                            *columns[0])
202
105
                            .get_data()[row_num]);
203
105
        }
204
105
    }
_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
122
             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
122
        } else {
191
122
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
122
        }
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
122
        } else {
199
122
            this->data(place).add(
200
122
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
122
                            *columns[0])
202
122
                            .get_data()[row_num]);
203
122
        }
204
122
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
179
107
             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
107
        } else {
191
107
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
107
        }
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
107
        } else {
199
107
            this->data(place).add(
200
107
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
107
                            *columns[0])
202
107
                            .get_data()[row_num]);
203
107
        }
204
107
    }
_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
106
             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
106
        } else {
191
106
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
192
106
        }
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
106
        } else {
199
106
            this->data(place).add(
200
106
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
201
106
                            *columns[0])
202
106
                            .get_data()[row_num]);
203
106
        }
204
106
    }
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.26k
               Arena&) const override {
210
1.26k
        this->data(place).merge(this->data(rhs));
211
1.26k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
7
               Arena&) const override {
210
7
        this->data(place).merge(this->data(rhs));
211
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
7
               Arena&) const override {
210
7
        this->data(place).merge(this->data(rhs));
211
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
4
               Arena&) const override {
210
4
        this->data(place).merge(this->data(rhs));
211
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
7
               Arena&) const override {
210
7
        this->data(place).merge(this->data(rhs));
211
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
7
               Arena&) const override {
210
7
        this->data(place).merge(this->data(rhs));
211
7
    }
_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
9
               Arena&) const override {
210
9
        this->data(place).merge(this->data(rhs));
211
9
    }
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
24
               Arena&) const override {
210
24
        this->data(place).merge(this->data(rhs));
211
24
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
10
               Arena&) const override {
210
10
        this->data(place).merge(this->data(rhs));
211
10
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
10
               Arena&) const override {
210
10
        this->data(place).merge(this->data(rhs));
211
10
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
209
3
               Arena&) const override {
210
3
        this->data(place).merge(this->data(rhs));
211
3
    }
_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.30k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
1.30k
        this->data(place).write(buf);
215
1.30k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
7
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
7
        this->data(place).write(buf);
215
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
7
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
7
        this->data(place).write(buf);
215
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE9serializeEPKcRNS_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_13PrimitiveTypeE6EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
7
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
7
        this->data(place).write(buf);
215
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
7
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
7
        this->data(place).write(buf);
215
7
    }
_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
9
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
9
        this->data(place).write(buf);
215
9
    }
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
24
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
24
        this->data(place).write(buf);
215
24
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
10
        this->data(place).write(buf);
215
10
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
10
        this->data(place).write(buf);
215
10
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
213
3
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
214
3
        this->data(place).write(buf);
215
3
    }
_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.26k
                     Arena&) const override {
219
1.26k
        this->data(place).read(buf);
220
1.26k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
7
                     Arena&) const override {
219
7
        this->data(place).read(buf);
220
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
7
                     Arena&) const override {
219
7
        this->data(place).read(buf);
220
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
4
                     Arena&) const override {
219
4
        this->data(place).read(buf);
220
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
7
                     Arena&) const override {
219
7
        this->data(place).read(buf);
220
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
7
                     Arena&) const override {
219
7
        this->data(place).read(buf);
220
7
    }
_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
9
                     Arena&) const override {
219
9
        this->data(place).read(buf);
220
9
    }
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
24
                     Arena&) const override {
219
24
        this->data(place).read(buf);
220
24
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
10
                     Arena&) const override {
219
10
        this->data(place).read(buf);
220
10
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
10
                     Arena&) const override {
219
10
        this->data(place).read(buf);
220
10
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
3
                     Arena&) const override {
219
3
        this->data(place).read(buf);
220
3
    }
_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
147
                     Arena&) const override {
219
147
        this->data(place).read(buf);
220
147
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
218
148
                     Arena&) const override {
219
148
        this->data(place).read(buf);
220
148
    }
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