Coverage Report

Created: 2026-04-13 11:59

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
#include "util/io_helper.h"
39
40
namespace doris {} // namespace doris
41
42
namespace doris {
43
44
template <PrimitiveType T>
45
struct AggregateFunctionHistogramData {
46
    static constexpr auto Ptype = T;
47
    using ColVecType = typename PrimitiveTypeTraits<T>::ColumnType;
48
    const static size_t DEFAULT_BUCKET_NUM = 128;
49
    const static size_t BUCKET_NUM_INIT_VALUE = 0;
50
51
6.09k
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE14set_parametersEm
Line
Count
Source
51
15
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE14set_parametersEm
Line
Count
Source
51
347
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE14set_parametersEm
Line
Count
Source
51
359
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE14set_parametersEm
Line
Count
Source
51
463
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE14set_parametersEm
Line
Count
Source
51
362
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE14set_parametersEm
Line
Count
Source
51
347
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE14set_parametersEm
Line
Count
Source
51
332
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE14set_parametersEm
Line
Count
Source
51
332
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE14set_parametersEm
Line
Count
Source
51
171
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE14set_parametersEm
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE14set_parametersEm
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE14set_parametersEm
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE14set_parametersEm
Line
Count
Source
51
2.40k
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE14set_parametersEm
Line
Count
Source
51
479
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE14set_parametersEm
Line
Count
Source
51
479
    void set_parameters(size_t input_max_num_buckets) { max_num_buckets = input_max_num_buckets; }
52
53
29
    void reset() { ordered_map.clear(); }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE5resetEv
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE5resetEv
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE5resetEv
Line
Count
Source
53
26
    void reset() { ordered_map.clear(); }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE5resetEv
Line
Count
Source
53
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
54
55
2.40k
    void add(const StringRef& value, const UInt64& number = 1) {
56
2.40k
        std::string data = value.to_string();
57
2.40k
        auto it = ordered_map.find(data);
58
2.40k
        if (it != ordered_map.end()) {
59
107
            it->second = it->second + number;
60
2.29k
        } else {
61
2.29k
            ordered_map.insert({data, number});
62
2.29k
        }
63
2.40k
    }
64
65
3.68k
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
3.68k
        auto it = ordered_map.find(value);
67
3.68k
        if (it != ordered_map.end()) {
68
109
            it->second = it->second + number;
69
3.57k
        } else {
70
3.57k
            ordered_map.insert({value, number});
71
3.57k
        }
72
3.68k
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE3addERKhRKm
Line
Count
Source
65
15
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
15
        auto it = ordered_map.find(value);
67
15
        if (it != ordered_map.end()) {
68
10
            it->second = it->second + number;
69
10
        } else {
70
5
            ordered_map.insert({value, number});
71
5
        }
72
15
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE3addERKaRKm
Line
Count
Source
65
347
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
347
        auto it = ordered_map.find(value);
67
347
        if (it != ordered_map.end()) {
68
7
            it->second = it->second + number;
69
340
        } else {
70
340
            ordered_map.insert({value, number});
71
340
        }
72
347
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE3addERKsRKm
Line
Count
Source
65
359
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
359
        auto it = ordered_map.find(value);
67
359
        if (it != ordered_map.end()) {
68
6
            it->second = it->second + number;
69
353
        } else {
70
353
            ordered_map.insert({value, number});
71
353
        }
72
359
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE3addERKiRKm
Line
Count
Source
65
462
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
462
        auto it = ordered_map.find(value);
67
462
        if (it != ordered_map.end()) {
68
19
            it->second = it->second + number;
69
443
        } else {
70
443
            ordered_map.insert({value, number});
71
443
        }
72
462
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE3addERKlRKm
Line
Count
Source
65
362
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
362
        auto it = ordered_map.find(value);
67
362
        if (it != ordered_map.end()) {
68
8
            it->second = it->second + number;
69
354
        } else {
70
354
            ordered_map.insert({value, number});
71
354
        }
72
362
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE3addERKnRKm
Line
Count
Source
65
347
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
347
        auto it = ordered_map.find(value);
67
347
        if (it != ordered_map.end()) {
68
4
            it->second = it->second + number;
69
343
        } else {
70
343
            ordered_map.insert({value, number});
71
343
        }
72
347
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE3addERKfRKm
Line
Count
Source
65
332
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
332
        auto it = ordered_map.find(value);
67
332
        if (it != ordered_map.end()) {
68
4
            it->second = it->second + number;
69
328
        } else {
70
328
            ordered_map.insert({value, number});
71
328
        }
72
332
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE3addERKdRKm
Line
Count
Source
65
332
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
332
        auto it = ordered_map.find(value);
67
332
        if (it != ordered_map.end()) {
68
4
            it->second = it->second + number;
69
328
        } else {
70
328
            ordered_map.insert({value, number});
71
328
        }
72
332
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE3addERKNS_7DecimalIiEERKm
Line
Count
Source
65
171
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
171
        auto it = ordered_map.find(value);
67
171
        if (it != ordered_map.end()) {
68
8
            it->second = it->second + number;
69
163
        } else {
70
163
            ordered_map.insert({value, number});
71
163
        }
72
171
    }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE3addERKNS_7DecimalIlEERKm
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE3addERKNS_12Decimal128V3ERKm
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE3addERKNS_7DecimalIN4wide7integerILm256EiEEEERKm
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE3addERKNS_11DateV2ValueINS_15DateV2ValueTypeEEERKm
Line
Count
Source
65
479
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
479
        auto it = ordered_map.find(value);
67
479
        if (it != ordered_map.end()) {
68
18
            it->second = it->second + number;
69
461
        } else {
70
461
            ordered_map.insert({value, number});
71
461
        }
72
479
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE3addERKNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEERKm
Line
Count
Source
65
479
    void add(const typename PrimitiveTypeTraits<T>::CppType& value, const UInt64& number = 1) {
66
479
        auto it = ordered_map.find(value);
67
479
        if (it != ordered_map.end()) {
68
21
            it->second = it->second + number;
69
458
        } else {
70
458
            ordered_map.insert({value, number});
71
458
        }
72
479
    }
73
74
1.37k
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
1.37k
        if (!rhs.max_num_buckets) {
78
87
            return;
79
87
        }
80
81
1.29k
        max_num_buckets = rhs.max_num_buckets;
82
83
4.04k
        for (auto rhs_it : rhs.ordered_map) {
84
4.04k
            auto lhs_it = ordered_map.find(rhs_it.first);
85
4.04k
            if (lhs_it != ordered_map.end()) {
86
2.07k
                lhs_it->second += rhs_it.second;
87
2.07k
            } else {
88
1.96k
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
1.96k
            }
90
4.04k
        }
91
1.29k
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE5mergeERKS2_
Line
Count
Source
74
5
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
5
        if (!rhs.max_num_buckets) {
78
2
            return;
79
2
        }
80
81
3
        max_num_buckets = rhs.max_num_buckets;
82
83
5
        for (auto rhs_it : rhs.ordered_map) {
84
5
            auto lhs_it = ordered_map.find(rhs_it.first);
85
5
            if (lhs_it != ordered_map.end()) {
86
3
                lhs_it->second += rhs_it.second;
87
3
            } else {
88
2
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
2
            }
90
5
        }
91
3
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE5mergeERKS2_
Line
Count
Source
74
90
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
90
        if (!rhs.max_num_buckets) {
78
7
            return;
79
7
        }
80
81
83
        max_num_buckets = rhs.max_num_buckets;
82
83
247
        for (auto rhs_it : rhs.ordered_map) {
84
247
            auto lhs_it = ordered_map.find(rhs_it.first);
85
247
            if (lhs_it != ordered_map.end()) {
86
100
                lhs_it->second += rhs_it.second;
87
147
            } else {
88
147
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
147
            }
90
247
        }
91
83
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE5mergeERKS2_
Line
Count
Source
74
90
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
90
        if (!rhs.max_num_buckets) {
78
5
            return;
79
5
        }
80
81
85
        max_num_buckets = rhs.max_num_buckets;
82
83
259
        for (auto rhs_it : rhs.ordered_map) {
84
259
            auto lhs_it = ordered_map.find(rhs_it.first);
85
259
            if (lhs_it != ordered_map.end()) {
86
104
                lhs_it->second += rhs_it.second;
87
155
            } else {
88
155
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
155
            }
90
259
        }
91
85
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE5mergeERKS2_
Line
Count
Source
74
216
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
216
        if (!rhs.max_num_buckets) {
78
15
            return;
79
15
        }
80
81
201
        max_num_buckets = rhs.max_num_buckets;
82
83
355
        for (auto rhs_it : rhs.ordered_map) {
84
355
            auto lhs_it = ordered_map.find(rhs_it.first);
85
355
            if (lhs_it != ordered_map.end()) {
86
163
                lhs_it->second += rhs_it.second;
87
192
            } else {
88
192
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
192
            }
90
355
        }
91
201
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE5mergeERKS2_
Line
Count
Source
74
90
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
90
        if (!rhs.max_num_buckets) {
78
7
            return;
79
7
        }
80
81
83
        max_num_buckets = rhs.max_num_buckets;
82
83
247
        for (auto rhs_it : rhs.ordered_map) {
84
247
            auto lhs_it = ordered_map.find(rhs_it.first);
85
247
            if (lhs_it != ordered_map.end()) {
86
102
                lhs_it->second += rhs_it.second;
87
145
            } else {
88
145
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
145
            }
90
247
        }
91
83
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE5mergeERKS2_
Line
Count
Source
74
90
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
90
        if (!rhs.max_num_buckets) {
78
7
            return;
79
7
        }
80
81
83
        max_num_buckets = rhs.max_num_buckets;
82
83
250
        for (auto rhs_it : rhs.ordered_map) {
84
250
            auto lhs_it = ordered_map.find(rhs_it.first);
85
250
            if (lhs_it != ordered_map.end()) {
86
100
                lhs_it->second += rhs_it.second;
87
150
            } else {
88
150
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
150
            }
90
250
        }
91
83
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE5mergeERKS2_
Line
Count
Source
74
85
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
85
        if (!rhs.max_num_buckets) {
78
5
            return;
79
5
        }
80
81
80
        max_num_buckets = rhs.max_num_buckets;
82
83
235
        for (auto rhs_it : rhs.ordered_map) {
84
235
            auto lhs_it = ordered_map.find(rhs_it.first);
85
235
            if (lhs_it != ordered_map.end()) {
86
100
                lhs_it->second += rhs_it.second;
87
135
            } else {
88
135
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
135
            }
90
235
        }
91
80
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE5mergeERKS2_
Line
Count
Source
74
85
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
85
        if (!rhs.max_num_buckets) {
78
5
            return;
79
5
        }
80
81
80
        max_num_buckets = rhs.max_num_buckets;
82
83
235
        for (auto rhs_it : rhs.ordered_map) {
84
235
            auto lhs_it = ordered_map.find(rhs_it.first);
85
235
            if (lhs_it != ordered_map.end()) {
86
100
                lhs_it->second += rhs_it.second;
87
135
            } else {
88
135
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
135
            }
90
235
        }
91
80
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE5mergeERKS2_
Line
Count
Source
74
91
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
91
        if (!rhs.max_num_buckets) {
78
6
            return;
79
6
        }
80
81
85
        max_num_buckets = rhs.max_num_buckets;
82
83
165
        for (auto rhs_it : rhs.ordered_map) {
84
165
            auto lhs_it = ordered_map.find(rhs_it.first);
85
165
            if (lhs_it != ordered_map.end()) {
86
2
                lhs_it->second += rhs_it.second;
87
163
            } else {
88
163
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
163
            }
90
165
        }
91
85
    }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE5mergeERKS2_
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE5mergeERKS2_
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE5mergeERKS2_
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE5mergeERKS2_
Line
Count
Source
74
193
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
193
        if (!rhs.max_num_buckets) {
78
8
            return;
79
8
        }
