Coverage Report

Created: 2026-10-28 16:59

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
58.1k
    ResultT result(ResultType multiplier) const {
81
58.1k
        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
58.1k
        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
58.1k
        } else {
92
58.1k
            if constexpr (T == TYPE_DECIMAL256) {
93
187
                return static_cast<ResultT>(sum * multiplier /
94
187
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
58.0k
            } else {
96
58.0k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
58.0k
            }
98
58.1k
        }
99
58.1k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE6resultINS_7DecimalIiEEEET_S5_
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE6resultINS_7DecimalIlEEEET_S5_
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE6resultINS_12Decimal128V3EEET_S4_
Line
Count
Source
80
58.0k
    ResultT result(ResultType multiplier) const {
81
58.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
        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
58.0k
        } else {
92
            if constexpr (T == TYPE_DECIMAL256) {
93
                return static_cast<ResultT>(sum * multiplier /
94
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
58.0k
            } else {
96
58.0k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
58.0k
            }
98
58.0k
        }
99
58.0k
    }
_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
965
    ResultT result() const {
103
965
        if constexpr (std::is_floating_point_v<ResultT>) {
104
965
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
965
                return static_cast<ResultT>(sum) /
106
965
                       static_cast<ResultT>(count); /// allow division by zero
107
965
            }
108
965
        }
109
110
965
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
965
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
965
    }
_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.6k
    ResultT result() const {
103
40.6k
        if constexpr (std::is_floating_point_v<ResultT>) {
104
40.6k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
40.6k
                return static_cast<ResultT>(sum) /
106
40.6k
                       static_cast<ResultT>(count); /// allow division by zero
107
40.6k
            }
108
40.6k
        }
109
110
40.6k
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
40.6k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
40.6k
    }
116
117
8.20k
    void write(BufferWritable& buf) const {
118
8.20k
        buf.write_binary(sum);
119
8.20k
        buf.write_binary(count);
120
8.20k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE
Line
Count
Source
117
15
    void write(BufferWritable& buf) const {
118
15
        buf.write_binary(sum);
119
15
        buf.write_binary(count);
120
15
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE
Line
Count
Source
117
13
    void write(BufferWritable& buf) const {
118
13
        buf.write_binary(sum);
119
13
        buf.write_binary(count);
120
13
    }
_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
19
    void write(BufferWritable& buf) const {
118
19
        buf.write_binary(sum);
119
19
        buf.write_binary(count);
120
19
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE5writeERNS_14BufferWritableE
121
122
8.25k
    void read(BufferReadable& buf) {
123
8.25k
        buf.read_binary(sum);
124
8.25k
        buf.read_binary(count);
125
8.25k
    }
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE
Line
Count
Source
122
15
    void read(BufferReadable& buf) {
123
15
        buf.read_binary(sum);
124
15
        buf.read_binary(count);
125
15
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE
Line
Count
Source
122
13
    void read(BufferReadable& buf) {
123
13
        buf.read_binary(sum);
124
13
        buf.read_binary(count);
125
13
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
122
8.16k
    void read(BufferReadable& buf) {
123
8.16k
        buf.read_binary(sum);
124
8.16k
        buf.read_binary(count);
125
8.16k
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
122
58
    void read(BufferReadable& buf) {
123
58
        buf.read_binary(sum);
124
58
        buf.read_binary(count);
125
58
    }
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.41k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
2.41k
                      argument_types_),
161
2.41k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
2.41k
                                    get_decimal_scale(*argument_types_[0]))) {
163
2.41k
        if constexpr (is_decimal(T)) {
164
647
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
647
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
647
        }
167
2.41k
    }
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
7
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
7
                      argument_types_),
161
7
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
7
                                    get_decimal_scale(*argument_types_[0]))) {
163
7
        if constexpr (is_decimal(T)) {
164
7
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
7
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
7
        }
167
7
    }
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
419
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
419
                      argument_types_),
