Coverage Report

Created: 2026-03-12 17:07

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