Coverage Report

Created: 2026-10-30 05:43

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
41.0k
    ResultT result(ResultType multiplier) const {
81
41.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
41.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
41.0k
        } else {
92
41.0k
            if constexpr (T == TYPE_DECIMAL256) {
93
187
                return static_cast<ResultT>(sum * multiplier /
94
187
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
40.8k
            } else {
96
40.8k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
40.8k
            }
98
41.0k
        }
99
41.0k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE6resultINS_7DecimalIiEEEET_S5_
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE6resultINS_7DecimalIlEEEET_S5_
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE6resultINS_12Decimal128V3EEET_S4_
Line
Count
Source
80
40.8k
    ResultT result(ResultType multiplier) const {
81
40.8k
        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
40.8k
        } else {
92
            if constexpr (T == TYPE_DECIMAL256) {
93
                return static_cast<ResultT>(sum * multiplier /
94
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
40.8k
            } else {
96
40.8k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
40.8k
            }
98
40.8k
        }
99
40.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.5k
    ResultT result() const {
103
42.5k
        if constexpr (std::is_floating_point_v<ResultT>) {
104
42.5k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
42.5k
                return static_cast<ResultT>(sum) /
106
42.5k
                       static_cast<ResultT>(count); /// allow division by zero
107
42.5k
            }
108
42.5k
        }
109
110
42.5k
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
42.5k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
42.5k
    }
_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
977
    ResultT result() const {
103
977
        if constexpr (std::is_floating_point_v<ResultT>) {
104
977
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
977
                return static_cast<ResultT>(sum) /
106
977
                       static_cast<ResultT>(count); /// allow division by zero
107
977
            }
108
977
        }
109
110
977
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
977
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
977
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE6resultIdEET_v
Line
Count
Source
102
40.5k
    ResultT result() const {
103
40.5k
        if constexpr (std::is_floating_point_v<ResultT>) {
104
40.5k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
40.5k
                return static_cast<ResultT>(sum) /
106
40.5k
                       static_cast<ResultT>(count); /// allow division by zero
107
40.5k
            }
108
40.5k
        }
109
110
40.5k
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
40.5k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
40.5k
    }
116
117
8.21k
    void write(BufferWritable& buf) const {
118
8.21k
        buf.write_binary(sum);
119
8.21k
        buf.write_binary(count);
120
8.21k
    }
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
28
    void write(BufferWritable& buf) const {
118
28
        buf.write_binary(sum);
119
28
        buf.write_binary(count);
120
28
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE5writeERNS_14BufferWritableE
121
122
8.26k
    void read(BufferReadable& buf) {
123
8.26k
        buf.read_binary(sum);
124
8.26k
        buf.read_binary(count);
125
8.26k
    }
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.17k
    void read(BufferReadable& buf) {
123
8.17k
        buf.read_binary(sum);
124
8.17k
        buf.read_binary(count);
125
8.17k
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
122
67
    void read(BufferReadable& buf) {
123
67
        buf.read_binary(sum);
124
67
        buf.read_binary(count);
125
67
    }
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.49k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
2.49k
                      argument_types_),
161
2.49k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
2.49k
                                    get_decimal_scale(*argument_types_[0]))) {
163
2.49k
        if constexpr (is_decimal(T)) {
164
738
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
738
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
738
        }
167
2.49k
    }
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
41
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
41
                      argument_types_),
161
41
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
41
                                    get_decimal_scale(*argument_types_[0]))) {
163
41
        if constexpr (is_decimal(T)) {
164
41
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
41
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
41
        }
167
41
    }
_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
508
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
508
                      argument_types_),
161
508
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
508
                                    get_decimal_scale(*argument_types_[0]))) {
163
508
        if constexpr (is_decimal(T)) {
164
508
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
508
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
508
        }
167
508
    }
_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
71
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
71
                      argument_types_),