80
81
185
        max_num_buckets = rhs.max_num_buckets;
82
83
1.29k
        for (auto rhs_it : rhs.ordered_map) {
84
1.29k
            auto lhs_it = ordered_map.find(rhs_it.first);
85
1.29k
            if (lhs_it != ordered_map.end()) {
86
1.09k
                lhs_it->second += rhs_it.second;
87
1.09k
            } else {
88
195
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
195
            }
90
1.29k
        }
91
185
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE5mergeERKS2_
Line
Count
Source
74
172
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
172
        if (!rhs.max_num_buckets) {
78
10
            return;
79
10
        }
80
81
162
        max_num_buckets = rhs.max_num_buckets;
82
83
377
        for (auto rhs_it : rhs.ordered_map) {
84
377
            auto lhs_it = ordered_map.find(rhs_it.first);
85
377
            if (lhs_it != ordered_map.end()) {
86
103
                lhs_it->second += rhs_it.second;
87
274
            } else {
88
274
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
274
            }
90
377
        }
91
162
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE5mergeERKS2_
Line
Count
Source
74
172
    void merge(const AggregateFunctionHistogramData& rhs) {
75
        // if rhs.max_num_buckets == 0, it means the input block for serialization is all null
76
        // we should discard this data, because histogram only fouce on the not-null data
77
172
        if (!rhs.max_num_buckets) {
78
10
            return;
79
10
        }
80
81
162
        max_num_buckets = rhs.max_num_buckets;
82
83
374
        for (auto rhs_it : rhs.ordered_map) {
84
374
            auto lhs_it = ordered_map.find(rhs_it.first);
85
374
            if (lhs_it != ordered_map.end()) {
86
101
                lhs_it->second += rhs_it.second;
87
273
            } else {
88
273
                ordered_map.insert({rhs_it.first, rhs_it.second});
89
273
            }
90
374
        }
91
162
    }