161
419
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
419
                                    get_decimal_scale(*argument_types_[0]))) {
163
419
        if constexpr (is_decimal(T)) {
164
419
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
419
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
419
        }
167
419
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_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
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_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_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
25
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
25
                      argument_types_),
161
25
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
25
                                    get_decimal_scale(*argument_types_[0]))) {
163
25
        if constexpr (is_decimal(T)) {
164
25
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
25
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
25
        }
167
25
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
73
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
73
                      argument_types_),
161
73
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
73
                                    get_decimal_scale(*argument_types_[0]))) {
163
73
        if constexpr (is_decimal(T)) {
164
73
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
73
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
73
        }
167
73
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
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
1.01k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
1.01k
                      argument_types_),
161
1.01k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
1.01k
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
1.01k
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
253
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
253
                      argument_types_),
161
253
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
253
                                    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
253
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
46
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
46
                      argument_types_),
161
46
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
46
                                    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
46
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
206
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
206
                      argument_types_),
161
206
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
206
                                    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
206
    }
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
450
    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
34
    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
152
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
164
    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
54
    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
10.7k
    DataTypePtr get_return_type() const override {
172
10.7k
        if constexpr (is_decimal(T)) {
173
3.31k
            return std::make_shared<ResultDataType>(
174
3.31k
                    ResultDataType::max_precision(),
175
3.31k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
7.40k
        } else {
177
7.40k
            return std::make_shared<ResultDataType>();
178
7.40k
        }
179
10.7k
    }
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
256
    DataTypePtr get_return_type() const override {
172
256
        if constexpr (is_decimal(T)) {
173
256
            return std::make_shared<ResultDataType>(
174
256
                    ResultDataType::max_precision(),
175
256
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
256
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
17
    DataTypePtr get_return_type() const override {
172
17
        if constexpr (is_decimal(T)) {
173
17
            return std::make_shared<ResultDataType>(
174
17
                    ResultDataType::max_precision(),
175
17
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
17
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
2.37k
    DataTypePtr get_return_type() const override {
172
2.37k
        if constexpr (is_decimal(T)) {
173
2.37k
            return std::make_shared<ResultDataType>(
174
2.37k
                    ResultDataType::max_precision(),
175
2.37k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
2.37k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
19
    DataTypePtr get_return_type() const override {
172
19
        if constexpr (is_decimal(T)) {
173
19
            return std::make_shared<ResultDataType>(
174
19
                    ResultDataType::max_precision(),
175
19
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
271
    DataTypePtr get_return_type() const override {
172
271
        if constexpr (is_decimal(T)) {
173
271
            return std::make_shared<ResultDataType>(
174
271
                    ResultDataType::max_precision(),
175
271
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
271
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
101
    DataTypePtr get_return_type() const override {
172
101
        if constexpr (is_decimal(T)) {
173
101
            return std::make_shared<ResultDataType>(
174
101
                    ResultDataType::max_precision(),
175
101
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
101
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
284
    DataTypePtr get_return_type() const override {
172
284
        if constexpr (is_decimal(T)) {
173
284
            return std::make_shared<ResultDataType>(
174
284
                    ResultDataType::max_precision(),
175
284
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
284
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
385
    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
385
        } else {
177
385
            return std::make_shared<ResultDataType>();
178
385
        }
179
385
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
210
    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
210
        } else {
177
210
            return std::make_shared<ResultDataType>();
178
210
        }
179
210
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
2.77k
    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.77k
        } else {
177
2.77k
            return std::make_shared<ResultDataType>();
178
2.77k
        }
179
2.77k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
1.27k
    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.27k
        } else {
177
1.27k
            return std::make_shared<ResultDataType>();
178
1.27k
        }
179
1.27k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
88
    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
88
        } else {
177
88
            return std::make_shared<ResultDataType>();
178
88
        }
179
88
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
171
2.59k
    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.59k
        } else {
177
2.59k
            return std::make_shared<ResultDataType>();
178
2.59k
        }
179
2.59k
    }
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
50
    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
17
    bool is_trivial() const override { return true; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE10is_trivialEv
Line
Count
Source
181
28
    bool is_trivial() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
182
183
82
    WindowSpillStrategy window_spill_strategy() const override {
184
82
        return WindowSpillStrategy::PARTITION_REDUCE;
185
82
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE21window_spill_strategyEv
Line
Count
Source
183
4
    WindowSpillStrategy window_spill_strategy() const override {
184
4
        return WindowSpillStrategy::PARTITION_REDUCE;
185
4
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE21window_spill_strategyEv
Line
Count
Source
183
5
    WindowSpillStrategy window_spill_strategy() const override {
184
5
        return WindowSpillStrategy::PARTITION_REDUCE;
185
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE21window_spill_strategyEv
Line
Count
Source
183
1
    WindowSpillStrategy window_spill_strategy() const override {
184
1
        return WindowSpillStrategy::PARTITION_REDUCE;
185
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
Line
Count
Source
183
1
    WindowSpillStrategy window_spill_strategy() const override {
184
1
        return WindowSpillStrategy::PARTITION_REDUCE;
185
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
Line
Count
Source
183
14
    WindowSpillStrategy window_spill_strategy() const override {
184
14
        return WindowSpillStrategy::PARTITION_REDUCE;
185
14
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE21window_spill_strategyEv
Line
Count
Source
183
38
    WindowSpillStrategy window_spill_strategy() const override {
184
38
        return WindowSpillStrategy::PARTITION_REDUCE;
185
38
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE21window_spill_strategyEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE21window_spill_strategyEv
Line
Count
Source
183
19
    WindowSpillStrategy window_spill_strategy() const override {
184
19
        return WindowSpillStrategy::PARTITION_REDUCE;
185
19
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE21window_spill_strategyEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE21window_spill_strategyEv
186
187
    template <bool is_add>
188
    NO_SANITIZE_UNDEFINED void update_value(AggregateDataPtr __restrict place,
189
9.51M
                                            const IColumn** columns, ssize_t row_num) const {
190
9.51M
        ALLOW_FP_REASSOCIATION
191
9.51M
        const auto& column =
192
9.51M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
9.51M
        if constexpr (is_add) {
194
9.51M
            if constexpr (T == TYPE_DECIMALV2) {
195
0
                this->data(place).sum += column.get_data()[row_num];
196
7.59M
            } else if constexpr (is_decimal(T)) {
197
7.59M
                this->data(place).sum += column.get_data()[row_num].value;
198
7.59M
            } else {
199
1.91M
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.91M
            }
201
9.51M
            ++this->data(place).count;
202
9.51M
        } 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.51M
    }
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
180
                                            const IColumn** columns, ssize_t row_num) const {
190
180
        ALLOW_FP_REASSOCIATION
191
180
        const auto& column =
192
180
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
180
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
180
            } else if constexpr (is_decimal(T)) {
197
180
                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
180
            ++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
180
    }
_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.59M
                                            const IColumn** columns, ssize_t row_num) const {
190
7.59M
        ALLOW_FP_REASSOCIATION
191
7.59M
        const auto& column =
192
7.59M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
7.59M
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
7.59M
            } else if constexpr (is_decimal(T)) {
197
7.59M
                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.59M
            ++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.59M
    }
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
27.4k
                                            const IColumn** columns, ssize_t row_num) const {
190
27.4k
        ALLOW_FP_REASSOCIATION
191
27.4k
        const auto& column =
192
27.4k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
27.4k
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
27.4k
            } else {
199
27.4k
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
27.4k
            }
201
27.4k
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
27.4k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
12
                                            const IColumn** columns, ssize_t row_num) const {
190
12
        ALLOW_FP_REASSOCIATION
191
12
        const auto& column =
192
12
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
            ++this->data(place).count;
202
12
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
12
            } else {
208
12
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
12
            }
210
12
            --this->data(place).count;
211
12
        }
212
12
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
1.27k
                                            const IColumn** columns, ssize_t row_num) const {
190
1.27k
        ALLOW_FP_REASSOCIATION
191
1.27k
        const auto& column =
192
1.27k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
1.27k
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
1.27k
            } else {
199
1.27k
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.27k
            }
201
1.27k
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
1.27k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
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.50M
             Arena&) const override {
216
9.50M
        update_value<true>(place, columns, row_num);
217
9.50M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
153
             Arena&) const override {
216
153
        update_value<true>(place, columns, row_num);
217
153
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
11
             Arena&) const override {
216
11
        update_value<true>(place, columns, row_num);
217
11
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
7.58M
             Arena&) const override {
216
7.58M
        update_value<true>(place, columns, row_num);
217
7.58M
    }
_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
27.2k
             Arena&) const override {
216
27.2k
        update_value<true>(place, columns, row_num);
217
27.2k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
884
             Arena&) const override {
216
884
        update_value<true>(place, columns, row_num);
217
884
    }
_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.48k
    void reset(AggregateDataPtr place) const override {
220
1.48k
        this->data(place).sum = {};
221
1.48k
        this->data(place).count = 0;
222
1.48k
    }
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
227
    void reset(AggregateDataPtr place) const override {
220
227
        this->data(place).sum = {};
221
227
        this->data(place).count = 0;
222
227
    }
_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
446
    void reset(AggregateDataPtr place) const override {
220
446
        this->data(place).sum = {};
221
446
        this->data(place).count = 0;
222
446
    }
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.5k
                                     Arena&) const override {
226
18.5k
        if constexpr (T == TYPE_DECIMALV2) {
227
0
            this->data(place).sum += this->data(rhs).sum;
228
1.23k
        } else if constexpr (is_decimal(T)) {
229
1.23k
            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.5k
        this->data(place).count += this->data(rhs).count;
234
18.5k
    }
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.12k
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
1.12k
        } else if constexpr (is_decimal(T)) {
229
1.12k
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
1.12k
        this->data(place).count += this->data(rhs).count;
234
1.12k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
52
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
52
        } else if constexpr (is_decimal(T)) {
229
52
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
52
        this->data(place).count += this->data(rhs).count;
234
52
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_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
43
                                     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
43
        } else {
231
43
            this->data(place).sum += this->data(rhs).sum;
232
43
        }
233
43
        this->data(place).count += this->data(rhs).count;
234
43
    }
_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
220
                                     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
220
        } else {
231
220
            this->data(place).sum += this->data(rhs).sum;
232
220
        }
233
220
        this->data(place).count += this->data(rhs).count;
234
220
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
114
                                     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
114
        } else {
231
114
            this->data(place).sum += this->data(rhs).sum;
232
114
        }
233
114
        this->data(place).count += this->data(rhs).count;
234
114
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
235
236
8.20k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
8.20k
        this->data(place).write(buf);
238
8.20k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
5
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
5
        this->data(place).write(buf);
238
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
10
        this->data(place).write(buf);
238
10
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
_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
19
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
19
        this->data(place).write(buf);
238
19
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
239
240
    void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf,
241
8.25k
                     Arena&) const override {
242
8.25k
        this->data(place).read(buf);
243
8.25k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
5
                     Arena&) const override {
242
5
        this->data(place).read(buf);
243
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
10
                     Arena&) const override {
242
10
        this->data(place).read(buf);
243
10
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
13
                     Arena&) const override {
242
13
        this->data(place).read(buf);
243
13
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
8.16k
                     Arena&) const override {
242
8.16k
        this->data(place).read(buf);
243
8.16k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
58
                     Arena&) const override {
242
58
        this->data(place).read(buf);
243
58
    }
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
101k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
101k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
101k
        if constexpr (is_decimal(T)) {
248
58.5k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
58.5k
        } else {
250
42.5k
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
42.5k
        }
252
101k
    }
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
58.1k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
58.1k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
58.1k
        if constexpr (is_decimal(T)) {
248
58.1k
            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
58.1k
    }
_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
700
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
700
        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
700
        } else {
250
700
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
700
        }
252
700
    }
_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.5k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
40.5k
        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.5k
        } else {
250
40.5k
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
40.5k
        }
252
40.5k
    }
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
1.84k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
1.84k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
1.84k
        col.set_item_size(sizeof(Data));
258
1.84k
        col.resize(num_rows);
259
1.84k
        auto* data = col.get_data().data();
260
19.9k
        for (size_t i = 0; i != num_rows; ++i) {
261
18.1k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
18.1k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
18.1k
        }
264
1.84k
    }
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
771
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
771
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
771
        col.set_item_size(sizeof(Data));
258
771
        col.resize(num_rows);
259
771
        auto* data = col.get_data().data();
260
1.89k
        for (size_t i = 0; i != num_rows; ++i) {
261
1.12k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
1.12k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
1.12k
        }
264
771
    }
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
47
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
47
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
47
        col.set_item_size(sizeof(Data));
258
47
        col.resize(num_rows);
259
47
        auto* data = col.get_data().data();
260
89
        for (size_t i = 0; i != num_rows; ++i) {
261
42
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
42
                    *reinterpret_cast<Data*>(places[i] + offset);
263
42
        }
264
47
    }
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
43
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
43
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
43
        col.set_item_size(sizeof(Data));
258
43
        col.resize(num_rows);
259
43
        auto* data = col.get_data().data();
260
114
        for (size_t i = 0; i != num_rows; ++i) {
261
71
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
71
                    *reinterpret_cast<Data*>(places[i] + offset);
263
71
        }
264
43
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
41
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
41
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
41
        col.set_item_size(sizeof(Data));
258
41
        col.resize(num_rows);
259
41
        auto* data = col.get_data().data();
260
113
        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
41
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
742
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
742
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
742
        col.set_item_size(sizeof(Data));
258
742
        col.resize(num_rows);
259
742
        auto* data = col.get_data().data();
260
17.2k
        for (size_t i = 0; i != num_rows; ++i) {
261
16.5k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
16.5k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
16.5k
        }
264
742
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
49
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
49
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
49
        col.set_item_size(sizeof(Data));
258
49
        col.resize(num_rows);
259
49
        auto* data = col.get_data().data();
260
136
        for (size_t i = 0; i != num_rows; ++i) {
261
87
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
87
                    *reinterpret_cast<Data*>(places[i] + offset);
263
87
        }
264
49
    }
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
117
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
117
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
117
        col.set_item_size(sizeof(Data));
258
117
        col.resize(num_rows);
259
117
        auto* data = col.get_data().data();
260
258
        for (size_t i = 0; i != num_rows; ++i) {
261
141
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
141
                    *reinterpret_cast<Data*>(places[i] + offset);
263
141
        }
264
117
    }
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
75
                                           const size_t num_rows, Arena&) const override {
268
75
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
269
75
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
270
75
        dst_col.set_item_size(sizeof(Data));
271
75
        dst_col.resize(num_rows);
272
75
        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
75
    }
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
70
                                           const size_t num_rows, Arena&) const override {
268
70
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
269
70
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
270
70
        dst_col.set_item_size(sizeof(Data));
271
70
        dst_col.resize(num_rows);
272
70
        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
70
    }