161
71
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
71
                                    get_decimal_scale(*argument_types_[0]))) {
163
71
        if constexpr (is_decimal(T)) {
164
71
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
71
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
71
        }
167
71
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
27
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
27
                      argument_types_),
161
27
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
27
                                    get_decimal_scale(*argument_types_[0]))) {
163
27
        if constexpr (is_decimal(T)) {
164
27
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
27
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
27
        }
167
27
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
74
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
74
                      argument_types_),
161
74
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
74
                                    get_decimal_scale(*argument_types_[0]))) {
163
74
        if constexpr (is_decimal(T)) {
164
74
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
74
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
74
        }
167
74
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
137
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
137
                      argument_types_),
161
137
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
137
                                    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
137
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
66
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
66
                      argument_types_),
161
66
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
66
                                    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
66
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
995
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
995
                      argument_types_),
161
995
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
995
                                    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
995
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
254
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
254
                      argument_types_),
161
254
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
254
                                    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
254
    }
_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
212
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
212
                      argument_types_),
161
212
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
212
                                    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
212
    }
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
433
    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
22
    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
141
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
161
    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
63
    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.0k
    DataTypePtr get_return_type() const override {
172
11.0k
        if constexpr (is_decimal(T)) {
173
3.81k
            return std::make_shared<ResultDataType>(
174
3.81k
                    ResultDataType::max_precision(),
175
3.81k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
7.28k
        } else {
177
7.28k
            return std::make_shared<ResultDataType>();
178
7.28k
        }
179
11.0k
    }
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
304
    DataTypePtr get_return_type() const override {
172
304
        if constexpr (is_decimal(T)) {
173
304
            return std::make_shared<ResultDataType>(
174
304
                    ResultDataType::max_precision(),
175
304
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
304
    }
_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
2.77k
    DataTypePtr get_return_type() const override {
172
2.77k
        if constexpr (is_decimal(T)) {
173
2.77k
            return std::make_shared<ResultDataType>(
174
2.77k
                    ResultDataType::max_precision(),
175
2.77k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
2.77k
    }
_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
314
    DataTypePtr get_return_type() const override {
172
314
        if constexpr (is_decimal(T)) {
173
314
            return std::make_shared<ResultDataType>(
174
314
                    ResultDataType::max_precision(),
175
314
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
314
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
103
    DataTypePtr get_return_type() const override {
172
103
        if constexpr (is_decimal(T)) {
173
103
            return std::make_shared<ResultDataType>(
174
103
                    ResultDataType::max_precision(),
175
103
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
103
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
281
    DataTypePtr get_return_type() const override {
172
281
        if constexpr (is_decimal(T)) {
173
281
            return std::make_shared<ResultDataType>(
174
281
                    ResultDataType::max_precision(),
175
281
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
281
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
441
    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
441
        } else {
177
441
            return std::make_shared<ResultDataType>();
178
441
        }
179
441
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
187
    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
187
        } else {
177
187
            return std::make_shared<ResultDataType>();
178
187
        }
179
187
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
2.52k
    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.52k
        } else {
177
2.52k
            return std::make_shared<ResultDataType>();
178
2.52k
        }
179
2.52k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
1.26k
    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.26k
        } else {
177
1.26k
            return std::make_shared<ResultDataType>();
178
1.26k
        }
179
1.26k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
87
    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
87
        } else {
177
87
            return std::make_shared<ResultDataType>();
178
87
        }
179
87
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
171
2.70k
    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.70k
        } else {
177
2.70k
            return std::make_shared<ResultDataType>();
178
2.70k
        }
179
2.70k
    }
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
46
    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
26
    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
892
    WindowSpillStrategy window_spill_strategy() const override {
184
892
        return WindowSpillStrategy::PARTITION_REDUCE;
185
892
    }
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
8
    WindowSpillStrategy window_spill_strategy() const override {
184
8
        return WindowSpillStrategy::PARTITION_REDUCE;
185
8
    }
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
221
    WindowSpillStrategy window_spill_strategy() const override {
184
221
        return WindowSpillStrategy::PARTITION_REDUCE;
185
221
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE21window_spill_strategyEv
Line
Count
Source
183
2
    WindowSpillStrategy window_spill_strategy() const override {
184
2
        return WindowSpillStrategy::PARTITION_REDUCE;
185
2
    }
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
2
    WindowSpillStrategy window_spill_strategy() const override {
184
2
        return WindowSpillStrategy::PARTITION_REDUCE;
185
2
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
Line
Count
Source
183
47
    WindowSpillStrategy window_spill_strategy() const override {
184
47
        return WindowSpillStrategy::PARTITION_REDUCE;
185
47
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE21window_spill_strategyEv
Line
Count
Source
183
157
    WindowSpillStrategy window_spill_strategy() const override {
184
157
        return WindowSpillStrategy::PARTITION_REDUCE;
185
157
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE21window_spill_strategyEv
Line
Count
Source
183
455
    WindowSpillStrategy window_spill_strategy() const override {
184
455
        return WindowSpillStrategy::PARTITION_REDUCE;
185
455
    }
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.60M
                                            const IColumn** columns, ssize_t row_num) const {
190
9.60M
        ALLOW_FP_REASSOCIATION
191
9.60M
        const auto& column =
192
9.60M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
9.60M
        if constexpr (is_add) {
194
9.60M
            if constexpr (T == TYPE_DECIMALV2) {
195
0
                this->data(place).sum += column.get_data()[row_num];
196
7.68M
            } else if constexpr (is_decimal(T)) {
197
7.68M
                this->data(place).sum += column.get_data()[row_num].value;
198
7.68M
            } else {
199
1.91M
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.91M
            }
201
9.60M
            ++this->data(place).count;
202
9.60M
        } else {
203
120
            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
98
            } else {
208
98
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
98
            }
210
120
            --this->data(place).count;
211
120
        }
212
9.60M
    }
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
178
                                            const IColumn** columns, ssize_t row_num) const {
190
178
        ALLOW_FP_REASSOCIATION
191
178
        const auto& column =
192
178
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
178
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
178
            } else if constexpr (is_decimal(T)) {
197
178
                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
178
            ++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
178
    }
_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.68M
                                            const IColumn** columns, ssize_t row_num) const {
190
7.68M
        ALLOW_FP_REASSOCIATION
191
7.68M
        const auto& column =
192
7.68M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
7.68M
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
7.68M
            } else if constexpr (is_decimal(T)) {
197
7.68M
                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.68M
            ++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.68M
    }
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
561
                                            const IColumn** columns, ssize_t row_num) const {
190
561
        ALLOW_FP_REASSOCIATION
191
561
        const auto& column =
192
561
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
561
        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
561
            } else {
199
561
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
561
            }
201
561
            ++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
561
    }
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
26.9k
                                            const IColumn** columns, ssize_t row_num) const {
190
26.9k
        ALLOW_FP_REASSOCIATION
191
26.9k
        const auto& column =
192
26.9k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
26.9k
        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
26.9k
            } else {
199
26.9k
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
26.9k
            }
201
26.9k
            ++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
26.9k
    }
_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.26k
                                            const IColumn** columns, ssize_t row_num) const {
190
1.26k
        ALLOW_FP_REASSOCIATION
191
1.26k
        const auto& column =
192
1.26k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
1.26k
        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.26k
            } else {
199
1.26k
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.26k
            }
201
1.26k
            ++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.26k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
86
                                            const IColumn** columns, ssize_t row_num) const {
190
86
        ALLOW_FP_REASSOCIATION
191
86
        const auto& column =
192
86
                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
86
        } 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
86
            } else {
208
86
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
86
            }