92
93
1.41k
    void write(BufferWritable& buf) const {
94
1.41k
        buf.write_binary(max_num_buckets);
95
1.41k
        auto element_number = (size_t)ordered_map.size();
96
1.41k
        buf.write_binary(element_number);
97
98
1.41k
        auto pair_vector = map_to_vector();
99
100
5.49k
        for (auto i = 0; i < element_number; i++) {
101
4.08k
            auto element = pair_vector[i];
102
4.08k
            buf.write_binary(element.second);
103
4.08k
            buf.write_binary(element.first);
104
4.08k
        }
105
1.41k
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE5writeERNS_14BufferWritableE
Line
Count
Source
93
5
    void write(BufferWritable& buf) const {
94
5
        buf.write_binary(max_num_buckets);
95
5
        auto element_number = (size_t)ordered_map.size();
96
5
        buf.write_binary(element_number);
97
98
5
        auto pair_vector = map_to_vector();
99
100
10
        for (auto i = 0; i < element_number; i++) {
101
5
            auto element = pair_vector[i];
102
5
            buf.write_binary(element.second);
103
5
            buf.write_binary(element.first);
104
5
        }
105
5
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE5writeERNS_14BufferWritableE
Line
Count
Source
93
90
    void write(BufferWritable& buf) const {
94
90
        buf.write_binary(max_num_buckets);
95
90
        auto element_number = (size_t)ordered_map.size();
96
90
        buf.write_binary(element_number);
97
98
90
        auto pair_vector = map_to_vector();
99
100
337
        for (auto i = 0; i < element_number; i++) {
101
247
            auto element = pair_vector[i];
102
247
            buf.write_binary(element.second);
103
247
            buf.write_binary(element.first);
104
247
        }
105
90
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE5writeERNS_14BufferWritableE
Line
Count
Source
93
90
    void write(BufferWritable& buf) const {
94
90
        buf.write_binary(max_num_buckets);
95
90
        auto element_number = (size_t)ordered_map.size();
96
90
        buf.write_binary(element_number);
97
98
90
        auto pair_vector = map_to_vector();
99
100
349
        for (auto i = 0; i < element_number; i++) {
101
259
            auto element = pair_vector[i];
102
259
            buf.write_binary(element.second);
103
259
            buf.write_binary(element.first);
104
259
        }
105
90
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE5writeERNS_14BufferWritableE
Line
Count
Source
93
254
    void write(BufferWritable& buf) const {
94
254
        buf.write_binary(max_num_buckets);
95
254
        auto element_number = (size_t)ordered_map.size();
96
254
        buf.write_binary(element_number);
97
98
254
        auto pair_vector = map_to_vector();
99
100
648
        for (auto i = 0; i < element_number; i++) {
101
394
            auto element = pair_vector[i];
102
394
            buf.write_binary(element.second);
103
394
            buf.write_binary(element.first);
104
394
        }
105
254
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE
Line
Count
Source
93
90
    void write(BufferWritable& buf) const {
94
90
        buf.write_binary(max_num_buckets);
95
90
        auto element_number = (size_t)ordered_map.size();
96
90
        buf.write_binary(element_number);
97
98
90
        auto pair_vector = map_to_vector();
99
100
337
        for (auto i = 0; i < element_number; i++) {
101
247
            auto element = pair_vector[i];
102
247
            buf.write_binary(element.second);
103
247
            buf.write_binary(element.first);
104
247
        }
105
90
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE
Line
Count
Source
93
90
    void write(BufferWritable& buf) const {
94
90
        buf.write_binary(max_num_buckets);
95
90
        auto element_number = (size_t)ordered_map.size();
96
90
        buf.write_binary(element_number);
97
98
90
        auto pair_vector = map_to_vector();
99
100
340
        for (auto i = 0; i < element_number; i++) {
101
250
            auto element = pair_vector[i];
102
250
            buf.write_binary(element.second);
103
250
            buf.write_binary(element.first);
104
250
        }
105
90
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE5writeERNS_14BufferWritableE
Line
Count
Source
93
85
    void write(BufferWritable& buf) const {
94
85
        buf.write_binary(max_num_buckets);
95
85
        auto element_number = (size_t)ordered_map.size();
96
85
        buf.write_binary(element_number);
97
98
85
        auto pair_vector = map_to_vector();
99
100
320
        for (auto i = 0; i < element_number; i++) {
101
235
            auto element = pair_vector[i];
102
235
            buf.write_binary(element.second);
103
235
            buf.write_binary(element.first);
104
235
        }
105
85
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Line
Count
Source
93
85
    void write(BufferWritable& buf) const {
94
85
        buf.write_binary(max_num_buckets);
95
85
        auto element_number = (size_t)ordered_map.size();
96
85
        buf.write_binary(element_number);
97
98
85
        auto pair_vector = map_to_vector();
99
100
320
        for (auto i = 0; i < element_number; i++) {
101
235
            auto element = pair_vector[i];
102
235
            buf.write_binary(element.second);
103
235
            buf.write_binary(element.first);
104
235
        }
105
85
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE
Line
Count
Source
93
91
    void write(BufferWritable& buf) const {
94
91
        buf.write_binary(max_num_buckets);
95
91
        auto element_number = (size_t)ordered_map.size();
96
91
        buf.write_binary(element_number);
97
98
91
        auto pair_vector = map_to_vector();
99
100
256
        for (auto i = 0; i < element_number; i++) {
101
165
            auto element = pair_vector[i];
102
165
            buf.write_binary(element.second);
103
165
            buf.write_binary(element.first);
104
165
        }
105
91
    }
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE5writeERNS_14BufferWritableE
Line
Count
Source
93
193
    void write(BufferWritable& buf) const {
94
193
        buf.write_binary(max_num_buckets);
95
193
        auto element_number = (size_t)ordered_map.size();
96
193
        buf.write_binary(element_number);
97
98
193
        auto pair_vector = map_to_vector();
99
100
1.48k
        for (auto i = 0; i < element_number; i++) {
101
1.29k
            auto element = pair_vector[i];
102
1.29k
            buf.write_binary(element.second);
103
1.29k
            buf.write_binary(element.first);
104
1.29k
        }
105
193
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE5writeERNS_14BufferWritableE
Line
Count
Source
93
172
    void write(BufferWritable& buf) const {
94
172
        buf.write_binary(max_num_buckets);
95
172
        auto element_number = (size_t)ordered_map.size();
96
172
        buf.write_binary(element_number);
97
98
172
        auto pair_vector = map_to_vector();
99
100
549
        for (auto i = 0; i < element_number; i++) {
101
377
            auto element = pair_vector[i];
102
377
            buf.write_binary(element.second);
103
377
            buf.write_binary(element.first);
104
377
        }
105
172
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE5writeERNS_14BufferWritableE
Line
Count
Source
93
172
    void write(BufferWritable& buf) const {
94
172
        buf.write_binary(max_num_buckets);
95
172
        auto element_number = (size_t)ordered_map.size();
96
172
        buf.write_binary(element_number);
97
98
172
        auto pair_vector = map_to_vector();
99
100
546
        for (auto i = 0; i < element_number; i++) {
101
374
            auto element = pair_vector[i];
102
374
            buf.write_binary(element.second);
103
374
            buf.write_binary(element.first);
104
374
        }
105
172
    }
106
107
1.37k
    void read(BufferReadable& buf) {
108
1.37k
        buf.read_binary(max_num_buckets);
109
110
1.37k
        size_t element_number = 0;
111
1.37k
        buf.read_binary(element_number);
112
113
1.37k
        ordered_map.clear();
114
1.37k
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
5.42k
        for (auto i = 0; i < element_number; i++) {
116
4.04k
            buf.read_binary(element.first);
117
4.04k
            buf.read_binary(element.second);
118
4.04k
            ordered_map.insert(element);
119
4.04k
        }
120
1.37k
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE4readERNS_14BufferReadableE
Line
Count
Source
107
5
    void read(BufferReadable& buf) {
108
5
        buf.read_binary(max_num_buckets);
109
110
5
        size_t element_number = 0;
111
5
        buf.read_binary(element_number);
112
113
5
        ordered_map.clear();
114
5
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
10
        for (auto i = 0; i < element_number; i++) {
116
5
            buf.read_binary(element.first);
117
5
            buf.read_binary(element.second);
118
5
            ordered_map.insert(element);
119
5
        }
120
5
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE4readERNS_14BufferReadableE
Line
Count
Source
107
90
    void read(BufferReadable& buf) {
108
90
        buf.read_binary(max_num_buckets);
109
110
90
        size_t element_number = 0;
111
90
        buf.read_binary(element_number);
112
113
90
        ordered_map.clear();
114
90
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
337
        for (auto i = 0; i < element_number; i++) {
116
247
            buf.read_binary(element.first);
117
247
            buf.read_binary(element.second);
118
247
            ordered_map.insert(element);
119
247
        }
120
90
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE4readERNS_14BufferReadableE
Line
Count
Source
107
90
    void read(BufferReadable& buf) {
108
90
        buf.read_binary(max_num_buckets);
109
110
90
        size_t element_number = 0;
111
90
        buf.read_binary(element_number);
112
113
90
        ordered_map.clear();
114
90
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
349
        for (auto i = 0; i < element_number; i++) {
116
259
            buf.read_binary(element.first);
117
259
            buf.read_binary(element.second);
118
259
            ordered_map.insert(element);
119
259
        }
120
90
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE4readERNS_14BufferReadableE
Line
Count
Source
107
216
    void read(BufferReadable& buf) {
108
216
        buf.read_binary(max_num_buckets);
109
110
216
        size_t element_number = 0;
111
216
        buf.read_binary(element_number);
112
113
216
        ordered_map.clear();
114
216
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
571
        for (auto i = 0; i < element_number; i++) {
116
355
            buf.read_binary(element.first);
117
355
            buf.read_binary(element.second);
118
355
            ordered_map.insert(element);
119
355
        }
120
216
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
107
90
    void read(BufferReadable& buf) {
108
90
        buf.read_binary(max_num_buckets);
109
110
90
        size_t element_number = 0;
111
90
        buf.read_binary(element_number);
112
113
90
        ordered_map.clear();
114
90
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
337
        for (auto i = 0; i < element_number; i++) {
116
247
            buf.read_binary(element.first);
117
247
            buf.read_binary(element.second);
118
247
            ordered_map.insert(element);
119
247
        }
120
90
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
107
90
    void read(BufferReadable& buf) {
108
90
        buf.read_binary(max_num_buckets);
109
110
90
        size_t element_number = 0;
111
90
        buf.read_binary(element_number);
112
113
90
        ordered_map.clear();
114
90
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
340
        for (auto i = 0; i < element_number; i++) {
116
250
            buf.read_binary(element.first);
117
250
            buf.read_binary(element.second);
118
250
            ordered_map.insert(element);
119
250
        }
120
90
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE4readERNS_14BufferReadableE
Line
Count
Source
107
85
    void read(BufferReadable& buf) {
108
85
        buf.read_binary(max_num_buckets);
109
110
85
        size_t element_number = 0;
111
85
        buf.read_binary(element_number);
112
113
85
        ordered_map.clear();
114
85
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
320
        for (auto i = 0; i < element_number; i++) {
116
235
            buf.read_binary(element.first);
117
235
            buf.read_binary(element.second);
118
235
            ordered_map.insert(element);
119
235
        }
120
85
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE4readERNS_14BufferReadableE
Line
Count
Source
107
85
    void read(BufferReadable& buf) {
108
85
        buf.read_binary(max_num_buckets);
109
110
85
        size_t element_number = 0;
111
85
        buf.read_binary(element_number);
112
113
85
        ordered_map.clear();
114
85
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
320
        for (auto i = 0; i < element_number; i++) {
116
235
            buf.read_binary(element.first);
117
235
            buf.read_binary(element.second);
118
235
            ordered_map.insert(element);
119
235
        }
120
85
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE
Line
Count
Source
107
91
    void read(BufferReadable& buf) {
108
91
        buf.read_binary(max_num_buckets);
109
110
91
        size_t element_number = 0;
111
91
        buf.read_binary(element_number);
112
113
91
        ordered_map.clear();
114
91
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
256
        for (auto i = 0; i < element_number; i++) {
116
165
            buf.read_binary(element.first);
117
165
            buf.read_binary(element.second);
118
165
            ordered_map.insert(element);
119
165
        }
120
91
    }
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EE4readERNS_14BufferReadableE
Line
Count
Source
107
193
    void read(BufferReadable& buf) {
108
193
        buf.read_binary(max_num_buckets);
109
110
193
        size_t element_number = 0;
111
193
        buf.read_binary(element_number);
112
113
193
        ordered_map.clear();
114
193
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
1.48k
        for (auto i = 0; i < element_number; i++) {
116
1.29k
            buf.read_binary(element.first);
117
1.29k
            buf.read_binary(element.second);
118
1.29k
            ordered_map.insert(element);
119
1.29k
        }
120
193
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE4readERNS_14BufferReadableE
Line
Count
Source
107
172
    void read(BufferReadable& buf) {
108
172
        buf.read_binary(max_num_buckets);
109
110
172
        size_t element_number = 0;
111
172
        buf.read_binary(element_number);
112
113
172
        ordered_map.clear();
114
172
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
549
        for (auto i = 0; i < element_number; i++) {
116
377
            buf.read_binary(element.first);
117
377
            buf.read_binary(element.second);
118
377
            ordered_map.insert(element);
119
377
        }
120
172
    }
_ZN5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE4readERNS_14BufferReadableE
Line
Count
Source
107
172
    void read(BufferReadable& buf) {
108
172
        buf.read_binary(max_num_buckets);
109
110
172
        size_t element_number = 0;
111
172
        buf.read_binary(element_number);
112
113
172
        ordered_map.clear();
114
172
        std::pair<typename PrimitiveTypeTraits<T>::CppType, size_t> element;
115
546
        for (auto i = 0; i < element_number; i++) {
116
374
            buf.read_binary(element.first);
117
374
            buf.read_binary(element.second);
118
374
            ordered_map.insert(element);
119
374
        }
120
172
    }
121
122
    void insert_result_into(IColumn& to) const {
123
        auto pair_vector = map_to_vector();
124
        for (auto i = 0; i < pair_vector.size(); i++) {
125
            const auto& element = pair_vector[i];
126
            if constexpr (is_string_type(T)) {
127
                assert_cast<ColumnString&>(to).insert_data(element.second.c_str(),
128
                                                           element.second.length());
129
            } else {
130
                assert_cast<ColVecType&>(to).get_data().push_back(element.second);
131
            }
132
        }
133
    }
134
135
700
    std::string get(const DataTypePtr& data_type) const {
136
700
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
700
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
700
        build_histogram(
143
700
                buckets, ordered_map,
144
700
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
700
        histogram_to_json(buffer, buckets, data_type);
146
700
        return {buffer.GetString()};
147
700
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
2
    std::string get(const DataTypePtr& data_type) const {
136
2
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
2
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
2
        build_histogram(
143
2
                buckets, ordered_map,
144
2
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
2
        histogram_to_json(buffer, buckets, data_type);
146
2
        return {buffer.GetString()};
147
2
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
48
    std::string get(const DataTypePtr& data_type) const {
136
48
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
48
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
48
        build_histogram(
143
48
                buckets, ordered_map,
144
48
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
48
        histogram_to_json(buffer, buckets, data_type);
146
48
        return {buffer.GetString()};
147
48
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
48
    std::string get(const DataTypePtr& data_type) const {
136
48
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
48
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
48
        build_histogram(
143
48
                buckets, ordered_map,
144
48
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
48
        histogram_to_json(buffer, buckets, data_type);
146
48
        return {buffer.GetString()};
147
48
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
67
    std::string get(const DataTypePtr& data_type) const {
136
67
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
67
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
67
        build_histogram(
143
67
                buckets, ordered_map,
144
67
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
67
        histogram_to_json(buffer, buckets, data_type);
146
67
        return {buffer.GetString()};
147
67
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
65
    std::string get(const DataTypePtr& data_type) const {
136
65
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
65
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
65
        build_histogram(
143
65
                buckets, ordered_map,
144
65
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
65
        histogram_to_json(buffer, buckets, data_type);
146
65
        return {buffer.GetString()};
147
65
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
48
    std::string get(const DataTypePtr& data_type) const {
136
48
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
48
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
48
        build_histogram(
143
48
                buckets, ordered_map,
144
48
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
48
        histogram_to_json(buffer, buckets, data_type);
146
48
        return {buffer.GetString()};
147
48
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
46
    std::string get(const DataTypePtr& data_type) const {
136
46
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
46
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
46
        build_histogram(
143
46
                buckets, ordered_map,
144
46
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
46
        histogram_to_json(buffer, buckets, data_type);
146
46
        return {buffer.GetString()};
147
46
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
46
    std::string get(const DataTypePtr& data_type) const {
136
46
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
46
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
46
        build_histogram(
143
46
                buckets, ordered_map,
144
46
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
46
        histogram_to_json(buffer, buckets, data_type);
146
46
        return {buffer.GetString()};
147
46
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
49
    std::string get(const DataTypePtr& data_type) const {
136
49
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
49
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
49
        build_histogram(
143
49
                buckets, ordered_map,
144
49
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
49
        histogram_to_json(buffer, buckets, data_type);
146
49
        return {buffer.GetString()};
147
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
135
105
    std::string get(const DataTypePtr& data_type) const {
136
105
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
105
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
105
        build_histogram(
143
105
                buckets, ordered_map,
144
105
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
105
        histogram_to_json(buffer, buckets, data_type);
146
105
        return {buffer.GetString()};
147
105
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
88
    std::string get(const DataTypePtr& data_type) const {
136
88
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
88
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
88
        build_histogram(
143
88
                buckets, ordered_map,
144
88
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
88
        histogram_to_json(buffer, buckets, data_type);
146
88
        return {buffer.GetString()};
147
88
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE3getB5cxx11ERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
135
88
    std::string get(const DataTypePtr& data_type) const {
136
88
        std::vector<Bucket<typename PrimitiveTypeTraits<T>::CppType>> buckets;
137
88
        rapidjson::StringBuffer buffer;
138
        // NOTE: We need an extral branch for to handle max_num_buckets == 0,
139
        // when target column is nullable, and input block is all null,
140
        // set_parameters will not be called because of the short-circuit in
141
        // AggregateFunctionNullVariadicInline, so max_num_buckets will be 0 in this situation.
142
88
        build_histogram(
143
88
                buckets, ordered_map,
144
88
                max_num_buckets == BUCKET_NUM_INIT_VALUE ? DEFAULT_BUCKET_NUM : max_num_buckets);
145
88
        histogram_to_json(buffer, buckets, data_type);
146
88
        return {buffer.GetString()};
147
88
    }
148
149
1.41k
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
1.41k
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
4.08k
        for (auto it : ordered_map) {
152
4.08k
            pair_vector.emplace_back(it.second, it.first);
153
4.08k
        }
154
1.41k
        return pair_vector;
155
1.41k
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EE13map_to_vectorEv
Line
Count
Source
149
5
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
5
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
5
        for (auto it : ordered_map) {
152
5
            pair_vector.emplace_back(it.second, it.first);
153
5
        }
154
5
        return pair_vector;
155
5
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EE13map_to_vectorEv
Line
Count
Source
149
90
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
90
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
247
        for (auto it : ordered_map) {
152
247
            pair_vector.emplace_back(it.second, it.first);
153
247
        }
154
90
        return pair_vector;
155
90
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EE13map_to_vectorEv
Line
Count
Source
149
90
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
90
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
259
        for (auto it : ordered_map) {
152
259
            pair_vector.emplace_back(it.second, it.first);
153
259
        }
154
90
        return pair_vector;
155
90
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EE13map_to_vectorEv
Line
Count
Source
149
255
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
255
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
394
        for (auto it : ordered_map) {
152
394
            pair_vector.emplace_back(it.second, it.first);
153
394
        }
154
255
        return pair_vector;
155
255
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EE13map_to_vectorEv
Line
Count
Source
149
90
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
90
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
247
        for (auto it : ordered_map) {
152
247
            pair_vector.emplace_back(it.second, it.first);
153
247
        }
154
90
        return pair_vector;
155
90
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EE13map_to_vectorEv
Line
Count
Source
149
90
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
90
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
250
        for (auto it : ordered_map) {
152
250
            pair_vector.emplace_back(it.second, it.first);
153
250
        }
154
90
        return pair_vector;
155
90
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EE13map_to_vectorEv
Line
Count
Source
149
85
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
85
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
235
        for (auto it : ordered_map) {
152
235
            pair_vector.emplace_back(it.second, it.first);
153
235
        }
154
85
        return pair_vector;
155
85
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EE13map_to_vectorEv
Line
Count
Source
149
85
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
85
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
235
        for (auto it : ordered_map) {
152
235
            pair_vector.emplace_back(it.second, it.first);
153
235
        }
154
85
        return pair_vector;
155
85
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EE13map_to_vectorEv
Line
Count
Source
149
91
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
91
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
165
        for (auto it : ordered_map) {
152
165
            pair_vector.emplace_back(it.second, it.first);
153
165
        }
154
91
        return pair_vector;
155
91
    }
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
149
193
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
193
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
1.29k
        for (auto it : ordered_map) {
152
1.29k
            pair_vector.emplace_back(it.second, it.first);
153
1.29k
        }
154
193
        return pair_vector;
155
193
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EE13map_to_vectorEv
Line
Count
Source
149
172
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
172
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
377
        for (auto it : ordered_map) {
152
377
            pair_vector.emplace_back(it.second, it.first);
153
377
        }
154
172
        return pair_vector;
155
172
    }
_ZNK5doris30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EE13map_to_vectorEv
Line
Count
Source
149
172
    std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> map_to_vector() const {
150
172
        std::vector<std::pair<size_t, typename PrimitiveTypeTraits<T>::CppType>> pair_vector;
151
374
        for (auto it : ordered_map) {
152
374
            pair_vector.emplace_back(it.second, it.first);
153
374
        }
154
172
        return pair_vector;
155
172
    }
156
157
private:
158
    size_t max_num_buckets = BUCKET_NUM_INIT_VALUE;
159
    std::map<typename PrimitiveTypeTraits<T>::CppType, size_t> ordered_map;
160
};
161
162
template <typename Data, bool has_input_param>
163
class AggregateFunctionHistogram final
164
        : public IAggregateFunctionDataHelper<Data,
165
                                              AggregateFunctionHistogram<Data, has_input_param>>,
166
          VarargsExpression,
167
          NotNullableAggregateFunction {
168
public:
169
    AggregateFunctionHistogram() = default;
170
    AggregateFunctionHistogram(const DataTypes& argument_types_)
171
816
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
816
                      argument_types_),
173
816
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
12
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
12
                      argument_types_),
173
12
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
12
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
12
                      argument_types_),
173
12
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
5
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
5
                      argument_types_),
173
5
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
12
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
12
                      argument_types_),
173
12
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
12
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
12
                      argument_types_),
173
12
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
8
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
8
                      argument_types_),
173
8
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
8
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
8
                      argument_types_),
173
8
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
18
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
18
                      argument_types_),
173
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
171
43
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
43
                      argument_types_),
173
43
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
19
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
19
                      argument_types_),
173
19
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
19
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
19
                      argument_types_),
173
19
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
4
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
4
                      argument_types_),
173
4
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
20
                      argument_types_),
173
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
20
                      argument_types_),
173
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
389
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
389
                      argument_types_),
173
389
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
21
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
21
                      argument_types_),
173
21
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
20
                      argument_types_),
173
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
20
                      argument_types_),
173
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
20
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
20
                      argument_types_),
173
20
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
19
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
19
                      argument_types_),
173
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
171
39
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
39
                      argument_types_),
173
39
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
38
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
38
                      argument_types_),
173
38
              _argument_type(argument_types_[0]) {}
_ZN5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
171
38
            : IAggregateFunctionDataHelper<Data, AggregateFunctionHistogram<Data, has_input_param>>(
172
38
                      argument_types_),
173
38
              _argument_type(argument_types_[0]) {}
174
175
30
    std::string get_name() const override { return "histogram"; }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE8get_nameB5cxx11Ev
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE8get_nameB5cxx11Ev
Line
Count
Source
175
20
    std::string get_name() const override { return "histogram"; }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE8get_nameB5cxx11Ev
Line
Count
Source
175
10
    std::string get_name() const override { return "histogram"; }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE8get_nameB5cxx11Ev
176
177
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
177
22
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE15get_return_typeEv
Line
Count
Source
177
22
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE15get_return_typeEv
Line
Count
Source
177
8
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE15get_return_typeEv
Line
Count
Source
177
22
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE15get_return_typeEv
Line
Count
Source
177
22
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE15get_return_typeEv
Line
Count
Source
177
14
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE15get_return_typeEv
Line
Count
Source
177
14
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE15get_return_typeEv
Line
Count
Source
177
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
177
84
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE15get_return_typeEv
Line
Count
Source
177
36
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE15get_return_typeEv
Line
Count
Source
177
36
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE15get_return_typeEv
Line
Count
Source
177
8
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE15get_return_typeEv
Line
Count
Source
177
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE15get_return_typeEv
Line
Count
Source
177
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE15get_return_typeEv
Line
Count
Source
177
60
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE15get_return_typeEv
Line
Count
Source
177
43
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE15get_return_typeEv
Line
Count
Source
177
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE15get_return_typeEv
Line
Count
Source
177
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE15get_return_typeEv
Line
Count
Source
177
32
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE15get_return_typeEv
Line
Count
Source
177
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
177
64
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE15get_return_typeEv
Line
Count
Source
177
64
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE15get_return_typeEv
Line
Count
Source
177
64
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }
178
179
    void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num,
180
6.09k
             Arena&) const override {
181
6.09k
        if constexpr (has_input_param) {
182
4.40k
            Int32 input_max_num_buckets =
183
4.40k
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
4.40k
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
4.40k
            this->data(place).set_parameters(input_max_num_buckets);
191
4.40k
        } else {
192
1.69k
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
1.69k
        }
194
195
2.40k
        if constexpr (is_string_type(Data::Ptype)) {
196
2.40k
            this->data(place).add(
197
2.40k
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
2.40k
                            .get_data_at(row_num));
199
3.68k
        } else {
200
3.68k
            this->data(place).add(
201
3.68k
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
3.68k
                            *columns[0])
203
3.68k
                            .get_data()[row_num]);
204
3.68k
        }
205
6.09k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
239
             Arena&) const override {
181
239
        if constexpr (has_input_param) {
182
239
            Int32 input_max_num_buckets =
183
239
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
239
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
239
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
239
        } else {
200
239
            this->data(place).add(
201
239
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
239
                            *columns[0])
203
239
                            .get_data()[row_num]);
204
239
        }
205
239
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
251
             Arena&) const override {
181
251
        if constexpr (has_input_param) {
182
251
            Int32 input_max_num_buckets =
183
251
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
251
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
251
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
251
        } else {
200
251
            this->data(place).add(
201
251
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
251
                            *columns[0])
203
251
                            .get_data()[row_num]);
204
251
        }
205
251
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
215
             Arena&) const override {
181
215
        if constexpr (has_input_param) {
182
215
            Int32 input_max_num_buckets =
183
215
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
215
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
215
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
215
        } else {
200
215
            this->data(place).add(
201
215
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
215
                            *columns[0])
203
215
                            .get_data()[row_num]);
204
215
        }
205
215
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
239
             Arena&) const override {
181
239
        if constexpr (has_input_param) {
182
239
            Int32 input_max_num_buckets =
183
239
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
239
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
239
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
239
        } else {
200
239
            this->data(place).add(
201
239
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
239
                            *columns[0])
203
239
                            .get_data()[row_num]);
204
239
        }
205
239
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
239
             Arena&) const override {
181
239
        if constexpr (has_input_param) {
182
239
            Int32 input_max_num_buckets =
183
239
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
239
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
239
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
239
        } else {
200
239
            this->data(place).add(
201
239
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
239
                            *columns[0])
203
239
                            .get_data()[row_num]);
204
239
        }
205
239
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
224
             Arena&) const override {
181
224
        if constexpr (has_input_param) {
182
224
            Int32 input_max_num_buckets =
183
224
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
224
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
224
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
224
        } else {
200
224
            this->data(place).add(
201
224
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
224
                            *columns[0])
203
224
                            .get_data()[row_num]);
204
224
        }
205
224
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
224
             Arena&) const override {
181
224
        if constexpr (has_input_param) {
182
224
            Int32 input_max_num_buckets =
183
224
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
224
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
224
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
224
        } else {
200
224
            this->data(place).add(
201
224
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
224
                            *columns[0])
203
224
                            .get_data()[row_num]);
204
224
        }
205
224
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
63
             Arena&) const override {
181
63
        if constexpr (has_input_param) {
182
63
            Int32 input_max_num_buckets =
183
63
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
63
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
63
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
63
        } else {
200
63
            this->data(place).add(
201
63
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
63
                            *columns[0])
203
63
                            .get_data()[row_num]);
204
63
        }
205
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
180
2.18k
             Arena&) const override {
181
2.18k
        if constexpr (has_input_param) {
182
2.18k
            Int32 input_max_num_buckets =
183
2.18k
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
2.18k
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
2.18k
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
2.18k
        if constexpr (is_string_type(Data::Ptype)) {
196
2.18k
            this->data(place).add(
197
2.18k
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
2.18k
                            .get_data_at(row_num));
199
        } else {
200
            this->data(place).add(
201
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
                            *columns[0])
203
                            .get_data()[row_num]);
204
        }
205
2.18k
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
263
             Arena&) const override {
181
263
        if constexpr (has_input_param) {
182
263
            Int32 input_max_num_buckets =
183
263
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
263
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
263
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
263
        } else {
200
263
            this->data(place).add(
201
263
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
263
                            *columns[0])
203
263
                            .get_data()[row_num]);
204
263
        }
205
263
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
263
             Arena&) const override {
181
263
        if constexpr (has_input_param) {
182
263
            Int32 input_max_num_buckets =
183
263
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
263
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
0
                throw doris::Exception(
186
0
                        ErrorCode::INVALID_ARGUMENT,
187
0
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
0
                        input_max_num_buckets, row_num);
189
0
            }
190
263
            this->data(place).set_parameters(input_max_num_buckets);
191
        } else {
192
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
263
        } else {
200
263
            this->data(place).add(
201
263
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
263
                            *columns[0])
203
263
                            .get_data()[row_num]);
204
263
        }
205
263
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
15
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
15
        } else {
192
15
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
15
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
15
        } else {
200
15
            this->data(place).add(
201
15
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
15
                            *columns[0])
203
15
                            .get_data()[row_num]);
204
15
        }
205
15
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
108
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
108
        } else {
192
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
108
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
108
        } else {
200
108
            this->data(place).add(
201
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
108
                            *columns[0])
203
108
                            .get_data()[row_num]);
204
108
        }
205
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
108
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
108
        } else {
192
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
108
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
108
        } else {
200
108
            this->data(place).add(
201
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
108
                            *columns[0])
203
108
                            .get_data()[row_num]);
204
108
        }
205
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
248
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
248
        } else {
192
248
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
248
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
248
        } else {
200
248
            this->data(place).add(
201
248
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
248
                            *columns[0])
203
248
                            .get_data()[row_num]);
