Coverage Report

Created: 2026-10-28 12:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/exprs/aggregate/aggregate_function_avg.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
// This file is copied from
18
// https://github.com/ClickHouse/ClickHouse/blob/master/src/AggregateFunctions/AggregateFunctionAvg.h
19
// and modified by Doris
20
21
#pragma once
22
23
#include <glog/logging.h>
24
#include <string.h>
25
26
#include <limits>
27
#include <memory>
28
#include <ostream>
29
#include <type_traits>
30
#include <vector>
31
32
#include "common/compiler_util.h"
33
#include "core/assert_cast.h"
34
#include "core/column/column.h"
35
#include "core/column/column_fixed_length_object.h"
36
#include "core/data_type/data_type.h"
37
#include "core/data_type/data_type_decimal.h"
38
#include "core/data_type/data_type_fixed_length_object.h"
39
#include "core/data_type/primitive_type.h"
40
#include "core/types.h"
41
#include "core/value/decimalv2_value.h"
42
#include "exprs/aggregate/aggregate_function.h"
43
44
namespace doris {
45
class Arena;
46
class BufferReadable;
47
class BufferWritable;
48
template <PrimitiveType T>
49
class ColumnDecimal;
50
template <PrimitiveType T>
51
class DataTypeNumber;
52
template <PrimitiveType T>
53
class ColumnVector;
54
55
// avg() adds up the values in this type and divides only at the end, so integers keep all digits.
56
0
constexpr PrimitiveType avg_sum_type(PrimitiveType T) {
57
0
    if (T == TYPE_LARGEINT || T == TYPE_BIGINT) {
58
0
        return TYPE_LARGEINT;
59
0
    } else if (is_int_or_bool(T)) {
60
0
        return TYPE_BIGINT;
61
0
    } else if (is_float_or_double(T) || is_time_type(T)) {
62
0
        return TYPE_DOUBLE;
63
0
    } else if (is_decimalv3(T) && T != TYPE_DECIMAL256) {
64
0
        return TYPE_DECIMAL128I;
65
0
    } else {
66
0
        return T;
67
0
    }
68
0
}
69
70
template <PrimitiveType T>
71
struct AggregateFunctionAvgData {
72
    using ResultType = typename PrimitiveTypeTraits<T>::CppType;
73
    static constexpr PrimitiveType ResultPType = T;
74
    ResultType sum {};
75
    UInt64 count = 0;
76
77
    AggregateFunctionAvgData& operator=(const AggregateFunctionAvgData<T>& src) = default;
78
79
    template <typename ResultT>
80
73.0k
    ResultT result(ResultType multiplier) const {
81
73.0k
        if (!count) {
82
            // null is handled in AggregationNode::_get_without_key_result
83
1
            return static_cast<ResultT>(sum);
84
1
        }
85
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
86
        // handle scale correctly, so no external multiplier is needed.
87
73.0k
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
88
0
            DecimalV2Value decimal_val_count(count, 0);
89
0
            DecimalV2Value cal_ret = sum / decimal_val_count;
90
0
            return cal_ret;
91
73.0k
        } else {
92
73.0k
            if constexpr (T == TYPE_DECIMAL256) {
93
187
                return static_cast<ResultT>(sum * multiplier /
94
187
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
72.8k
            } else {
96
72.8k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
72.8k
            }
98
73.0k
        }
99
73.0k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE6resultINS_7DecimalIiEEEET_S5_
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE6resultINS_7DecimalIlEEEET_S5_
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE6resultINS_12Decimal128V3EEET_S4_
Line
Count
Source
80
72.9k
    ResultT result(ResultType multiplier) const {
81
72.9k
        if (!count) {
82
            // null is handled in AggregationNode::_get_without_key_result
83
1
            return static_cast<ResultT>(sum);
84
1
        }
85
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
86
        // handle scale correctly, so no external multiplier is needed.
87
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
88
            DecimalV2Value decimal_val_count(count, 0);
89
            DecimalV2Value cal_ret = sum / decimal_val_count;
90
            return cal_ret;
91
72.8k
        } else {
92
            if constexpr (T == TYPE_DECIMAL256) {
93
                return static_cast<ResultT>(sum * multiplier /
94
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
72.8k
            } else {
96
72.8k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
72.8k
            }
98
72.8k
        }
99
72.8k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE6resultINS_7DecimalIN4wide7integerILm256EiEEEEEET_S8_
Line
Count
Source
80
187
    ResultT result(ResultType multiplier) const {
81
187
        if (!count) {
82
            // null is handled in AggregationNode::_get_without_key_result
83
0
            return static_cast<ResultT>(sum);
84
0
        }
85
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
86
        // handle scale correctly, so no external multiplier is needed.
87
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
88
            DecimalV2Value decimal_val_count(count, 0);
89
            DecimalV2Value cal_ret = sum / decimal_val_count;
90
            return cal_ret;
91
187
        } else {
92
187
            if constexpr (T == TYPE_DECIMAL256) {
93
187
                return static_cast<ResultT>(sum * multiplier /
94
187
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
            } else {
96
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
            }
98
187
        }
99
187
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE6resultINS_14DecimalV2ValueEEET_S4_
100
101
    template <typename ResultT>
102
42.4k
    ResultT result() const {
103
42.4k
        if constexpr (std::is_floating_point_v<ResultT>) {
104
42.4k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
42.4k
                return static_cast<ResultT>(sum) /
106
42.4k
                       static_cast<ResultT>(count); /// allow division by zero
107
42.4k
            }
108
42.4k
        }
109
110
42.4k
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
42.4k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
42.4k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE6resultIdEET_v
Line
Count
Source
102
962
    ResultT result() const {
103
962
        if constexpr (std::is_floating_point_v<ResultT>) {
104
962
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
962
                return static_cast<ResultT>(sum) /
106
962
                       static_cast<ResultT>(count); /// allow division by zero
107
962
            }
108
962
        }
109
110
962
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
962
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
962
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE6resultIdEET_v
Line
Count
Source
102
976
    ResultT result() const {
103
976
        if constexpr (std::is_floating_point_v<ResultT>) {
104
976
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
976
                return static_cast<ResultT>(sum) /
106
976
                       static_cast<ResultT>(count); /// allow division by zero
107
976
            }
108
976
        }
109
110
976
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
976
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
976
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE6resultIdEET_v
Line
Count
Source
102
40.4k
    ResultT result() const {
103
40.4k
        if constexpr (std::is_floating_point_v<ResultT>) {
104
40.4k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
40.4k
                return static_cast<ResultT>(sum) /
106
40.4k
                       static_cast<ResultT>(count); /// allow division by zero
107
40.4k
            }
108
40.4k
        }
109
110
40.4k
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
40.4k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
40.4k
    }
116
117
8.20k
    void write(BufferWritable& buf) const {
118
8.20k
        buf.write_binary(sum);
119
8.20k
        buf.write_binary(count);
120
8.20k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE
Line
Count
Source
117
15
    void write(BufferWritable& buf) const {
118
15
        buf.write_binary(sum);
119
15
        buf.write_binary(count);
120
15
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE
Line
Count
Source
117
15
    void write(BufferWritable& buf) const {
118
15
        buf.write_binary(sum);
119
15
        buf.write_binary(count);
120
15
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE
Line
Count
Source
117
8.15k
    void write(BufferWritable& buf) const {
118
8.15k
        buf.write_binary(sum);
119
8.15k
        buf.write_binary(count);
120
8.15k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE
Line
Count
Source
117
26
    void write(BufferWritable& buf) const {
118
26
        buf.write_binary(sum);
119
26
        buf.write_binary(count);
120
26
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE5writeERNS_14BufferWritableE
121
122
8.25k
    void read(BufferReadable& buf) {
123
8.25k
        buf.read_binary(sum);
124
8.25k
        buf.read_binary(count);
125
8.25k
    }
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE
Line
Count
Source
122
15
    void read(BufferReadable& buf) {
123
15
        buf.read_binary(sum);
124
15
        buf.read_binary(count);
125
15
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE
Line
Count
Source
122
15
    void read(BufferReadable& buf) {
123
15
        buf.read_binary(sum);
124
15
        buf.read_binary(count);
125
15
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
122
8.16k
    void read(BufferReadable& buf) {
123
8.16k
        buf.read_binary(sum);
124
8.16k
        buf.read_binary(count);
125
8.16k
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
122
65
    void read(BufferReadable& buf) {
123
65
        buf.read_binary(sum);
124
65
        buf.read_binary(count);
125
65
    }
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE4readERNS_14BufferReadableE
126
};
127
128
template <PrimitiveType T, PrimitiveType TResult, typename Data>
129
class AggregateFunctionAvg;
130
131
template <PrimitiveType T, PrimitiveType TResult>
132
constexpr static bool is_valid_avg_types =
133
        (is_same_or_wider_decimalv3(T, TResult) || (is_decimalv2(T) && is_decimalv2(TResult)) ||
134
         (is_float_or_double(T) && is_float_or_double(TResult)) ||
135
         (is_int_or_bool(T) && (is_double(TResult) || is_int(TResult))));
136
/// Calculates arithmetic mean of numbers.
137
template <PrimitiveType T, PrimitiveType TResult, typename Data>
138
    requires(is_valid_avg_types<T, TResult>)
139
class AggregateFunctionAvg<T, TResult, Data> final
140
        : public IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>,
141
          UnaryExpression,
142
          NullableAggregateFunction {
143
public:
144
    using ResultType = typename PrimitiveTypeTraits<TResult>::CppType;
145
    using ResultDataType = typename PrimitiveTypeTraits<TResult>::DataType;
146
    using ColVecType = typename PrimitiveTypeTraits<T>::ColumnType;
147
    using ColVecResult = typename PrimitiveTypeTraits<TResult>::ColumnType;
148
    // The result calculated by PercentileApprox is an approximate value,
149
    // so the underlying storage uses float. The following calls will involve
150
    // an implicit cast to float.
151
152
    using DataType = typename Data::ResultType;
153
154
    // consistent with fe/fe-common/src/main/java/org/apache/doris/catalog/ScalarType.java
155
    static constexpr uint32_t DEFAULT_MIN_AVG_DECIMAL128_SCALE = 4;
156
157
    /// ctor for native types
158
    AggregateFunctionAvg(const DataTypes& argument_types_)
159
2.48k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
2.48k
                      argument_types_),
161
2.48k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
2.48k
                                    get_decimal_scale(*argument_types_[0]))) {
163
2.48k
        if constexpr (is_decimal(T)) {
164
736
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
736
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
736
        }
167
2.48k
    }
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
40
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
40
                      argument_types_),
161
40
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
40
                                    get_decimal_scale(*argument_types_[0]))) {
163
40
        if constexpr (is_decimal(T)) {
164
40
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
40
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
40
        }
167
40
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
8
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
8
                      argument_types_),
161
8
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
8
                                    get_decimal_scale(*argument_types_[0]))) {
163
8
        if constexpr (is_decimal(T)) {
164
8
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
8
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
8
        }
167
8
    }
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
505
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
505
                      argument_types_),
161
505
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
505
                                    get_decimal_scale(*argument_types_[0]))) {
163
505
        if constexpr (is_decimal(T)) {
164
505
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
505
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
505
        }
167
505
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
9
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
9
                      argument_types_),
161
9
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
9
                                    get_decimal_scale(*argument_types_[0]))) {
163
9
        if constexpr (is_decimal(T)) {
164
9
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
9
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
9
        }
167
9
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
73
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
73
                      argument_types_),