210
86
            --this->data(place).count;
211
86
        }
212
86
    }
_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.58M
             Arena&) const override {
216
9.58M
        update_value<true>(place, columns, row_num);
217
9.58M
    }
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
151
             Arena&) const override {
216
151
        update_value<true>(place, columns, row_num);
217
151
    }
_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.67M
             Arena&) const override {
216
7.67M
        update_value<true>(place, columns, row_num);
217
7.67M
    }
_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
560
             Arena&) const override {
216
560
        update_value<true>(place, columns, row_num);
217
560
    }
_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
26.7k
             Arena&) const override {
216
26.7k
        update_value<true>(place, columns, row_num);
217
26.7k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
879
             Arena&) const override {
216
879
        update_value<true>(place, columns, row_num);
217
879
    }
_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
226
    void reset(AggregateDataPtr place) const override {
220
226
        this->data(place).sum = {};
221
226
        this->data(place).count = 0;
222
226
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
Line
Count
Source
219
169
    void reset(AggregateDataPtr place) const override {
220
169
        this->data(place).sum = {};
221
169
        this->data(place).count = 0;
222
169
    }
_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
18.4k
                                     Arena&) const override {
226
18.4k
        if constexpr (T == TYPE_DECIMALV2) {
227
0
            this->data(place).sum += this->data(rhs).sum;
228
1.14k
        } else if constexpr (is_decimal(T)) {
229
1.14k
            this->data(place).sum += this->data(rhs).sum.value;
230
17.3k
        } else {
231
17.3k
            this->data(place).sum += this->data(rhs).sum;
232
17.3k
        }
233
18.4k
        this->data(place).count += this->data(rhs).count;
234
18.4k
    }
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
1.04k
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
1.04k
        } else if constexpr (is_decimal(T)) {
229
1.04k
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
1.04k
        this->data(place).count += this->data(rhs).count;
234
1.04k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
47
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
47
        } else if constexpr (is_decimal(T)) {
229
47
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
47
        this->data(place).count += this->data(rhs).count;
234
47
    }