204
248
        }
205
248
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
123
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
123
        } else {
192
123
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
123
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
123
        } else {
200
123
            this->data(place).add(
201
123
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
123
                            *columns[0])
203
123
                            .get_data()[row_num]);
204
123
        }
205
123
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
108
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
108
        } else {
192
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
108
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
108
        } else {
200
108
            this->data(place).add(
201
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
108
                            *columns[0])
203
108
                            .get_data()[row_num]);
204
108
        }
205
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
108
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
108
        } else {
192
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
108
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
108
        } else {
200
108
            this->data(place).add(
201
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
108
                            *columns[0])
203
108
                            .get_data()[row_num]);
204
108
        }
205
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
108
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
108
        } else {
192
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
108
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
108
        } else {
200
108
            this->data(place).add(
201
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
108
                            *columns[0])
203
108
                            .get_data()[row_num]);
204
108
        }
205
108
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
108
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
108
        } else {
192
108
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
108
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
108
        } else {
200
108
            this->data(place).add(
201
108
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
108
                            *columns[0])
203
108
                            .get_data()[row_num]);
204
108
        }
205
108
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE29EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE30EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE35EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE10EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
226
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
226
        } else {
192
226
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
226
        }
194
195
226
        if constexpr (is_string_type(Data::Ptype)) {
196
226
            this->data(place).add(
197
226
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
226
                            .get_data_at(row_num));
199
        } else {
200
            this->data(place).add(
201
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
                            *columns[0])
203
                            .get_data()[row_num]);