_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.21k
            Arena&) const override {
291
8.21k
        ALLOW_FP_REASSOCIATION
292
18.4E
        DCHECK(end <= column.size() && begin <= end)
293
18.4E
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
8.21k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
8.21k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
28.5k
        for (size_t i = begin; i <= end; ++i) {
297
20.3k
            this->data(place).sum += data[i].sum;
298
20.3k
            this->data(place).count += data[i].count;
299
20.3k
        }
300
8.21k
    }
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
35
            Arena&) const override {
291
35
        ALLOW_FP_REASSOCIATION
292
35
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
35
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
35
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
78
        for (size_t i = begin; i <= end; ++i) {
297
43
            this->data(place).sum += data[i].sum;
298
43
            this->data(place).count += data[i].count;
299
43
        }
300
35
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
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
41
            Arena&) const override {
291
41
        ALLOW_FP_REASSOCIATION
292
41
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
41
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
41
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
82
        for (size_t i = begin; i <= end; ++i) {
297
41
            this->data(place).sum += data[i].sum;
298
41
            this->data(place).count += data[i].count;
299
41
        }
300
41
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
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
3
            Arena&) const override {
291
3
        ALLOW_FP_REASSOCIATION
292
3
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
3
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
3
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
6
        for (size_t i = begin; i <= end; ++i) {
297
3
            this->data(place).sum += data[i].sum;
298
3
            this->data(place).count += data[i].count;
299
3
        }
300
3
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
12
            Arena&) const override {
291
12
        ALLOW_FP_REASSOCIATION
292
12
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
12
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
12
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
24
        for (size_t i = begin; i <= end; ++i) {
297
12
            this->data(place).sum += data[i].sum;
298
12
            this->data(place).count += data[i].count;
299
12
        }
300
12
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
55
            Arena&) const override {
291
55
        ALLOW_FP_REASSOCIATION
292
55
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
55
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
55
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
118
        for (size_t i = begin; i <= end; ++i) {
297
63
            this->data(place).sum += data[i].sum;
298
63
            this->data(place).count += data[i].count;
299
63
        }
300
55
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
50
            Arena&) const override {
291
50
        ALLOW_FP_REASSOCIATION
292
50
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
50
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
50
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
108
        for (size_t i = begin; i <= end; ++i) {
297
58
            this->data(place).sum += data[i].sum;
298
58
            this->data(place).count += data[i].count;
299
58
        }
300
50
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
7.75k
            Arena&) const override {
291
7.75k
        ALLOW_FP_REASSOCIATION
292
18.4E
        DCHECK(end <= column.size() && begin <= end)
293
18.4E
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
7.75k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
7.75k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
27.5k
        for (size_t i = begin; i <= end; ++i) {
297
19.8k
            this->data(place).sum += data[i].sum;
298
19.8k
            this->data(place).count += data[i].count;
299
19.8k
        }
300
7.75k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
205
            Arena&) const override {
291
205
        ALLOW_FP_REASSOCIATION
292
205
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
205
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
205
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
424
        for (size_t i = begin; i <= end; ++i) {
297
219
            this->data(place).sum += data[i].sum;
298
219
            this->data(place).count += data[i].count;
299
219
        }
300
205
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
59
            Arena&) const override {
291
59
        ALLOW_FP_REASSOCIATION
292
59
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
59
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
59
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
126
        for (size_t i = begin; i <= end; ++i) {
297
67
            this->data(place).sum += data[i].sum;
298
67
            this->data(place).count += data[i].count;
299
67
        }
300
59
    }
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
161
    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