_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
42
                                     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
42
        } else {
231
42
            this->data(place).sum += this->data(rhs).sum;
232
42
        }
233
42
        this->data(place).count += this->data(rhs).count;
234
42
    }
_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
231
                                     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
231
        } else {
231
231
            this->data(place).sum += this->data(rhs).sum;
232
231
        }
233
231
        this->data(place).count += this->data(rhs).count;
234
231
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
87
                                     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
87
        } else {
231
87
            this->data(place).sum += this->data(rhs).sum;
232
87
        }
233
87
        this->data(place).count += this->data(rhs).count;
234
87
    }
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.21k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
8.21k
        this->data(place).write(buf);
238
8.21k
    }
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
28
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
28
        this->data(place).write(buf);
238
28
    }
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.26k
                     Arena&) const override {
242
8.26k
        this->data(place).read(buf);
243
8.26k
    }
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.17k
                     Arena&) const override {
242
8.17k
        this->data(place).read(buf);
243
8.17k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
67
                     Arena&) const override {
242
67
        this->data(place).read(buf);
243
67
    }
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
83.4k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
83.4k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
83.4k
        if constexpr (is_decimal(T)) {
248
40.9k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
42.4k
        } else {
250
42.4k
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
42.4k
        }
252
83.4k
    }
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
40.6k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
40.6k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
40.6k
        if constexpr (is_decimal(T)) {
248
40.6k
            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
40.6k
    }
_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
917
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
917
        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
917
        } else {
250
917
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
917
        }
252
917
    }
_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.4k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
40.4k
        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.4k
        } else {
250
40.4k
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
40.4k
        }
252
40.4k
    }
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.17k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
2.17k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
2.17k
        col.set_item_size(sizeof(Data));
258
2.17k
        col.resize(num_rows);
259
2.17k
        auto* data = col.get_data().data();
260
20.1k
        for (size_t i = 0; i != num_rows; ++i) {
261
17.9k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
17.9k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
17.9k
        }
264
2.17k
    }
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.09k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
1.09k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
1.09k
        col.set_item_size(sizeof(Data));
258
1.09k
        col.resize(num_rows);
259
1.09k
        auto* data = col.get_data().data();