204
        }
205
226
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
216
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
216
        } else {
192
216
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
216
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
216
        } else {
200
216
            this->data(place).add(
201
216
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
216
                            *columns[0])
203
216
                            .get_data()[row_num]);
204
216
        }
205
216
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
180
216
             Arena&) const override {
181
        if constexpr (has_input_param) {
182
            Int32 input_max_num_buckets =
183
                    assert_cast<const ColumnInt32*>(columns[1])->get_element(row_num);
184
            if (input_max_num_buckets <= 0 || input_max_num_buckets > 1000000) {
185
                throw doris::Exception(
186
                        ErrorCode::INVALID_ARGUMENT,
187
                        "Invalid max_num_buckets {}, row_num {}, should be in (0, 1000000]",
188
                        input_max_num_buckets, row_num);
189
            }
190
            this->data(place).set_parameters(input_max_num_buckets);
191
216
        } else {
192
216
            this->data(place).set_parameters(Data::DEFAULT_BUCKET_NUM);
193
216
        }
194
195
        if constexpr (is_string_type(Data::Ptype)) {
196
            this->data(place).add(
197
                    assert_cast<const ColumnString&, TypeCheckOnRelease::DISABLE>(*columns[0])
198
                            .get_data_at(row_num));
199
216
        } else {
200
216
            this->data(place).add(
201
216
                    assert_cast<const typename Data::ColVecType&, TypeCheckOnRelease::DISABLE>(
202
216
                            *columns[0])
203
216
                            .get_data()[row_num]);
204
216
        }
205
216
    }
