Coverage Report

Created: 2026-04-18 11:05

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