260
2.14k
        for (size_t i = 0; i != num_rows; ++i) {
261
1.04k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
1.04k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
1.04k
        }
264
1.09k
    }
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
87
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
87
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
87
        col.set_item_size(sizeof(Data));
258
87
        col.resize(num_rows);
259
87
        auto* data = col.get_data().data();
260
124
        for (size_t i = 0; i != num_rows; ++i) {
261
37
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
37
                    *reinterpret_cast<Data*>(places[i] + offset);
263
37
        }
264
87
    }
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
67
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
67
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
67
        col.set_item_size(sizeof(Data));
258
67
        col.resize(num_rows);
259
67
        auto* data = col.get_data().data();
260
137
        for (size_t i = 0; i != num_rows; ++i) {
261
70
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
70
                    *reinterpret_cast<Data*>(places[i] + offset);
263
70
        }
264
67
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
29
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
29
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
29
        col.set_item_size(sizeof(Data));
258
29
        col.resize(num_rows);
259
29
        auto* data = col.get_data().data();
260
101
        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
29
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
631
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
631
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
631
        col.set_item_size(sizeof(Data));
258
631
        col.resize(num_rows);
259
631
        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
631
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
40
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
40
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
40
        col.set_item_size(sizeof(Data));
258
40
        col.resize(num_rows);
259
40
        auto* data = col.get_data().data();
260
129
        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
40
    }
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
186
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
186
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
186
        col.set_item_size(sizeof(Data));
258
186
        col.resize(num_rows);
259
186
        auto* data = col.get_data().data();
260
300
        for (size_t i = 0; i != num_rows; ++i) {
261
114
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
114
                    *reinterpret_cast<Data*>(places[i] + offset);
263
114
        }
264
186
    }
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.53k
            Arena&) const override {
291
8.53k
        ALLOW_FP_REASSOCIATION
292
8.53k
        DCHECK(end <= column.size() && begin <= end)
293
7
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
8.53k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
8.53k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
29.1k
        for (size_t i = begin; i <= end; ++i) {
297
20.5k
            this->data(place).sum += data[i].sum;
298
20.5k
            this->data(place).count += data[i].count;
299
20.5k
        }
300
8.53k
    }
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
39
            Arena&) const override {
291
39
        ALLOW_FP_REASSOCIATION
292
39
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
39
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
39
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
86
        for (size_t i = begin; i <= end; ++i) {
297
47
            this->data(place).sum += data[i].sum;
298
47
            this->data(place).count += data[i].count;
299
47
        }
300
39
    }
_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
25
            Arena&) const override {
291
25
        ALLOW_FP_REASSOCIATION
292
25
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
25
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
25
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
50
        for (size_t i = begin; i <= end; ++i) {
297
25
            this->data(place).sum += data[i].sum;
298
25
            this->data(place).count += data[i].count;
299
25
        }
300
25
    }
_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
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_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
13
            Arena&) const override {
291
13
        ALLOW_FP_REASSOCIATION
292
13
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
13
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
13
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
26
        for (size_t i = begin; i <= end; ++i) {
297
13
            this->data(place).sum += data[i].sum;
298
13
            this->data(place).count += data[i].count;
299
13
        }
300
13
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
52
            Arena&) const override {
291
52
        ALLOW_FP_REASSOCIATION
292
52
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
52
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
52
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
112
        for (size_t i = begin; i <= end; ++i) {
297
60
            this->data(place).sum += data[i].sum;
298
60
            this->data(place).count += data[i].count;
299
60
        }
300
52
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
48
            Arena&) const override {
291
48
        ALLOW_FP_REASSOCIATION
292
48
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
48
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
48
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
104
        for (size_t i = begin; i <= end; ++i) {
297
56
            this->data(place).sum += data[i].sum;
298
56
            this->data(place).count += data[i].count;
299
56
        }
300
48
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
8.07k
            Arena&) const override {
291
8.07k
        ALLOW_FP_REASSOCIATION
292
8.07k
        DCHECK(end <= column.size() && begin <= end)
293
7
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
8.07k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
8.07k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
28.1k
        for (size_t i = begin; i <= end; ++i) {
297
20.0k
            this->data(place).sum += data[i].sum;
298
20.0k
            this->data(place).count += data[i].count;
299
20.0k
        }
300
8.07k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
204
            Arena&) const override {
291
204
        ALLOW_FP_REASSOCIATION
292
204
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
204
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
204
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
422
        for (size_t i = begin; i <= end; ++i) {
297
218
            this->data(place).sum += data[i].sum;
298
218
            this->data(place).count += data[i].count;
299
218
        }
300
204
    }