206
207
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
207
26
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE5resetEPc
Line
Count
Source
207
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
208
209
    void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs,
210
1.37k
               Arena&) const override {
211
1.37k
        this->data(place).merge(this->data(rhs));
212
1.37k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
9
               Arena&) const override {
211
9
        this->data(place).merge(this->data(rhs));
212
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
9
               Arena&) const override {
211
9
        this->data(place).merge(this->data(rhs));
212
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
6
               Arena&) const override {
211
6
        this->data(place).merge(this->data(rhs));
212
6
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
9
               Arena&) const override {
211
9
        this->data(place).merge(this->data(rhs));
212
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
9
               Arena&) const override {
211
9
        this->data(place).merge(this->data(rhs));
212
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
4
               Arena&) const override {
211
4
        this->data(place).merge(this->data(rhs));
212
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
4
               Arena&) const override {
211
4
        this->data(place).merge(this->data(rhs));
212
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
11
               Arena&) const override {
211
11
        this->data(place).merge(this->data(rhs));
212
11
    }
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
210
32
               Arena&) const override {
211
32
        this->data(place).merge(this->data(rhs));
212
32
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
12
               Arena&) const override {
211
12
        this->data(place).merge(this->data(rhs));
212
12
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
12
               Arena&) const override {
211
12
        this->data(place).merge(this->data(rhs));
212
12
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
5
               Arena&) const override {
211
5
        this->data(place).merge(this->data(rhs));
212
5
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
81
               Arena&) const override {
211
81
        this->data(place).merge(this->data(rhs));
212
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
81
               Arena&) const override {
211
81
        this->data(place).merge(this->data(rhs));
212
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
210
               Arena&) const override {
211
210
        this->data(place).merge(this->data(rhs));
212
210
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
81
               Arena&) const override {
211
81
        this->data(place).merge(this->data(rhs));
212
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
81
               Arena&) const override {
211
81
        this->data(place).merge(this->data(rhs));
212
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
81
               Arena&) const override {
211
81
        this->data(place).merge(this->data(rhs));
212
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
81
               Arena&) const override {
211
81
        this->data(place).merge(this->data(rhs));
212
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
80
               Arena&) const override {
211
80
        this->data(place).merge(this->data(rhs));
212
80
    }
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
210
161
               Arena&) const override {
211
161
        this->data(place).merge(this->data(rhs));
212
161
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
160
               Arena&) const override {
211
160
        this->data(place).merge(this->data(rhs));
212
160
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
210
160
               Arena&) const override {
211
160
        this->data(place).merge(this->data(rhs));
212
160
    }