161
73
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
73
                                    get_decimal_scale(*argument_types_[0]))) {
163
73
        if constexpr (is_decimal(T)) {
164
73
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
73
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
73
        }
167
73
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
28
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
28
                      argument_types_),
161
28
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
28
                                    get_decimal_scale(*argument_types_[0]))) {
163
28
        if constexpr (is_decimal(T)) {
164
28
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
28
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
28
        }
167
28
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
73
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
73
                      argument_types_),
161
73
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
73
                                    get_decimal_scale(*argument_types_[0]))) {
163
73
        if constexpr (is_decimal(T)) {
164
73
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
73
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
73
        }
167
73
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
136
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
136
                      argument_types_),
161
136
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
136
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
136
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
67
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
67
                      argument_types_),
161
67
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
67
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
67
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
1.00k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
1.00k
                      argument_types_),
161
1.00k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
1.00k
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
1.00k
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
256
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
256
                      argument_types_),
161
256
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
256
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
256
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
47
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
47
                      argument_types_),
161
47
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
47
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
47
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
198
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
198
                      argument_types_),
161
198
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
198
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
198
    }
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
42
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
42
                      argument_types_),
161
42
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
42
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
42
    }
168
169
820
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
40
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
19
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
3
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
2
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
1
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
117
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
587
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
51
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev
170
171
11.5k
    DataTypePtr get_return_type() const override {
172
11.5k
        if constexpr (is_decimal(T)) {
173
4.09k
            return std::make_shared<ResultDataType>(
174
4.09k
                    ResultDataType::max_precision(),
175
4.09k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
7.49k
        } else {
177
7.49k
            return std::make_shared<ResultDataType>();
178
7.49k
        }
179
11.5k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
259
    DataTypePtr get_return_type() const override {
172
259
        if constexpr (is_decimal(T)) {
173
259
            return std::make_shared<ResultDataType>(
174
259
                    ResultDataType::max_precision(),
175
259
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
259
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
18
    DataTypePtr get_return_type() const override {
172
18
        if constexpr (is_decimal(T)) {
173
18
            return std::make_shared<ResultDataType>(
174
18
                    ResultDataType::max_precision(),
175
18
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
18
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
3.07k
    DataTypePtr get_return_type() const override {
172
3.07k
        if constexpr (is_decimal(T)) {
173
3.07k
            return std::make_shared<ResultDataType>(
174
3.07k
                    ResultDataType::max_precision(),
175
3.07k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
3.07k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
20
    DataTypePtr get_return_type() const override {
172
20
        if constexpr (is_decimal(T)) {
173
20
            return std::make_shared<ResultDataType>(
174
20
                    ResultDataType::max_precision(),
175
20
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
340
    DataTypePtr get_return_type() const override {
172
340
        if constexpr (is_decimal(T)) {
173
340
            return std::make_shared<ResultDataType>(
174
340
                    ResultDataType::max_precision(),
175
340
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
340
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
104
    DataTypePtr get_return_type() const override {
172
104
        if constexpr (is_decimal(T)) {
173
104
            return std::make_shared<ResultDataType>(
174
104
                    ResultDataType::max_precision(),
175
104
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
104
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
280
    DataTypePtr get_return_type() const override {
172
280
        if constexpr (is_decimal(T)) {
173
280
            return std::make_shared<ResultDataType>(
174
280
                    ResultDataType::max_precision(),
175
280
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
280
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
376
    DataTypePtr get_return_type() const override {
172
        if constexpr (is_decimal(T)) {
173
            return std::make_shared<ResultDataType>(
174
                    ResultDataType::max_precision(),
175
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
376
        } else {
177
376
            return std::make_shared<ResultDataType>();
178
376
        }
179
376
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
192
    DataTypePtr get_return_type() const override {
172
        if constexpr (is_decimal(T)) {
173
            return std::make_shared<ResultDataType>(
174
                    ResultDataType::max_precision(),
175
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
192
        } else {
177
192
            return std::make_shared<ResultDataType>();
178
192
        }
179
192
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
2.46k
    DataTypePtr get_return_type() const override {
172
        if constexpr (is_decimal(T)) {
173
            return std::make_shared<ResultDataType>(
174
                    ResultDataType::max_precision(),
175
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
2.46k
        } else {
177
2.46k
            return std::make_shared<ResultDataType>();
178
2.46k
        }
179
2.46k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
1.68k
    DataTypePtr get_return_type() const override {
172
        if constexpr (is_decimal(T)) {
173
            return std::make_shared<ResultDataType>(
174
                    ResultDataType::max_precision(),
175
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
1.68k
        } else {
177
1.68k
            return std::make_shared<ResultDataType>();
178
1.68k
        }
179
1.68k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
89
    DataTypePtr get_return_type() const override {
172
        if constexpr (is_decimal(T)) {
173
            return std::make_shared<ResultDataType>(
174
                    ResultDataType::max_precision(),
175
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
89
        } else {
177
89
            return std::make_shared<ResultDataType>();
178
89
        }
179
89
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
171
2.62k
    DataTypePtr get_return_type() const override {
172
        if constexpr (is_decimal(T)) {
173
            return std::make_shared<ResultDataType>(
174
                    ResultDataType::max_precision(),
175
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
2.62k
        } else {
177
2.62k
            return std::make_shared<ResultDataType>();
178
2.62k
        }
179
2.62k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
171
72
    DataTypePtr get_return_type() const override {
172
        if constexpr (is_decimal(T)) {
173
            return std::make_shared<ResultDataType>(
174
                    ResultDataType::max_precision(),
175
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
72
        } else {
177
72
            return std::make_shared<ResultDataType>();
178
72
        }
179
72
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
180
181
43
    bool is_trivial() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE10is_trivialEv
Line
Count
Source
181
2
    bool is_trivial() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
Line
Count
Source
181
2
    bool is_trivial() const override { return true; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
Line
Count
Source
181
1
    bool is_trivial() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
Line
Count
Source
181
15
    bool is_trivial() const override { return true; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE10is_trivialEv
Line
Count
Source
181
23
    bool is_trivial() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
182
183
82
    WindowSpillStrategy window_spill_strategy() const override {
184
82
        return WindowSpillStrategy::PARTITION_REDUCE;
185
82
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE21window_spill_strategyEv
Line
Count
Source
183
4
    WindowSpillStrategy window_spill_strategy() const override {
184
4
        return WindowSpillStrategy::PARTITION_REDUCE;
185
4
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE21window_spill_strategyEv
Line
Count
Source
183
5
    WindowSpillStrategy window_spill_strategy() const override {
184
5
        return WindowSpillStrategy::PARTITION_REDUCE;
185
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE21window_spill_strategyEv
Line
Count
Source
183
1
    WindowSpillStrategy window_spill_strategy() const override {
184
1
        return WindowSpillStrategy::PARTITION_REDUCE;
185
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
Line
Count
Source
183
1
    WindowSpillStrategy window_spill_strategy() const override {
184
1
        return WindowSpillStrategy::PARTITION_REDUCE;
185
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
Line
Count
Source
183
14
    WindowSpillStrategy window_spill_strategy() const override {
184
14
        return WindowSpillStrategy::PARTITION_REDUCE;
185
14
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE21window_spill_strategyEv
Line
Count
Source
183
38
    WindowSpillStrategy window_spill_strategy() const override {
184
38
        return WindowSpillStrategy::PARTITION_REDUCE;
185
38
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE21window_spill_strategyEv
Line
Count
Source
183
19
    WindowSpillStrategy window_spill_strategy() const override {
184
19
        return WindowSpillStrategy::PARTITION_REDUCE;
185
19
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
186
187
    template <bool is_add>
188
    NO_SANITIZE_UNDEFINED void update_value(AggregateDataPtr __restrict place,
189
9.69M
                                            const IColumn** columns, ssize_t row_num) const {
190
9.69M
        ALLOW_FP_REASSOCIATION
191
9.69M
        const auto& column =
192
9.69M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
9.69M
        if constexpr (is_add) {
194
9.69M
            if constexpr (T == TYPE_DECIMALV2) {
195
0
                this->data(place).sum += column.get_data()[row_num];
196
7.77M
            } else if constexpr (is_decimal(T)) {
197
7.77M
                this->data(place).sum += column.get_data()[row_num].value;
198
7.77M
            } else {
199
1.91M
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.91M
            }
201
9.69M
            ++this->data(place).count;
202
9.69M
        } else {
203
119
            if constexpr (T == TYPE_DECIMALV2) {
204
0
                this->data(place).sum += -column.get_data()[row_num];
205
22
            } else if constexpr (is_decimal(T)) {
206
22
                this->data(place).sum -= column.get_data()[row_num].value;
207
97
            } else {
208
97
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
97
            }
210
119
            --this->data(place).count;
211
119
        }
212
9.69M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
181
                                            const IColumn** columns, ssize_t row_num) const {
190
181
        ALLOW_FP_REASSOCIATION
191
181
        const auto& column =
192
181
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
181
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
181
            } else if constexpr (is_decimal(T)) {
197
181
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
181
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
181
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
20
                                            const IColumn** columns, ssize_t row_num) const {
190
20
        ALLOW_FP_REASSOCIATION
191
20
        const auto& column =
192
20
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
            ++this->data(place).count;
202
20
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
20
            } else if constexpr (is_decimal(T)) {
206
20
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
20
            --this->data(place).count;
211
20
        }
212
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
11
                                            const IColumn** columns, ssize_t row_num) const {
190
11
        ALLOW_FP_REASSOCIATION
191
11
        const auto& column =
192
11
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
11
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
11
            } else if constexpr (is_decimal(T)) {
197
11
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
11
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
11
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
7.77M
                                            const IColumn** columns, ssize_t row_num) const {
190
7.77M
        ALLOW_FP_REASSOCIATION
191
7.77M
        const auto& column =
192
7.77M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
7.77M
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
7.77M
            } else if constexpr (is_decimal(T)) {
197
7.77M
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
7.77M
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
7.77M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
48
                                            const IColumn** columns, ssize_t row_num) const {
190
48
        ALLOW_FP_REASSOCIATION
191
48
        const auto& column =
192
48
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
48
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
48
            } else if constexpr (is_decimal(T)) {
197
48
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
48
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
48
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
135
                                            const IColumn** columns, ssize_t row_num) const {
190
135
        ALLOW_FP_REASSOCIATION
191
135
        const auto& column =
192
135
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
135
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
135
            } else if constexpr (is_decimal(T)) {
197
135
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
135
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
135
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
2
                                            const IColumn** columns, ssize_t row_num) const {
190
2
        ALLOW_FP_REASSOCIATION
191
2
        const auto& column =
192
2
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
            ++this->data(place).count;
202
2
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
2
            } else if constexpr (is_decimal(T)) {
206
2
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
2
            --this->data(place).count;
211
2
        }
212
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
237
                                            const IColumn** columns, ssize_t row_num) const {
190
237
        ALLOW_FP_REASSOCIATION
191
237
        const auto& column =
192
237
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
237
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
237
            } else if constexpr (is_decimal(T)) {
197
237
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
237
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
237
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
421
                                            const IColumn** columns, ssize_t row_num) const {
190
421
        ALLOW_FP_REASSOCIATION
191
421
        const auto& column =
192
421
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
421
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
421
            } else if constexpr (is_decimal(T)) {
197
421
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
421
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
421
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
553
                                            const IColumn** columns, ssize_t row_num) const {
190
553
        ALLOW_FP_REASSOCIATION
191
553
        const auto& column =
192
553
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
553
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
553
            } else {
199
553
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
553
            }
201
553
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
553
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
483
                                            const IColumn** columns, ssize_t row_num) const {
190
483
        ALLOW_FP_REASSOCIATION
191
483
        const auto& column =
192
483
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
483
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
483
            } else {
199
483
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
483
            }
201
483
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
483
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
27.4k
                                            const IColumn** columns, ssize_t row_num) const {
190
27.4k
        ALLOW_FP_REASSOCIATION
191
27.4k
        const auto& column =
192
27.4k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
27.4k
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
27.4k
            } else {
199
27.4k
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
27.4k
            }
201
27.4k
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
27.4k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
12
                                            const IColumn** columns, ssize_t row_num) const {
190
12
        ALLOW_FP_REASSOCIATION
191
12
        const auto& column =
192
12
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
            ++this->data(place).count;
202
12
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
12
            } else {
208
12
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
12
            }
210
12
            --this->data(place).count;
211
12
        }
212
12
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
1.27k
                                            const IColumn** columns, ssize_t row_num) const {
190
1.27k
        ALLOW_FP_REASSOCIATION
191
1.27k
        const auto& column =
192
1.27k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
1.27k
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
1.27k
            } else {
199
1.27k
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.27k
            }
201
1.27k
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
1.27k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
85
                                            const IColumn** columns, ssize_t row_num) const {
190
85
        ALLOW_FP_REASSOCIATION
191
85
        const auto& column =
192
85
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
            ++this->data(place).count;
202
85
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
85
            } else {
208
85
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
85
            }
210
85
            --this->data(place).count;
211
85
        }
212
85
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
227
                                            const IColumn** columns, ssize_t row_num) const {
190
227
        ALLOW_FP_REASSOCIATION
191
227
        const auto& column =
192
227
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
227
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
227
            } else {
199
227
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
227
            }
201
227
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
227
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
1.88M
                                            const IColumn** columns, ssize_t row_num) const {
190
1.88M
        ALLOW_FP_REASSOCIATION
191
1.88M
        const auto& column =
192
1.88M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
1.88M
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
1.88M
            } else {
199
1.88M
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.88M
            }
201
1.88M
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
1.88M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
315
                                            const IColumn** columns, ssize_t row_num) const {
190
315
        ALLOW_FP_REASSOCIATION
191
315
        const auto& column =
192
315
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
315
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
315
            } else {
199
315
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
315
            }
201
315
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
315
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
213
214
    void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num,
215
9.63M
             Arena&) const override {
216
9.63M
        update_value<true>(place, columns, row_num);
217
9.63M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
153
             Arena&) const override {
216
153
        update_value<true>(place, columns, row_num);
217
153
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
11
             Arena&) const override {
216
11
        update_value<true>(place, columns, row_num);
217
11
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
7.71M
             Arena&) const override {
216
7.71M
        update_value<true>(place, columns, row_num);
217
7.71M
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
48
             Arena&) const override {
216
48
        update_value<true>(place, columns, row_num);
217
48
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
131
             Arena&) const override {
216
131
        update_value<true>(place, columns, row_num);
217
131
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
237
             Arena&) const override {
216
237
        update_value<true>(place, columns, row_num);
217
237
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
421
             Arena&) const override {
216
421
        update_value<true>(place, columns, row_num);
217
421
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
551
             Arena&) const override {
216
551
        update_value<true>(place, columns, row_num);
217
551
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
483
             Arena&) const override {
216
483
        update_value<true>(place, columns, row_num);
217
483
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
27.2k
             Arena&) const override {
216
27.2k
        update_value<true>(place, columns, row_num);
217
27.2k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
885
             Arena&) const override {
216
885
        update_value<true>(place, columns, row_num);
217
885
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
227
             Arena&) const override {
216
227
        update_value<true>(place, columns, row_num);
217
227
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
1.88M
             Arena&) const override {
216
1.88M
        update_value<true>(place, columns, row_num);
217
1.88M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
315
             Arena&) const override {
216
315
        update_value<true>(place, columns, row_num);
217
315
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
218
219
1.47k
    void reset(AggregateDataPtr place) const override {
220
1.47k
        this->data(place).sum = {};
221
1.47k
        this->data(place).count = 0;
222
1.47k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
219
8
    void reset(AggregateDataPtr place) const override {
220
8
        this->data(place).sum = {};
221
8
        this->data(place).count = 0;
222
8
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
219
4
    void reset(AggregateDataPtr place) const override {
220
4
        this->data(place).sum = {};
221
4
        this->data(place).count = 0;
222
4
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
219
159
    void reset(AggregateDataPtr place) const override {
220
159
        this->data(place).sum = {};
221
159
        this->data(place).count = 0;
222
159
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
219
17
    void reset(AggregateDataPtr place) const override {
220
17
        this->data(place).sum = {};
221
17
        this->data(place).count = 0;
222
17
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
219
31
    void reset(AggregateDataPtr place) const override {
220
31
        this->data(place).sum = {};
221
31
        this->data(place).count = 0;
222
31
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
219
20
    void reset(AggregateDataPtr place) const override {
220
20
        this->data(place).sum = {};
221
20
        this->data(place).count = 0;
222
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
219
121
    void reset(AggregateDataPtr place) const override {
220
121
        this->data(place).sum = {};
221
121
        this->data(place).count = 0;
222
121
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
219
74
    void reset(AggregateDataPtr place) const override {
220
74
        this->data(place).sum = {};
221
74
        this->data(place).count = 0;
222
74
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
219
75
    void reset(AggregateDataPtr place) const override {
220
75
        this->data(place).sum = {};
221
75
        this->data(place).count = 0;
222
75
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
219
228
    void reset(AggregateDataPtr place) const override {
220
228
        this->data(place).sum = {};
221
228
        this->data(place).count = 0;
222
228
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
Line
Count
Source
219
168
    void reset(AggregateDataPtr place) const override {
220
168
        this->data(place).sum = {};
221
168
        this->data(place).count = 0;
222
168
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
Line
Count
Source
219
61
    void reset(AggregateDataPtr place) const override {
220
61
        this->data(place).sum = {};
221
61
        this->data(place).count = 0;
222
61
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
219
444
    void reset(AggregateDataPtr place) const override {
220
444
        this->data(place).sum = {};
221
444
        this->data(place).count = 0;
222
444
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
219
68
    void reset(AggregateDataPtr place) const override {
220
68
        this->data(place).sum = {};
221
68
        this->data(place).count = 0;
222
68
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
223
224
    NO_SANITIZE_UNDEFINED void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs,
225
39.2k
                                     Arena&) const override {
226
39.2k
        if constexpr (T == TYPE_DECIMALV2) {
227
0
            this->data(place).sum += this->data(rhs).sum;
228
21.9k
        } else if constexpr (is_decimal(T)) {
229
21.9k
            this->data(place).sum += this->data(rhs).sum.value;
230
21.9k
        } else {
231
17.3k
            this->data(place).sum += this->data(rhs).sum;
232
17.3k
        }
233
39.2k
        this->data(place).count += this->data(rhs).count;
234
39.2k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
33
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
33
        } else if constexpr (is_decimal(T)) {
229
33
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
33
        this->data(place).count += this->data(rhs).count;
234
33
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
21.8k
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
21.8k
        } else if constexpr (is_decimal(T)) {
229
21.8k
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
21.8k
        this->data(place).count += this->data(rhs).count;
234
21.8k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
51
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
51
        } else if constexpr (is_decimal(T)) {
229
51
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
51
        this->data(place).count += this->data(rhs).count;
234
51
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
2
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
2
        } else if constexpr (is_decimal(T)) {
229
2
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
2
        this->data(place).count += this->data(rhs).count;
234
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
18
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
18
        } else if constexpr (is_decimal(T)) {
229
18
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
18
        this->data(place).count += this->data(rhs).count;
234
18
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
37
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
        } else if constexpr (is_decimal(T)) {
229
            this->data(place).sum += this->data(rhs).sum.value;
230
37
        } else {
231
37
            this->data(place).sum += this->data(rhs).sum;
232
37
        }
233
37
        this->data(place).count += this->data(rhs).count;
234
37
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
31
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
        } else if constexpr (is_decimal(T)) {
229
            this->data(place).sum += this->data(rhs).sum.value;
230
31
        } else {
231
31
            this->data(place).sum += this->data(rhs).sum;
232
31
        }
233
31
        this->data(place).count += this->data(rhs).count;
234
31
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
16.9k
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
        } else if constexpr (is_decimal(T)) {
229
            this->data(place).sum += this->data(rhs).sum.value;
230
16.9k
        } else {
231
16.9k
            this->data(place).sum += this->data(rhs).sum;
232
16.9k
        }
233
16.9k
        this->data(place).count += this->data(rhs).count;
234
16.9k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
229
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
        } else if constexpr (is_decimal(T)) {
229
            this->data(place).sum += this->data(rhs).sum.value;
230
229
        } else {
231
229
            this->data(place).sum += this->data(rhs).sum;
232
229
        }
233
229
        this->data(place).count += this->data(rhs).count;
234
229
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
93
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
        } else if constexpr (is_decimal(T)) {
229
            this->data(place).sum += this->data(rhs).sum.value;
230
93
        } else {
231
93
            this->data(place).sum += this->data(rhs).sum;
232
93
        }
233
93
        this->data(place).count += this->data(rhs).count;
234
93
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
235
236
8.20k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
8.20k
        this->data(place).write(buf);
238
8.20k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
5
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
5
        this->data(place).write(buf);
238
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
10
        this->data(place).write(buf);
238
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
2
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
2
        this->data(place).write(buf);
238
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
13
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
13
        this->data(place).write(buf);
238
13
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
8.15k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
8.15k
        this->data(place).write(buf);
238
8.15k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
26
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
26
        this->data(place).write(buf);
238
26
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
239
240
    void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf,
241
8.25k
                     Arena&) const override {
242
8.25k
        this->data(place).read(buf);
243
8.25k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
5
                     Arena&) const override {
242
5
        this->data(place).read(buf);
243
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
10
                     Arena&) const override {
242
10
        this->data(place).read(buf);
243
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
2
                     Arena&) const override {
242
2
        this->data(place).read(buf);
243
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
13
                     Arena&) const override {
242
13
        this->data(place).read(buf);
243
13
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
8.16k
                     Arena&) const override {
242
8.16k
        this->data(place).read(buf);
243
8.16k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
65
                     Arena&) const override {
242
65
        this->data(place).read(buf);
243
65
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
244
245
115k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
115k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
115k
        if constexpr (is_decimal(T)) {
248
73.2k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
73.2k
        } else {
250
42.3k
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
42.3k
        }
252
115k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
84
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
84
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
84
        if constexpr (is_decimal(T)) {
248
84
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
84
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
5
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
5
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
5
        if constexpr (is_decimal(T)) {
248
5
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
72.9k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
72.9k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
72.9k
        if constexpr (is_decimal(T)) {
248
72.9k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
72.9k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
18
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
18
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
18
        if constexpr (is_decimal(T)) {
248
18
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
18
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
62
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
62
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
62
        if constexpr (is_decimal(T)) {
248
62
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
62
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
22
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
22
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
22
        if constexpr (is_decimal(T)) {
248
22
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
142
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
142
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
142
        if constexpr (is_decimal(T)) {
248
142
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
142
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
147
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
147
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
147
        } else {
250
147
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
147
        }
252
147
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
118
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
118
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
118
        } else {
250
118
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
118
        }
252
118
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
697
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
697
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
697
        } else {
250
697
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
697
        }
252
697
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
916
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
916
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
916
        } else {
250
916
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
916
        }
252
916
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
60
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
60
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
60
        } else {
250
60
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
60
        }
252
60
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
40.3k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
40.3k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
40.3k
        } else {
250
40.3k
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
40.3k
        }
252
40.3k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
63
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
63
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
63
        } else {
250
63
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
63
        }
252
63
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
253
254
    void serialize_to_column(const std::vector<AggregateDataPtr>& places, size_t offset,
255
2.40k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
2.40k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
2.40k
        col.set_item_size(sizeof(Data));
258
2.40k
        col.resize(num_rows);
259
2.40k
        auto* data = col.get_data().data();
260
41.1k
        for (size_t i = 0; i != num_rows; ++i) {
261
38.7k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
38.7k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
38.7k
        }
264
2.40k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
22
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
22
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
22
        col.set_item_size(sizeof(Data));
258
22
        col.resize(num_rows);
259
22
        auto* data = col.get_data().data();
260
80
        for (size_t i = 0; i != num_rows; ++i) {
261
58
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
58
                    *reinterpret_cast<Data*>(places[i] + offset);
263
58
        }
264
22
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
1.41k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
1.41k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
1.41k
        col.set_item_size(sizeof(Data));
258
1.41k
        col.resize(num_rows);
259
1.41k
        auto* data = col.get_data().data();
260
23.2k
        for (size_t i = 0; i != num_rows; ++i) {
261
21.7k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
21.7k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
21.7k
        }
264
1.41k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
88
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
88
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
88
        col.set_item_size(sizeof(Data));
258
88
        col.resize(num_rows);
259
88
        auto* data = col.get_data().data();
260
129
        for (size_t i = 0; i != num_rows; ++i) {
261
41
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
41
                    *reinterpret_cast<Data*>(places[i] + offset);
263
41
        }
264
88
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
10
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
10
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
10
        col.set_item_size(sizeof(Data));
258
10
        col.resize(num_rows);
259
10
        auto* data = col.get_data().data();
260
12
        for (size_t i = 0; i != num_rows; ++i) {
261
2
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
2
                    *reinterpret_cast<Data*>(places[i] + offset);
263
2
        }
264
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
39
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
39
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
39
        col.set_item_size(sizeof(Data));
258
39
        col.resize(num_rows);
259
39
        auto* data = col.get_data().data();
260
104
        for (size_t i = 0; i != num_rows; ++i) {
261
65
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
65
                    *reinterpret_cast<Data*>(places[i] + offset);
263
65
        }
264
39
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
33
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
33
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
33
        col.set_item_size(sizeof(Data));
258
33
        col.resize(num_rows);
259
33
        auto* data = col.get_data().data();
260
105
        for (size_t i = 0; i != num_rows; ++i) {
261
72
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
72
                    *reinterpret_cast<Data*>(places[i] + offset);
263
72
        }
264
33
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
630
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
630
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
630
        col.set_item_size(sizeof(Data));
258
630
        col.resize(num_rows);
259
630
        auto* data = col.get_data().data();
260
17.1k
        for (size_t i = 0; i != num_rows; ++i) {
261
16.4k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
16.4k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
16.4k
        }
264
630
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
38
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
38
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
38
        col.set_item_size(sizeof(Data));
258
38
        col.resize(num_rows);
259
38
        auto* data = col.get_data().data();
260
127
        for (size_t i = 0; i != num_rows; ++i) {
261
89
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
89
                    *reinterpret_cast<Data*>(places[i] + offset);
263
89
        }
264
38
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
133
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
133
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
133
        col.set_item_size(sizeof(Data));
258
133
        col.resize(num_rows);
259
133
        auto* data = col.get_data().data();
260
253
        for (size_t i = 0; i != num_rows; ++i) {
261
120
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
120
                    *reinterpret_cast<Data*>(places[i] + offset);
263
120
        }
264
133
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
265
266
    void streaming_agg_serialize_to_column(const IColumn** columns, MutableColumnPtr& dst,
267
77
                                           const size_t num_rows, Arena&) const override {
268
77
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
269
77
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
270
77
        dst_col.set_item_size(sizeof(Data));
271
77
        dst_col.resize(num_rows);
272
77
        auto* data = dst_col.get_data().data();
273
12.3k
        for (size_t i = 0; i != num_rows; ++i) {
274
12.2k
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
275
12.2k
            state.sum = typename Data::ResultType(src_data[i]);
276
12.2k
            state.count = 1;
277
12.2k
        }
278
77
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Line
Count
Source
267
2
                                           const size_t num_rows, Arena&) const override {
268
2
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
269
2
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
270
2
        dst_col.set_item_size(sizeof(Data));
271
2
        dst_col.resize(num_rows);
272
2
        auto* data = dst_col.get_data().data();
273
4
        for (size_t i = 0; i != num_rows; ++i) {
274
2
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
275
2
            state.sum = typename Data::ResultType(src_data[i]);
276
2
            state.count = 1;
277
2
        }
278
2
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Line
Count
Source
267
72
                                           const size_t num_rows, Arena&) const override {
268
72
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
269
72
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
270
72
        dst_col.set_item_size(sizeof(Data));
271
72
        dst_col.resize(num_rows);
272
72
        auto* data = dst_col.get_data().data();
273
12.3k
        for (size_t i = 0; i != num_rows; ++i) {
274
12.2k
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
275
12.2k
            state.sum = typename Data::ResultType(src_data[i]);
276
12.2k
            state.count = 1;
277
12.2k
        }
278
72
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Line
Count
Source
267
3
                                           const size_t num_rows, Arena&) const override {
268
3
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
269
3
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
270
3
        dst_col.set_item_size(sizeof(Data));
271
3
        dst_col.resize(num_rows);
272
3
        auto* data = dst_col.get_data().data();
273
12
        for (size_t i = 0; i != num_rows; ++i) {
274
9
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
275
9
            state.sum = typename Data::ResultType(src_data[i]);
276
9
            state.count = 1;
277
9
        }
278
3
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
279
280
    void deserialize_from_column_row(AggregateDataPtr __restrict place, const IColumn& column,
281
32
                                     size_t row, Arena&) const override {
282
32
        DCHECK_LT(row, column.size());
283
32
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
284
32
        const auto* data = reinterpret_cast<const Data*>(col.get_data().data());
285
32
        this->data(place) = data[row];
286
32
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Line
Count
Source
281
1
                                     size_t row, Arena&) const override {
282
        DCHECK_LT(row, column.size());
283
1
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
284
1
        const auto* data = reinterpret_cast<const Data*>(col.get_data().data());
285
1
        this->data(place) = data[row];
286
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Line
Count
Source
281
31
                                     size_t row, Arena&) const override {
282
        DCHECK_LT(row, column.size());
283
31
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
284
31
        const auto* data = reinterpret_cast<const Data*>(col.get_data().data());
285
31
        this->data(place) = data[row];
286
31
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE27deserialize_from_column_rowEPcRKNS_7IColumnEmRNS_5ArenaE
287
288
    NO_SANITIZE_UNDEFINED void deserialize_and_merge_from_column_range(
289
            AggregateDataPtr __restrict place, const IColumn& column, size_t begin, size_t end,
290
8.43k
            Arena&) const override {
291
8.43k
        ALLOW_FP_REASSOCIATION
292
8.43k
        DCHECK(end <= column.size() && begin <= end)
293
3
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
8.43k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
8.43k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
28.8k
        for (size_t i = begin; i <= end; ++i) {
297
20.4k
            this->data(place).sum += data[i].sum;
298
20.4k
            this->data(place).count += data[i].count;
299
20.4k
        }
300
8.43k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
36
            Arena&) const override {
291
36
        ALLOW_FP_REASSOCIATION
292
36
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
36
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
36
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
80
        for (size_t i = begin; i <= end; ++i) {
297
44
            this->data(place).sum += data[i].sum;
298
44
            this->data(place).count += data[i].count;
299
44
        }
300
36
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
1
            Arena&) const override {
291
1
        ALLOW_FP_REASSOCIATION
292
1
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
2
        for (size_t i = begin; i <= end; ++i) {
297
1
            this->data(place).sum += data[i].sum;
298
1
            this->data(place).count += data[i].count;
299
1
        }
300
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
16
            Arena&) const override {
291
16
        ALLOW_FP_REASSOCIATION
292
16
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
16
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
16
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
32
        for (size_t i = begin; i <= end; ++i) {
297
16
            this->data(place).sum += data[i].sum;
298
16
            this->data(place).count += data[i].count;
299
16
        }
300
16
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
1
            Arena&) const override {
291
1
        ALLOW_FP_REASSOCIATION
292
1
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
2
        for (size_t i = begin; i <= end; ++i) {
297
1
            this->data(place).sum += data[i].sum;
298
1
            this->data(place).count += data[i].count;
299
1
        }
300
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
5
            Arena&) const override {
291
5
        ALLOW_FP_REASSOCIATION
292
5
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
5
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
5
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
10
        for (size_t i = begin; i <= end; ++i) {
297
5
            this->data(place).sum += data[i].sum;
298
5
            this->data(place).count += data[i].count;
299
5
        }
300
5
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
7
            Arena&) const override {
291
7
        ALLOW_FP_REASSOCIATION
292
7
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
7
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
7
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
14
        for (size_t i = begin; i <= end; ++i) {
297
7
            this->data(place).sum += data[i].sum;
298
7
            this->data(place).count += data[i].count;
299
7
        }
300
7
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
59
            Arena&) const override {
291
59
        ALLOW_FP_REASSOCIATION
292
59
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
59
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
59
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
126
        for (size_t i = begin; i <= end; ++i) {
297
67
            this->data(place).sum += data[i].sum;
298
67
            this->data(place).count += data[i].count;
299
67
        }
300
59
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
53
            Arena&) const override {
291
53
        ALLOW_FP_REASSOCIATION
292
53
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
53
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
53
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
114
        for (size_t i = begin; i <= end; ++i) {
297
61
            this->data(place).sum += data[i].sum;
298
61
            this->data(place).count += data[i].count;
299
61
        }
300
53
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
8.00k
            Arena&) const override {
291
8.00k
        ALLOW_FP_REASSOCIATION
292
8.00k
        DCHECK(end <= column.size() && begin <= end)
293
3
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
8.00k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
8.00k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
27.9k
        for (size_t i = begin; i <= end; ++i) {
297
19.9k
            this->data(place).sum += data[i].sum;
298
19.9k
            this->data(place).count += data[i].count;
299
19.9k
        }
300
8.00k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
194
            Arena&) const override {
291
194
        ALLOW_FP_REASSOCIATION
292
194
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
194
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
194
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
402
        for (size_t i = begin; i <= end; ++i) {
297
208
            this->data(place).sum += data[i].sum;
298
208
            this->data(place).count += data[i].count;
299
208
        }
300
194
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
1
            Arena&) const override {
291
1
        ALLOW_FP_REASSOCIATION
292
1
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
2
        for (size_t i = begin; i <= end; ++i) {
297
1
            this->data(place).sum += data[i].sum;
298
1
            this->data(place).count += data[i].count;
299
1
        }
300
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
62
            Arena&) const override {
291
62
        ALLOW_FP_REASSOCIATION
292
62
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
62
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
62
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
132
        for (size_t i = begin; i <= end; ++i) {
297
70
            this->data(place).sum += data[i].sum;
298
70
            this->data(place).count += data[i].count;
299
70
        }
300
62
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
301
302
162
    bool needs_deserialize_and_merge_scratch() const override { return false; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE35needs_deserialize_and_merge_scratchEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE35needs_deserialize_and_merge_scratchEv
Line
Count
Source
302
93
    bool needs_deserialize_and_merge_scratch() const override { return false; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE35needs_deserialize_and_merge_scratchEv
Line
Count
Source
302
69
    bool needs_deserialize_and_merge_scratch() const override { return false; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE35needs_deserialize_and_merge_scratchEv
303
304
    void deserialize_and_merge_vec(const AggregateDataPtr* places, size_t offset,
305
                                   AggregateDataPtr rhs, const IColumn* column, Arena& arena,
306
1.01k
                                   const size_t num_rows) const override {
307
1.01k
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
1.01k
        const auto* data = col.get_data().data();
309
1.01k
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
1.01k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
12
                                   const size_t num_rows) const override {
307
12
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
12
        const auto* data = col.get_data().data();
309
12
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
12
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
461
                                   const size_t num_rows) const override {
307
461
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
461
        const auto* data = col.get_data().data();
309
461
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
461
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
34
                                   const size_t num_rows) const override {
307
34
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
34
        const auto* data = col.get_data().data();
309
34
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
34
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
2
                                   const size_t num_rows) const override {
307
2
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
2
        const auto* data = col.get_data().data();
309
2
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
16
                                   const size_t num_rows) const override {
307
16
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
16
        const auto* data = col.get_data().data();
309
16
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
16
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
9
                                   const size_t num_rows) const override {
307
9
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
9
        const auto* data = col.get_data().data();
309
9
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
9
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
380
                                   const size_t num_rows) const override {
307
380
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
380
        const auto* data = col.get_data().data();
309
380
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
380
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
37
                                   const size_t num_rows) const override {
307
37
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
37
        const auto* data = col.get_data().data();
309
37
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
37
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
59
                                   const size_t num_rows) const override {
307
59
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
59
        const auto* data = col.get_data().data();
309
59
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
59
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
311
312
    void deserialize_and_merge_vec_selected(const AggregateDataPtr* places, size_t offset,
313
                                            AggregateDataPtr rhs, const IColumn* column,
314
21
                                            Arena& arena, const size_t num_rows) const override {
315
21
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
316
21
        const auto* data = col.get_data().data();
317
21
        this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows);
318
21
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
314
21
                                            Arena& arena, const size_t num_rows) const override {
315
21
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
316
21
        const auto* data = col.get_data().data();
317
21
        this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows);
318
21
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
319
320
    void serialize_without_key_to_column(ConstAggregateDataPtr __restrict place,
321
338
                                         IColumn& to) const override {
322
338
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
338
        col.set_item_size(sizeof(Data));
324
338
        size_t old_size = col.size();
325
338
        col.resize(old_size + 1);
326
338
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
338
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
20
                                         IColumn& to) const override {
322
20
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
20
        col.set_item_size(sizeof(Data));
324
20
        size_t old_size = col.size();
325
20
        col.resize(old_size + 1);
326
20
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
1
                                         IColumn& to) const override {
322
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
1
        col.set_item_size(sizeof(Data));
324
1
        size_t old_size = col.size();
325
1
        col.resize(old_size + 1);
326
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
16
                                         IColumn& to) const override {
322
16
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
16
        col.set_item_size(sizeof(Data));
324
16
        size_t old_size = col.size();
325
16
        col.resize(old_size + 1);
326
16
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
16
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
1
                                         IColumn& to) const override {
322
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
1
        col.set_item_size(sizeof(Data));
324
1
        size_t old_size = col.size();
325
1
        col.resize(old_size + 1);
326
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
5
                                         IColumn& to) const override {
322
5
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
5
        col.set_item_size(sizeof(Data));
324
5
        size_t old_size = col.size();
325
5
        col.resize(old_size + 1);
326
5
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
5
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
7
                                         IColumn& to) const override {
322
7
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
7
        col.set_item_size(sizeof(Data));
324
7
        size_t old_size = col.size();
325
7
        col.resize(old_size + 1);
326
7
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
7
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
40
                                         IColumn& to) const override {
322
40
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
40
        col.set_item_size(sizeof(Data));
324
40
        size_t old_size = col.size();
325
40
        col.resize(old_size + 1);
326
40
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
40
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
22
                                         IColumn& to) const override {
322
22
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
22
        col.set_item_size(sizeof(Data));
324
22
        size_t old_size = col.size();
325
22
        col.resize(old_size + 1);
326
22
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
131
                                         IColumn& to) const override {
322
131
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
131
        col.set_item_size(sizeof(Data));
324
131
        size_t old_size = col.size();
325
131
        col.resize(old_size + 1);
326
131
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
131
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
50
                                         IColumn& to) const override {
322
50
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
50
        col.set_item_size(sizeof(Data));
324
50
        size_t old_size = col.size();
325
50
        col.resize(old_size + 1);
326
50
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
50
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
1
                                         IColumn& to) const override {
322
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
1
        col.set_item_size(sizeof(Data));
324
1
        size_t old_size = col.size();
325
1
        col.resize(old_size + 1);
326
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
44
                                         IColumn& to) const override {
322
44
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
44
        col.set_item_size(sizeof(Data));
324
44
        size_t old_size = col.size();
325
44
        col.resize(old_size + 1);
326
44
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
44
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
328
329
3.13k
    MutableColumnPtr create_serialize_column() const override {
330
3.13k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
3.13k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
329
42
    MutableColumnPtr create_serialize_column() const override {
330
42
        return ColumnFixedLengthObject::create(sizeof(Data));
331
42
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
1
    MutableColumnPtr create_serialize_column() const override {
330
1
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
329
1.40k
    MutableColumnPtr create_serialize_column() const override {
330
1.40k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1.40k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
1
    MutableColumnPtr create_serialize_column() const override {
330
1
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
329
87
    MutableColumnPtr create_serialize_column() const override {
330
87
        return ColumnFixedLengthObject::create(sizeof(Data));
331
87
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
5
    MutableColumnPtr create_serialize_column() const override {
330
5
        return ColumnFixedLengthObject::create(sizeof(Data));
331
5
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
17
    MutableColumnPtr create_serialize_column() const override {
330
17
        return ColumnFixedLengthObject::create(sizeof(Data));
331
17
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
84
    MutableColumnPtr create_serialize_column() const override {
330
84
        return ColumnFixedLengthObject::create(sizeof(Data));
331
84
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
55
    MutableColumnPtr create_serialize_column() const override {
330
55
        return ColumnFixedLengthObject::create(sizeof(Data));
331
55
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
1.15k
    MutableColumnPtr create_serialize_column() const override {
330
1.15k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1.15k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
329
100
    MutableColumnPtr create_serialize_column() const override {
330
100
        return ColumnFixedLengthObject::create(sizeof(Data));
331
100
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
329
1
    MutableColumnPtr create_serialize_column() const override {
330
1
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Line
Count
Source
329
178
    MutableColumnPtr create_serialize_column() const override {
330
178
        return ColumnFixedLengthObject::create(sizeof(Data));
331
178
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
332
333
3.10k
    DataTypePtr get_serialized_type() const override {
334
3.10k
        return std::make_shared<DataTypeFixedLengthObject>();
335
3.10k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
333
42
    DataTypePtr get_serialized_type() const override {
334
42
        return std::make_shared<DataTypeFixedLengthObject>();
335
42
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
1
    DataTypePtr get_serialized_type() const override {
334
1
        return std::make_shared<DataTypeFixedLengthObject>();
335
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
333
1.42k
    DataTypePtr get_serialized_type() const override {
334
1.42k
        return std::make_shared<DataTypeFixedLengthObject>();
335
1.42k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
1
    DataTypePtr get_serialized_type() const override {
334
1
        return std::make_shared<DataTypeFixedLengthObject>();
335
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
333
86
    DataTypePtr get_serialized_type() const override {
334
86
        return std::make_shared<DataTypeFixedLengthObject>();
335
86
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
5
    DataTypePtr get_serialized_type() const override {
334
5
        return std::make_shared<DataTypeFixedLengthObject>();
335
5
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
17
    DataTypePtr get_serialized_type() const override {
334
17
        return std::make_shared<DataTypeFixedLengthObject>();
335
17
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
84
    DataTypePtr get_serialized_type() const override {
334
84
        return std::make_shared<DataTypeFixedLengthObject>();
335
84
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
55
    DataTypePtr get_serialized_type() const override {
334
55
        return std::make_shared<DataTypeFixedLengthObject>();
335
55
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
1.13k
    DataTypePtr get_serialized_type() const override {
334
1.13k
        return std::make_shared<DataTypeFixedLengthObject>();
335
1.13k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
333
71
    DataTypePtr get_serialized_type() const override {
334
71
        return std::make_shared<DataTypeFixedLengthObject>();
335
71
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
333
1
    DataTypePtr get_serialized_type() const override {
334
1
        return std::make_shared<DataTypeFixedLengthObject>();
335
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Line
Count
Source
333
179
    DataTypePtr get_serialized_type() const override {
334
179
        return std::make_shared<DataTypeFixedLengthObject>();
335
179
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
336
337
    // Floating-point accumulation is not exactly invertible: subtracting an outgoing
338
    // value cannot restore the rounding lost when it was added, so a value that has
339
    // left the frame would still distort later results. Recompute such frames instead.
340
724
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE26supported_incremental_modeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE26supported_incremental_modeEv
Line
Count
Source
340
40
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE26supported_incremental_modeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE26supported_incremental_modeEv
Line
Count
Source
340
19
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE26supported_incremental_modeEv
Line
Count
Source
340
1
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv
Line
Count
Source
340
1
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv
Line
Count
Source
340
39
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv
Line
Count
Source
340
571
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Line
Count
Source
340
53
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv
341
342
    void execute_function_with_incremental(int64_t partition_start, int64_t partition_end,
343
                                           int64_t frame_start, int64_t frame_end,
344
                                           AggregateDataPtr place, const IColumn** columns,
345
                                           Arena& arena, bool previous_is_nul, bool end_is_nul,
346
                                           bool has_null, UInt8* use_null_result,
347
186
                                           UInt8* could_use_previous_result) const override {
348
186
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
349
186
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
350
186
        if (current_frame_start >= current_frame_end) {
351
0
            *use_null_result = true;
352
0
            return;
353
0
        }
354
186
        if (*could_use_previous_result) {
355
168
            auto outcoming_pos = frame_start - 1;
356
168
            auto incoming_pos = frame_end - 1;
357
168
            if (!previous_is_nul && outcoming_pos >= partition_start &&
358
168
                outcoming_pos < partition_end) {
359
120
                update_value<false>(place, columns, outcoming_pos);
360
120
            }
361
168
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
362
132
                update_value<true>(place, columns, incoming_pos);
363
132
            }
364
168
        } else {
365
18
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
366
18
                                         place, columns, arena, use_null_result,
367
18
                                         could_use_previous_result);
368
18
        }
369
186
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Line
Count
Source
347
24
                                           UInt8* could_use_previous_result) const override {
348
24
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
349
24
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
350
24
        if (current_frame_start >= current_frame_end) {
351
0
            *use_null_result = true;
352
0
            return;
353
0
        }
354
24
        if (*could_use_previous_result) {
355
24
            auto outcoming_pos = frame_start - 1;
356
24
            auto incoming_pos = frame_end - 1;
357
24
            if (!previous_is_nul && outcoming_pos >= partition_start &&
358
24
                outcoming_pos < partition_end) {
359
20
                update_value<false>(place, columns, outcoming_pos);
360
20
            }
361
24
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
362
20
                update_value<true>(place, columns, incoming_pos);
363
20
            }
364
24
        } else {
365
0
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
366
0
                                         place, columns, arena, use_null_result,
367
0
                                         could_use_previous_result);
368
0
        }
369
24
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Line
Count
Source
347
3
                                           UInt8* could_use_previous_result) const override {
348
3
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
349
3
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
350
3
        if (current_frame_start >= current_frame_end) {
351
0
            *use_null_result = true;
352
0
            return;
353
0
        }
354
3
        if (*could_use_previous_result) {
355
3
            auto outcoming_pos = frame_start - 1;
356
3
            auto incoming_pos = frame_end - 1;
357
3
            if (!previous_is_nul && outcoming_pos >= partition_start &&
358
3
                outcoming_pos < partition_end) {
359
2
                update_value<false>(place, columns, outcoming_pos);
360
2
            }
361
3
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
362
3
                update_value<true>(place, columns, incoming_pos);
363
3
            }
364
3
        } else {
365
0
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
366
0
                                         place, columns, arena, use_null_result,
367
0
                                         could_use_previous_result);
368
0
        }
369
3
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Line
Count
Source
347
15
                                           UInt8* could_use_previous_result) const override {
348
15
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
349
15
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
350
15
        if (current_frame_start >= current_frame_end) {
351
0
            *use_null_result = true;
352
0
            return;
353
0
        }
354
15
        if (*could_use_previous_result) {
355
15
            auto outcoming_pos = frame_start - 1;
356
15
            auto incoming_pos = frame_end - 1;
357
15
            if (!previous_is_nul && outcoming_pos >= partition_start &&
358
15
                outcoming_pos < partition_end) {
359
12
                update_value<false>(place, columns, outcoming_pos);
360
12
            }
361
15
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
362
13
                update_value<true>(place, columns, incoming_pos);
363
13
            }
364
15
        } else {
365
0
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
366
0
                                         place, columns, arena, use_null_result,
367
0
                                         could_use_previous_result);
368
0
        }
369
15
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Line
Count
Source
347
144
                                           UInt8* could_use_previous_result) const override {
348
144
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
349
144
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
350
144
        if (current_frame_start >= current_frame_end) {
351
0
            *use_null_result = true;
352
0
            return;
353
0
        }
354
144
        if (*could_use_previous_result) {
355
126
            auto outcoming_pos = frame_start - 1;
356
126
            auto incoming_pos = frame_end - 1;
357
126
            if (!previous_is_nul && outcoming_pos >= partition_start &&
358
126
                outcoming_pos < partition_end) {
359
86
                update_value<false>(place, columns, outcoming_pos);
360
86
            }
361
126
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
362
96
                update_value<true>(place, columns, incoming_pos);
363
96
            }
364
126
        } else {
365
18
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
366
18
                                         place, columns, arena, use_null_result,
367
18
                                         could_use_previous_result);
368
18
        }
369
144
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
370
371
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
372
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
373
                                Arena& arena, UInt8* use_null_result,
374
508
                                UInt8* could_use_previous_result) const override {
375
508
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
508
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
508
        if (current_frame_start >= current_frame_end) {
378
20
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
488
        } else {
382
1.21k
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
729
                update_value<true>(place, columns, row_num);
384
729
            }
385
488
            *use_null_result = false;
386
488
            *could_use_previous_result = true;
387
488
        }
388
508
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
4
                                UInt8* could_use_previous_result) const override {
375
4
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
4
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
4
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
4
        } else {
382
12
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
8
                update_value<true>(place, columns, row_num);
384
8
            }
385
4
            *use_null_result = false;
386
4
            *could_use_previous_result = true;
387
4
        }
388
4
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
24
                                UInt8* could_use_previous_result) const override {
375
24
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
24
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
24
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
24
        } else {
382
64
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
40
                update_value<true>(place, columns, row_num);
384
40
            }
385
24
            *use_null_result = false;
386
24
            *could_use_previous_result = true;
387
24
        }
388
24
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
1
                                UInt8* could_use_previous_result) const override {
375
1
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
1
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
1
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
1
        } else {
382
2
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
1
                update_value<true>(place, columns, row_num);
384
1
            }
385
1
            *use_null_result = false;
386
1
            *could_use_previous_result = true;
387
1
        }
388
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
1
                                UInt8* could_use_previous_result) const override {
375
1
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
1
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
1
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
1
        } else {
382
2
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
1
                update_value<true>(place, columns, row_num);
384
1
            }
385
1
            *use_null_result = false;
386
1
            *could_use_previous_result = true;
387
1
        }
388
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
89
                                UInt8* could_use_previous_result) const override {
375
89
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
89
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
89
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
89
        } else {
382
241
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
152
                update_value<true>(place, columns, row_num);
384
152
            }
385
89
            *use_null_result = false;
386
89
            *could_use_previous_result = true;
387
89
        }
388
89
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
226
                                UInt8* could_use_previous_result) const override {
375
226
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
226
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
226
        if (current_frame_start >= current_frame_end) {
378
20
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
206
        } else {
382
497
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
291
                update_value<true>(place, columns, row_num);
384
291
            }
385
206
            *use_null_result = false;
386
206
            *could_use_previous_result = true;
387
206
        }
388
226
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
163
                                UInt8* could_use_previous_result) const override {
375
163
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
163
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
163
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
163
        } else {
382
399
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
236
                update_value<true>(place, columns, row_num);
384
236
            }
385
163
            *use_null_result = false;
386
163
            *could_use_previous_result = true;
387
163
        }
388
163
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
389
390
private:
391
    uint32_t output_scale;
392
    ResultType multiplier;
393
};
394
395
} // namespace doris