_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
79
            Arena&) const override {
291
79
        ALLOW_FP_REASSOCIATION
292
79
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
79
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
79
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
166
        for (size_t i = begin; i <= end; ++i) {
297
87
            this->data(place).sum += data[i].sum;
298
87
            this->data(place).count += data[i].count;
299
87
        }
300
79
    }
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
163
    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
94
    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
922
                                   const size_t num_rows) const override {
307
922
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
922
        const auto* data = col.get_data().data();
309
922
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
922
    }
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
13
                                   const size_t num_rows) const override {
307
13
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
13
        const auto* data = col.get_data().data();
309
13
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
13
    }
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
348
                                   const size_t num_rows) const override {
307
348
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
348
        const auto* data = col.get_data().data();
309
348
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
348
    }
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
35
                                   const size_t num_rows) const override {
307
35
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
35
        const auto* data = col.get_data().data();
309
35
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
35
    }
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
22
                                   const size_t num_rows) const override {
307
22
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
22
        const auto* data = col.get_data().data();
309
22
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_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
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
393
                                   const size_t num_rows) const override {
307
393
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
393
        const auto* data = col.get_data().data();
309
393
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
393
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
42
                                   const size_t num_rows) const override {
307
42
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
42
        const auto* data = col.get_data().data();
309
42
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
42
    }
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
55
                                   const size_t num_rows) const override {
307
55
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
55
        const auto* data = col.get_data().data();
309
55
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
55
    }
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
361
                                         IColumn& to) const override {
322
361
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
361
        col.set_item_size(sizeof(Data));
324
361
        size_t old_size = col.size();
325
361
        col.resize(old_size + 1);
326
361
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
361
    }
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
23
                                         IColumn& to) const override {
322
23
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
23
        col.set_item_size(sizeof(Data));
324
23
        size_t old_size = col.size();
325
23
        col.resize(old_size + 1);
326
23
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
23
    }
_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
25
                                         IColumn& to) const override {
322
25
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
25
        col.set_item_size(sizeof(Data));
324
25
        size_t old_size = col.size();
325
25
        col.resize(old_size + 1);
326
25
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
25
    }
_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
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_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
13
                                         IColumn& to) const override {
322
13
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
13
        col.set_item_size(sizeof(Data));
324
13
        size_t old_size = col.size();
325
13
        col.resize(old_size + 1);
326
13
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
13
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
33
                                         IColumn& to) const override {
322
33
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
33
        col.set_item_size(sizeof(Data));
324
33
        size_t old_size = col.size();
325
33
        col.resize(old_size + 1);
326
33
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
33
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
17
                                         IColumn& to) const override {
322
17
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
17
        col.set_item_size(sizeof(Data));
324
17
        size_t old_size = col.size();
325
17
        col.resize(old_size + 1);
326
17
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
17
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
126
                                         IColumn& to) const override {
322
126
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
126
        col.set_item_size(sizeof(Data));
324
126
        size_t old_size = col.size();
325
126
        col.resize(old_size + 1);
326
126
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
126
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
59
                                         IColumn& to) const override {
322
59
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
59
        col.set_item_size(sizeof(Data));
324
59
        size_t old_size = col.size();
325
59
        col.resize(old_size + 1);
326
59
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
59
    }