213
214
1.41k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
1.41k
        this->data(place).write(buf);
216
1.41k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
9
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
9
        this->data(place).write(buf);
216
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
9
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
9
        this->data(place).write(buf);
216
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
6
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
6
        this->data(place).write(buf);
216
6
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
9
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
9
        this->data(place).write(buf);
216
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
9
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
9
        this->data(place).write(buf);
216
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
4
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
4
        this->data(place).write(buf);
216
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
4
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
4
        this->data(place).write(buf);
216
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
11
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
11
        this->data(place).write(buf);
216
11
    }
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
214
32
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
32
        this->data(place).write(buf);
216
32
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
12
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
12
        this->data(place).write(buf);
216
12
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
12
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
12
        this->data(place).write(buf);
216
12
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
5
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
5
        this->data(place).write(buf);
216
5
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
81
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
81
        this->data(place).write(buf);
216
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
81
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
81
        this->data(place).write(buf);
216
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
248
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
248
        this->data(place).write(buf);
216
248
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
81
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
81
        this->data(place).write(buf);
216
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
81
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
81
        this->data(place).write(buf);
216
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
81
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
81
        this->data(place).write(buf);
216
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
81
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
81
        this->data(place).write(buf);
216
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
80
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
80
        this->data(place).write(buf);
216
80
    }
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
214
161
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
161
        this->data(place).write(buf);