92
    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
891
                                   const size_t num_rows) const override {
307
891
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
891
        const auto* data = col.get_data().data();
309
891
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
891
    }
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
299
                                   const size_t num_rows) const override {
307
299
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
299
        const auto* data = col.get_data().data();
309
299
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
299
    }
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
33
                                   const size_t num_rows) const override {
307
33
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
33
        const auto* data = col.get_data().data();
309
33
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
33
    }
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
24
                                   const size_t num_rows) const override {
307
24
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
24
        const auto* data = col.get_data().data();
309
24
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
24
    }
_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
392
                                   const size_t num_rows) const override {
307
392
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
392
        const auto* data = col.get_data().data();
309
392
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
392
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
36
                                   const size_t num_rows) const override {
307
36
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
36
        const auto* data = col.get_data().data();
309
36
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
36
    }
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
80
                                   const size_t num_rows) const override {
307
80
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
80
        const auto* data = col.get_data().data();
309
80
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
80
    }
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
359
                                         IColumn& to) const override {
322
359
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
359
        col.set_item_size(sizeof(Data));
324
359
        size_t old_size = col.size();
325
359
        col.resize(old_size + 1);
326
359
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
359
    }
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
19
                                         IColumn& to) const override {
322
19
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
19
        col.set_item_size(sizeof(Data));
324
19
        size_t old_size = col.size();
325
19
        col.resize(old_size + 1);
326
19
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
19
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
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
41
                                         IColumn& to) const override {
322
41
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
41
        col.set_item_size(sizeof(Data));
324
41
        size_t old_size = col.size();
325
41
        col.resize(old_size + 1);
326
41
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
41
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
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
3
                                         IColumn& to) const override {
322
3
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
3
        col.set_item_size(sizeof(Data));
324
3
        size_t old_size = col.size();
325
3
        col.resize(old_size + 1);
326
3
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
3
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
12
                                         IColumn& to) const override {
322
12
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
12
        col.set_item_size(sizeof(Data));
324
12
        size_t old_size = col.size();
325
12
        col.resize(old_size + 1);
326
12
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
12
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
36
                                         IColumn& to) const override {
322
36
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
36
        col.set_item_size(sizeof(Data));
324
36
        size_t old_size = col.size();
325
36
        col.resize(old_size + 1);
326
36
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
36
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
19
                                         IColumn& to) const override {
322
19
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
19
        col.set_item_size(sizeof(Data));
324
19
        size_t old_size = col.size();
325
19
        col.resize(old_size + 1);
326
19
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
127
                                         IColumn& to) const override {
322
127
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
127
        col.set_item_size(sizeof(Data));
324
127
        size_t old_size = col.size();
325
127
        col.resize(old_size + 1);
326
127
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
127
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_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_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
41
                                         IColumn& to) const override {
322
41
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
41
        col.set_item_size(sizeof(Data));
324
41
        size_t old_size = col.size();
325
41
        col.resize(old_size + 1);
326
41
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
41
    }
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.62k
    MutableColumnPtr create_serialize_column() const override {
330
2.62k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
2.62k
    }
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
41
    MutableColumnPtr create_serialize_column() const override {
330
41
        return ColumnFixedLengthObject::create(sizeof(Data));
331
41
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
329
800
    MutableColumnPtr create_serialize_column() const override {
330
800
        return ColumnFixedLengthObject::create(sizeof(Data));
331
800
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
329
47
    MutableColumnPtr create_serialize_column() const override {
330
47
        return ColumnFixedLengthObject::create(sizeof(Data));
331
47
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
3
    MutableColumnPtr create_serialize_column() const override {
330
3
        return ColumnFixedLengthObject::create(sizeof(Data));
331
3
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
22
    MutableColumnPtr create_serialize_column() const override {
330
22
        return ColumnFixedLengthObject::create(sizeof(Data));
331
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
85
    MutableColumnPtr create_serialize_column() const override {
330
85
        return ColumnFixedLengthObject::create(sizeof(Data));
331
85
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
62
    MutableColumnPtr create_serialize_column() const override {
330
62
        return ColumnFixedLengthObject::create(sizeof(Data));
331
62
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
1.28k
    MutableColumnPtr create_serialize_column() const override {
330
1.28k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1.28k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
329
122
    MutableColumnPtr create_serialize_column() const override {
330
122
        return ColumnFixedLengthObject::create(sizeof(Data));
331
122
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Line
Count
Source
329
159
    MutableColumnPtr create_serialize_column() const override {
330
159
        return ColumnFixedLengthObject::create(sizeof(Data));
331
159
    }
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.57k
    DataTypePtr get_serialized_type() const override {
334
2.57k
        return std::make_shared<DataTypeFixedLengthObject>();
335
2.57k
    }
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
41
    DataTypePtr get_serialized_type() const override {
334
41
        return std::make_shared<DataTypeFixedLengthObject>();
335
41
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
333
809
    DataTypePtr get_serialized_type() const override {
334
809
        return std::make_shared<DataTypeFixedLengthObject>();
335
809
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
333
47
    DataTypePtr get_serialized_type() const override {
334
47
        return std::make_shared<DataTypeFixedLengthObject>();
335
47
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
3
    DataTypePtr get_serialized_type() const override {
334
3
        return std::make_shared<DataTypeFixedLengthObject>();
335
3
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
22
    DataTypePtr get_serialized_type() const override {
334
22
        return std::make_shared<DataTypeFixedLengthObject>();
335
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
85
    DataTypePtr get_serialized_type() const override {
334
85
        return std::make_shared<DataTypeFixedLengthObject>();
335
85
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
62
    DataTypePtr get_serialized_type() const override {
334
62
        return std::make_shared<DataTypeFixedLengthObject>();
335
62
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
1.25k
    DataTypePtr get_serialized_type() const override {
334
1.25k
        return std::make_shared<DataTypeFixedLengthObject>();
335
1.25k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
333
93
    DataTypePtr get_serialized_type() const override {
334
93
        return std::make_shared<DataTypeFixedLengthObject>();
335
93
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Line
Count
Source
333
159
    DataTypePtr get_serialized_type() const override {
334
159
        return std::make_shared<DataTypeFixedLengthObject>();
335
159
    }
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
351
    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
34
    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
73
    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
57
    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
23
                                UInt8* could_use_previous_result) const override {
375
23
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
23
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
23
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
23
        } else {
382
53
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
30
                update_value<true>(place, columns, row_num);
384
30
            }
385
23
            *use_null_result = false;
386
23
            *could_use_previous_result = true;
387
23
        }
388
23
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
1
                                UInt8* could_use_previous_result) const override {
375
1
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
1
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
1
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
1
        } else {
382
2
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
1
                update_value<true>(place, columns, row_num);
384
1
            }
385
1
            *use_null_result = false;
386
1
            *could_use_previous_result = true;
387
1
        }
388
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
1
                                UInt8* could_use_previous_result) const override {
375
1
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
1
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
1
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
1
        } else {
382
2
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
1
                update_value<true>(place, columns, row_num);
384
1
            }
385
1
            *use_null_result = false;
386
1
            *could_use_previous_result = true;
387
1
        }
388
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
89
                                UInt8* could_use_previous_result) const override {
375
89
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
89
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
89
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
89
        } else {
382
241
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
152
                update_value<true>(place, columns, row_num);
384
152
            }
385
89
            *use_null_result = false;
386
89
            *could_use_previous_result = true;
387
89
        }
388
89
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
226
                                UInt8* could_use_previous_result) const override {
375
226
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
226
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
226
        if (current_frame_start >= current_frame_end) {
378
20
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
206
        } else {
382
497
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
291
                update_value<true>(place, columns, row_num);
384
291
            }
385
206
            *use_null_result = false;
386
206
            *could_use_previous_result = true;
387
206
        }
388
226
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
374
163
                                UInt8* could_use_previous_result) const override {
375
163
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
163
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
163
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
163
        } else {
382
399
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
236
                update_value<true>(place, columns, row_num);
384
236
            }
385
163
            *use_null_result = false;
386
163
            *could_use_previous_result = true;
387
163
        }
388
163
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
389
390
private:
391
    uint32_t output_scale;
392
    ResultType multiplier;
393
};
394
395
} // namespace doris