_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
61
                                         IColumn& to) const override {
322
61
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
61
        col.set_item_size(sizeof(Data));
324
61
        size_t old_size = col.size();
325
61
        col.resize(old_size + 1);
326
61
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
61
    }
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
2.94k
    MutableColumnPtr create_serialize_column() const override {
330
2.94k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
2.94k
    }
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
45
    MutableColumnPtr create_serialize_column() const override {
330
45
        return ColumnFixedLengthObject::create(sizeof(Data));
331
45
    }
_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.12k
    MutableColumnPtr create_serialize_column() const override {
330
1.12k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1.12k
    }
_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
88
    MutableColumnPtr create_serialize_column() const override {
330
88
        return ColumnFixedLengthObject::create(sizeof(Data));
331
88
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_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_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
23
    MutableColumnPtr create_serialize_column() const override {
330
23
        return ColumnFixedLengthObject::create(sizeof(Data));
331
23
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
106
    MutableColumnPtr create_serialize_column() const override {
330
106
        return ColumnFixedLengthObject::create(sizeof(Data));
331
106
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
47
    MutableColumnPtr create_serialize_column() const override {
330
47
        return ColumnFixedLengthObject::create(sizeof(Data));
331
47
    }
_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
112
    MutableColumnPtr create_serialize_column() const override {
330
112
        return ColumnFixedLengthObject::create(sizeof(Data));
331
112
    }
_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
246
    MutableColumnPtr create_serialize_column() const override {
330
246
        return ColumnFixedLengthObject::create(sizeof(Data));
331
246
    }
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
2.89k
    DataTypePtr get_serialized_type() const override {
334
2.89k
        return std::make_shared<DataTypeFixedLengthObject>();
335
2.89k
    }
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
44
    DataTypePtr get_serialized_type() const override {
334
44
        return std::make_shared<DataTypeFixedLengthObject>();
335
44
    }
_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.12k
    DataTypePtr get_serialized_type() const override {
334
1.12k
        return std::make_shared<DataTypeFixedLengthObject>();
335
1.12k
    }
_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
88
    DataTypePtr get_serialized_type() const override {
334
88
        return std::make_shared<DataTypeFixedLengthObject>();
335
88
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_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_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
23
    DataTypePtr get_serialized_type() const override {
334
23
        return std::make_shared<DataTypeFixedLengthObject>();
335
23
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
106
    DataTypePtr get_serialized_type() const override {
334
106
        return std::make_shared<DataTypeFixedLengthObject>();
335
106
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
47
    DataTypePtr get_serialized_type() const override {
334
47
        return std::make_shared<DataTypeFixedLengthObject>();
335
47
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
1.12k
    DataTypePtr get_serialized_type() const override {
334
1.12k
        return std::make_shared<DataTypeFixedLengthObject>();
335
1.12k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
333
83
    DataTypePtr get_serialized_type() const override {
334
83
        return std::make_shared<DataTypeFixedLengthObject>();
335
83
    }
_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
246
    DataTypePtr get_serialized_type() const override {
334
246
        return std::make_shared<DataTypeFixedLengthObject>();
335
246
    }
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
336
    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
22
    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
63
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv
Line
Count
Source
340
145
    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
64
    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
507
                                UInt8* could_use_previous_result) const override {
375
507
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
507
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
507
        if (current_frame_start >= current_frame_end) {
378
20
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
487
        } else {
382
1.20k
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
719
                update_value<true>(place, columns, row_num);
384
719
            }
385
487
            *use_null_result = false;
386
487
            *could_use_previous_result = true;
387
487
        }
388
507
    }
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
162
                                UInt8* could_use_previous_result) const override {
375
162
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
162
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
162
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
162
        } else {
382
388
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
226
                update_value<true>(place, columns, row_num);
384
226
            }
385
162
            *use_null_result = false;
386
162
            *could_use_previous_result = true;
387
162
        }
388
162
    }
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