216
161
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
160
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
160
        this->data(place).write(buf);
216
160
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
214
160
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
215
160
        this->data(place).write(buf);
216
160
    }
217
218
    void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf,
219
1.37k
                     Arena&) const override {
220
1.37k
        this->data(place).read(buf);
221
1.37k
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
9
                     Arena&) const override {
220
9
        this->data(place).read(buf);
221
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
9
                     Arena&) const override {
220
9
        this->data(place).read(buf);
221
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
6
                     Arena&) const override {
220
6
        this->data(place).read(buf);
221
6
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
9
                     Arena&) const override {
220
9
        this->data(place).read(buf);
221
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
9
                     Arena&) const override {
220
9
        this->data(place).read(buf);
221
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
4
                     Arena&) const override {
220
4
        this->data(place).read(buf);
221
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
4
                     Arena&) const override {
220
4
        this->data(place).read(buf);
221
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
11
                     Arena&) const override {
220
11
        this->data(place).read(buf);
221
11
    }
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
219
32
                     Arena&) const override {
220
32
        this->data(place).read(buf);
221
32
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
12
                     Arena&) const override {
220
12
        this->data(place).read(buf);
221
12
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
12
                     Arena&) const override {
220
12
        this->data(place).read(buf);
221
12
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
5
                     Arena&) const override {
220
5
        this->data(place).read(buf);
221
5
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
81
                     Arena&) const override {
220
81
        this->data(place).read(buf);
221
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
81
                     Arena&) const override {
220
81
        this->data(place).read(buf);
221
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
210
                     Arena&) const override {
220
210
        this->data(place).read(buf);
221
210
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
81
                     Arena&) const override {
220
81
        this->data(place).read(buf);
221
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
81
                     Arena&) const override {
220
81
        this->data(place).read(buf);
221
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
81
                     Arena&) const override {
220
81
        this->data(place).read(buf);
221
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
81
                     Arena&) const override {
220
81
        this->data(place).read(buf);
221
81
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
80
                     Arena&) const override {
220
80
        this->data(place).read(buf);
221
80
    }
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
219
161
                     Arena&) const override {
220
161
        this->data(place).read(buf);
221
161
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
160
                     Arena&) const override {
220
160
        this->data(place).read(buf);
221
160
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
219
160
                     Arena&) const override {
220
160
        this->data(place).read(buf);
221
160
    }
222
223
700
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
700
        const std::string bucket_json = this->data(place).get(_argument_type);
225
700
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
700
    }
Unexecuted instantiation: _ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
9
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
9
        const std::string bucket_json = this->data(place).get(_argument_type);
225
9
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
9
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
9
        const std::string bucket_json = this->data(place).get(_argument_type);
225
9
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
4
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
4
        const std::string bucket_json = this->data(place).get(_argument_type);
225
4
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
4
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
9
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
9
        const std::string bucket_json = this->data(place).get(_argument_type);
225
9
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
9
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
9
        const std::string bucket_json = this->data(place).get(_argument_type);
225
9
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
9
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
7
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
7
        const std::string bucket_json = this->data(place).get(_argument_type);
225
7
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
7
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
7
        const std::string bucket_json = this->data(place).get(_argument_type);
225
7
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
7
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
12
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
12
        const std::string bucket_json = this->data(place).get(_argument_type);
225
12
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
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
223
29
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
29
        const std::string bucket_json = this->data(place).get(_argument_type);
225
29
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
29
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
14
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
14
        const std::string bucket_json = this->data(place).get(_argument_type);
225
14
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
14
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb1EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
14
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
14
        const std::string bucket_json = this->data(place).get(_argument_type);
225
14
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
14
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE2EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
2
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
2
        const std::string bucket_json = this->data(place).get(_argument_type);
225
2
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
2
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE3EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
39
        const std::string bucket_json = this->data(place).get(_argument_type);
225
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE4EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
39
        const std::string bucket_json = this->data(place).get(_argument_type);
225
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE5EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
63
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
63
        const std::string bucket_json = this->data(place).get(_argument_type);
225
63
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
63
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE6EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
56
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
56
        const std::string bucket_json = this->data(place).get(_argument_type);
225
56
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
56
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE7EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
39
        const std::string bucket_json = this->data(place).get(_argument_type);
225
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE8EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
39
        const std::string bucket_json = this->data(place).get(_argument_type);
225
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE9EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
39
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
39
        const std::string bucket_json = this->data(place).get(_argument_type);
225
39
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
39
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE28EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
37
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
37
        const std::string bucket_json = this->data(place).get(_argument_type);
225
37
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
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
223
76
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
76
        const std::string bucket_json = this->data(place).get(_argument_type);
225
76
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
76
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE25EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
74
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
74
        const std::string bucket_json = this->data(place).get(_argument_type);
225
74
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
74
    }
_ZNK5doris26AggregateFunctionHistogramINS_30AggregateFunctionHistogramDataILNS_13PrimitiveTypeE26EEELb0EE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
223
74
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
224
74
        const std::string bucket_json = this->data(place).get(_argument_type);
225
74
        assert_cast<ColumnString&>(to).insert_data(bucket_json.c_str(), bucket_json.length());
226
74
    }
227
228
private:
229
    DataTypePtr _argument_type;
230
};
231
232
} // namespace doris