Coverage Report

Created: 2026-10-27 11:57

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
56.8k
    ResultT result(ResultType multiplier) const {
81
56.8k
        if (!count) {
82
            // null is handled in AggregationNode::_get_without_key_result
83
1
            return static_cast<ResultT>(sum);
84
1
        }
85
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
86
        // handle scale correctly, so no external multiplier is needed.
87
56.8k
        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
56.8k
        } else {
92
56.8k
            if constexpr (T == TYPE_DECIMAL256) {
93
187
                return static_cast<ResultT>(sum * multiplier /
94
187
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
56.7k
            } else {
96
56.7k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
56.7k
            }
98
56.8k
        }
99
56.8k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE6resultINS_7DecimalIiEEEET_S5_
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE6resultINS_7DecimalIlEEEET_S5_
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE6resultINS_12Decimal128V3EEET_S4_
Line
Count
Source
80
56.7k
    ResultT result(ResultType multiplier) const {
81
56.7k
        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
56.7k
        } else {
92
            if constexpr (T == TYPE_DECIMAL256) {
93
                return static_cast<ResultT>(sum * multiplier /
94
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
56.7k
            } else {
96
56.7k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
56.7k
            }
98
56.7k
        }
99
56.7k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE6resultINS_7DecimalIN4wide7integerILm256EiEEEEEET_S8_
Line
Count
Source
80
187
    ResultT result(ResultType multiplier) const {
81
187
        if (!count) {
82
            // null is handled in AggregationNode::_get_without_key_result
83
0
            return static_cast<ResultT>(sum);
84
0
        }
85
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
86
        // handle scale correctly, so no external multiplier is needed.
87
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
88
            DecimalV2Value decimal_val_count(count, 0);
89
            DecimalV2Value cal_ret = sum / decimal_val_count;
90
            return cal_ret;
91
187
        } else {
92
187
            if constexpr (T == TYPE_DECIMAL256) {
93
187
                return static_cast<ResultT>(sum * multiplier /
94
187
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
            } else {
96
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
            }
98
187
        }
99
187
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE6resultINS_14DecimalV2ValueEEET_S4_
100
101
    template <typename ResultT>
102
42.5k
    ResultT result() const {
103
42.5k
        if constexpr (std::is_floating_point_v<ResultT>) {
104
42.5k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
42.5k
                return static_cast<ResultT>(sum) /
106
42.5k
                       static_cast<ResultT>(count); /// allow division by zero
107
42.5k
            }
108
42.5k
        }
109
110
42.5k
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
42.5k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
42.5k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE6resultIdEET_v
Line
Count
Source
102
962
    ResultT result() const {
103
962
        if constexpr (std::is_floating_point_v<ResultT>) {
104
962
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
962
                return static_cast<ResultT>(sum) /
106
962
                       static_cast<ResultT>(count); /// allow division by zero
107
962
            }
108
962
        }
109
110
962
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
962
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
962
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE6resultIdEET_v
Line
Count
Source
102
977
    ResultT result() const {
103
977
        if constexpr (std::is_floating_point_v<ResultT>) {
104
977
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
977
                return static_cast<ResultT>(sum) /
106
977
                       static_cast<ResultT>(count); /// allow division by zero
107
977
            }
108
977
        }
109
110
977
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
977
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
977
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE6resultIdEET_v
Line
Count
Source
102
40.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
4.19k
    void write(BufferWritable& buf) const {
118
4.19k
        buf.write_binary(sum);
119
4.19k
        buf.write_binary(count);
120
4.19k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE
Line
Count
Source
117
12
    void write(BufferWritable& buf) const {
118
12
        buf.write_binary(sum);
119
12
        buf.write_binary(count);
120
12
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE
Line
Count
Source
117
12
    void write(BufferWritable& buf) const {
118
12
        buf.write_binary(sum);
119
12
        buf.write_binary(count);
120
12
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE
Line
Count
Source
117
4.14k
    void write(BufferWritable& buf) const {
118
4.14k
        buf.write_binary(sum);
119
4.14k
        buf.write_binary(count);
120
4.14k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE
Line
Count
Source
117
27
    void write(BufferWritable& buf) const {
118
27
        buf.write_binary(sum);
119
27
        buf.write_binary(count);
120
27
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE5writeERNS_14BufferWritableE
121
122
4.24k
    void read(BufferReadable& buf) {
123
4.24k
        buf.read_binary(sum);
124
4.24k
        buf.read_binary(count);
125
4.24k
    }
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE
Line
Count
Source
122
12
    void read(BufferReadable& buf) {
123
12
        buf.read_binary(sum);
124
12
        buf.read_binary(count);
125
12
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE
Line
Count
Source
122
12
    void read(BufferReadable& buf) {
123
12
        buf.read_binary(sum);
124
12
        buf.read_binary(count);
125
12
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
122
4.15k
    void read(BufferReadable& buf) {
123
4.15k
        buf.read_binary(sum);
124
4.15k
        buf.read_binary(count);
125
4.15k
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
122
66
    void read(BufferReadable& buf) {
123
66
        buf.read_binary(sum);
124
66
        buf.read_binary(count);
125
66
    }
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.51k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
2.51k
                      argument_types_),
161
2.51k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
2.51k
                                    get_decimal_scale(*argument_types_[0]))) {
163
2.51k
        if constexpr (is_decimal(T)) {
164
743
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
743
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
743
        }
167
2.51k
    }
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
41
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
41
                      argument_types_),
161
41
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
41
                                    get_decimal_scale(*argument_types_[0]))) {
163
41
        if constexpr (is_decimal(T)) {
164
41
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
41
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
41
        }
167
41
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
8
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
8
                      argument_types_),
161
8
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
8
                                    get_decimal_scale(*argument_types_[0]))) {
163
8
        if constexpr (is_decimal(T)) {
164
8
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
8
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
8
        }
167
8
    }
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
510
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
510
                      argument_types_),
161
510
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
510
                                    get_decimal_scale(*argument_types_[0]))) {
163
510
        if constexpr (is_decimal(T)) {
164
510
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
510
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
510
        }
167
510
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
9
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
9
                      argument_types_),
161
9
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
9
                                    get_decimal_scale(*argument_types_[0]))) {
163
9
        if constexpr (is_decimal(T)) {
164
9
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
9
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
9
        }
167
9
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
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
28
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
28
                      argument_types_),
161
28
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
28
                                    get_decimal_scale(*argument_types_[0]))) {
163
28
        if constexpr (is_decimal(T)) {
164
28
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
28
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
28
        }
167
28
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
73
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
73
                      argument_types_),
161
73
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
73
                                    get_decimal_scale(*argument_types_[0]))) {
163
73
        if constexpr (is_decimal(T)) {
164
73
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
73
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
73
        }
167
73
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
138
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
138
                      argument_types_),
161
138
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
138
                                    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
138
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
67
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
67
                      argument_types_),
161
67
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
67
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
67
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
1.00k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
1.00k
                      argument_types_),
161
1.00k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
1.00k
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
1.00k
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
259
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
259
                      argument_types_),
161
259
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
259
                                    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
259
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
47
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
47
                      argument_types_),
161
47
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
47
                                    get_decimal_scale(*argument_types_[0]))) {
163
        if constexpr (is_decimal(T)) {
164
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
        }
167
47
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
213
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
213
                      argument_types_),
161
213
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
213
                                    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
213
    }
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
333
    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
30
    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
110
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
92
    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
55
    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.5k
    DataTypePtr get_return_type() const override {
172
10.5k
        if constexpr (is_decimal(T)) {
173
3.75k
            return std::make_shared<ResultDataType>(
174
3.75k
                    ResultDataType::max_precision(),
175
3.75k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
6.75k
        } else {
177
6.75k
            return std::make_shared<ResultDataType>();
178
6.75k
        }
179
10.5k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
260
    DataTypePtr get_return_type() const override {
172
260
        if constexpr (is_decimal(T)) {
173
260
            return std::make_shared<ResultDataType>(
174
260
                    ResultDataType::max_precision(),
175
260
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
260
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
18
    DataTypePtr get_return_type() const override {
172
18
        if constexpr (is_decimal(T)) {
173
18
            return std::make_shared<ResultDataType>(
174
18
                    ResultDataType::max_precision(),
175
18
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
18
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
2.77k
    DataTypePtr get_return_type() const override {
172
2.77k
        if constexpr (is_decimal(T)) {
173
2.77k
            return std::make_shared<ResultDataType>(
174
2.77k
                    ResultDataType::max_precision(),
175
2.77k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
2.77k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
20
    DataTypePtr get_return_type() const override {
172
20
        if constexpr (is_decimal(T)) {
173
20
            return std::make_shared<ResultDataType>(
174
20
                    ResultDataType::max_precision(),
175
20
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
290
    DataTypePtr get_return_type() const override {
172
290
        if constexpr (is_decimal(T)) {
173
290
            return std::make_shared<ResultDataType>(
174
290
                    ResultDataType::max_precision(),
175
290
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
290
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
104
    DataTypePtr get_return_type() const override {
172
104
        if constexpr (is_decimal(T)) {
173
104
            return std::make_shared<ResultDataType>(
174
104
                    ResultDataType::max_precision(),
175
104
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
104
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
286
    DataTypePtr get_return_type() const override {
172
286
        if constexpr (is_decimal(T)) {
173
286
            return std::make_shared<ResultDataType>(
174
286
                    ResultDataType::max_precision(),
175
286
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
286
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
387
    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
387
        } else {
177
387
            return std::make_shared<ResultDataType>();
178
387
        }
179
387
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
212
    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
212
        } else {
177
212
            return std::make_shared<ResultDataType>();
178
212
        }
179
212
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
2.20k
    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.20k
        } else {
177
2.20k
            return std::make_shared<ResultDataType>();
178
2.20k
        }
179
2.20k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
1.19k
    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.19k
        } else {
177
1.19k
            return std::make_shared<ResultDataType>();
178
1.19k
        }
179
1.19k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
97
    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
97
        } else {
177
97
            return std::make_shared<ResultDataType>();
178
97
        }
179
97
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
171
2.58k
    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.58k
        } else {
177
2.58k
            return std::make_shared<ResultDataType>();
178
2.58k
        }
179
2.58k
    }
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
38
    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
3
    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
3
    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
14
    bool is_trivial() const override { return true; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE10is_trivialEv
Line
Count
Source
181
17
    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.77M
                                            const IColumn** columns, ssize_t row_num) const {
190
9.77M
        ALLOW_FP_REASSOCIATION
191
9.77M
        const auto& column =
192
9.77M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
9.77M
        if constexpr (is_add) {
194
9.77M
            if constexpr (T == TYPE_DECIMALV2) {
195
0
                this->data(place).sum += column.get_data()[row_num];
196
7.91M
            } else if constexpr (is_decimal(T)) {
197
7.91M
                this->data(place).sum += column.get_data()[row_num].value;
198
7.91M
            } else {
199
1.86M
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.86M
            }
201
9.77M
            ++this->data(place).count;
202
9.77M
        } 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.77M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
181
                                            const IColumn** columns, ssize_t row_num) const {
190
181
        ALLOW_FP_REASSOCIATION
191
181
        const auto& column =
192
181
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
181
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
181
            } else if constexpr (is_decimal(T)) {
197
181
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
181
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
181
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
20
                                            const IColumn** columns, ssize_t row_num) const {
190
20
        ALLOW_FP_REASSOCIATION
191
20
        const auto& column =
192
20
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
            } else if constexpr (is_decimal(T)) {
197
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
            ++this->data(place).count;
202
20
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
20
            } else if constexpr (is_decimal(T)) {
206
20
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
20
            --this->data(place).count;
211
20
        }
212
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
11
                                            const IColumn** columns, ssize_t row_num) const {
190
11
        ALLOW_FP_REASSOCIATION
191
11
        const auto& column =
192
11
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
11
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
11
            } else if constexpr (is_decimal(T)) {
197
11
                this->data(place).sum += column.get_data()[row_num].value;
198
            } else {
199
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
            }
201
11
            ++this->data(place).count;
202
        } else {
203
            if constexpr (T == TYPE_DECIMALV2) {
204
                this->data(place).sum += -column.get_data()[row_num];
205
            } else if constexpr (is_decimal(T)) {
206
                this->data(place).sum -= column.get_data()[row_num].value;
207
            } else {
208
                this->data(place).sum -= (DataType)column.get_data()[row_num];
209
            }
210
            --this->data(place).count;
211
        }
212
11
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
189
7.90M
                                            const IColumn** columns, ssize_t row_num) const {
190
7.90M
        ALLOW_FP_REASSOCIATION
191
7.90M
        const auto& column =
192
7.90M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
7.90M
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
7.90M
            } else if constexpr (is_decimal(T)) {
197
7.90M
                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.90M
            ++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.90M
    }
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
132
                                            const IColumn** columns, ssize_t row_num) const {
190
132
        ALLOW_FP_REASSOCIATION
191
132
        const auto& column =
192
132
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
132
        if constexpr (is_add) {
194
            if constexpr (T == TYPE_DECIMALV2) {
195
                this->data(place).sum += column.get_data()[row_num];
196
132
            } else if constexpr (is_decimal(T)) {
197
132
                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
132
            ++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
132
    }
_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
560
                                            const IColumn** columns, ssize_t row_num) const {
190
560
        ALLOW_FP_REASSOCIATION
191
560
        const auto& column =
192
560
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
560
        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
560
            } else {
199
560
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
560
            }
201
560
            ++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
560
    }
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.5k
                                            const IColumn** columns, ssize_t row_num) const {
190
27.5k
        ALLOW_FP_REASSOCIATION
191
27.5k
        const auto& column =
192
27.5k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
27.5k
        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.5k
            } else {
199
27.5k
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
27.5k
            }
201
27.5k
            ++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.5k
    }
_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.83M
                                            const IColumn** columns, ssize_t row_num) const {
190
1.83M
        ALLOW_FP_REASSOCIATION
191
1.83M
        const auto& column =
192
1.83M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
193
1.83M
        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.83M
            } else {
199
1.83M
                this->data(place).sum += (DataType)column.get_data()[row_num];
200
1.83M
            }
201
1.83M
            ++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.83M
    }
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.77M
             Arena&) const override {
216
9.77M
        update_value<true>(place, columns, row_num);
217
9.77M
    }
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.90M
             Arena&) const override {
216
7.90M
        update_value<true>(place, columns, row_num);
217
7.90M
    }
_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
129
             Arena&) const override {
216
129
        update_value<true>(place, columns, row_num);
217
129
    }
_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
559
             Arena&) const override {
216
559
        update_value<true>(place, columns, row_num);
217
559
    }
_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.3k
             Arena&) const override {
216
27.3k
        update_value<true>(place, columns, row_num);
217
27.3k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
215
943
             Arena&) const override {
216
943
        update_value<true>(place, columns, row_num);
217
943
    }
_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.84M
             Arena&) const override {
216
1.84M
        update_value<true>(place, columns, row_num);
217
1.84M
    }
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.49k
    void reset(AggregateDataPtr place) const override {
220
1.49k
        this->data(place).sum = {};
221
1.49k
        this->data(place).count = 0;
222
1.49k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
219
8
    void reset(AggregateDataPtr place) const override {
220
8
        this->data(place).sum = {};
221
8
        this->data(place).count = 0;
222
8
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
219
4
    void reset(AggregateDataPtr place) const override {
220
4
        this->data(place).sum = {};
221
4
        this->data(place).count = 0;
222
4
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
219
159
    void reset(AggregateDataPtr place) const override {
220
159
        this->data(place).sum = {};
221
159
        this->data(place).count = 0;
222
159
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
219
17
    void reset(AggregateDataPtr place) const override {
220
17
        this->data(place).sum = {};
221
17
        this->data(place).count = 0;
222
17
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
219
31
    void reset(AggregateDataPtr place) const override {
220
31
        this->data(place).sum = {};
221
31
        this->data(place).count = 0;
222
31
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
219
20
    void reset(AggregateDataPtr place) const override {
220
20
        this->data(place).sum = {};
221
20
        this->data(place).count = 0;
222
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
219
121
    void reset(AggregateDataPtr place) const override {
220
121
        this->data(place).sum = {};
221
121
        this->data(place).count = 0;
222
121
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
219
74
    void reset(AggregateDataPtr place) const override {
220
74
        this->data(place).sum = {};
221
74
        this->data(place).count = 0;
222
74
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
219
75
    void reset(AggregateDataPtr place) const override {
220
75
        this->data(place).sum = {};
221
75
        this->data(place).count = 0;
222
75
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
219
228
    void reset(AggregateDataPtr place) const override {
220
228
        this->data(place).sum = {};
221
228
        this->data(place).count = 0;
222
228
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
Line
Count
Source
219
183
    void reset(AggregateDataPtr place) const override {
220
183
        this->data(place).sum = {};
221
183
        this->data(place).count = 0;
222
183
    }
_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
447
    void reset(AggregateDataPtr place) const override {
220
447
        this->data(place).sum = {};
221
447
        this->data(place).count = 0;
222
447
    }
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
6.10k
                                     Arena&) const override {
226
6.10k
        if constexpr (T == TYPE_DECIMALV2) {
227
0
            this->data(place).sum += this->data(rhs).sum;
228
816
        } else if constexpr (is_decimal(T)) {
229
816
            this->data(place).sum += this->data(rhs).sum.value;
230
5.28k
        } else {
231
5.28k
            this->data(place).sum += this->data(rhs).sum;
232
5.28k
        }
233
6.10k
        this->data(place).count += this->data(rhs).count;
234
6.10k
    }
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
712
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
712
        } else if constexpr (is_decimal(T)) {
229
712
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
712
        this->data(place).count += this->data(rhs).count;
234
712
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
54
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
54
        } else if constexpr (is_decimal(T)) {
229
54
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
54
        this->data(place).count += this->data(rhs).count;
234
54
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
2
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
2
        } else if constexpr (is_decimal(T)) {
229
2
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
2
        this->data(place).count += this->data(rhs).count;
234
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
15
                                     Arena&) const override {
226
        if constexpr (T == TYPE_DECIMALV2) {
227
            this->data(place).sum += this->data(rhs).sum;
228
15
        } else if constexpr (is_decimal(T)) {
229
15
            this->data(place).sum += this->data(rhs).sum.value;
230
        } else {
231
            this->data(place).sum += this->data(rhs).sum;
232
        }
233
15
        this->data(place).count += this->data(rhs).count;
234
15
    }
_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
4.87k
                                     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
4.87k
        } else {
231
4.87k
            this->data(place).sum += this->data(rhs).sum;
232
4.87k
        }
233
4.87k
        this->data(place).count += this->data(rhs).count;
234
4.87k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
228
                                     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
228
        } else {
231
228
            this->data(place).sum += this->data(rhs).sum;
232
228
        }
233
228
        this->data(place).count += this->data(rhs).count;
234
228
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
225
106
                                     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
106
        } else {
231
106
            this->data(place).sum += this->data(rhs).sum;
232
106
        }
233
106
        this->data(place).count += this->data(rhs).count;
234
106
    }
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
4.19k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
4.19k
        this->data(place).write(buf);
238
4.19k
    }
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
2
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
2
        this->data(place).write(buf);
238
2
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
10
        this->data(place).write(buf);
238
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
2
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
2
        this->data(place).write(buf);
238
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
10
        this->data(place).write(buf);
238
10
    }
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
4.14k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
4.14k
        this->data(place).write(buf);
238
4.14k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
236
27
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
237
27
        this->data(place).write(buf);
238
27
    }
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
4.24k
                     Arena&) const override {
242
4.24k
        this->data(place).read(buf);
243
4.24k
    }
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
2
                     Arena&) const override {
242
2
        this->data(place).read(buf);
243
2
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
10
                     Arena&) const override {
242
10
        this->data(place).read(buf);
243
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
2
                     Arena&) const override {
242
2
        this->data(place).read(buf);
243
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
10
                     Arena&) const override {
242
10
        this->data(place).read(buf);
243
10
    }
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
4.15k
                     Arena&) const override {
242
4.15k
        this->data(place).read(buf);
243
4.15k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
241
66
                     Arena&) const override {
242
66
        this->data(place).read(buf);
243
66
    }
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
100k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
100k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
100k
        if constexpr (is_decimal(T)) {
248
57.6k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
57.6k
        } else {
250
42.5k
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
42.5k
        }
252
100k
    }
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
57.3k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
57.3k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
57.3k
        if constexpr (is_decimal(T)) {
248
57.3k
            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
57.3k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
18
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
18
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
18
        if constexpr (is_decimal(T)) {
248
18
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
18
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
62
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
62
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
62
        if constexpr (is_decimal(T)) {
248
62
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
62
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
22
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
22
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
22
        if constexpr (is_decimal(T)) {
248
22
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
142
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
142
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
142
        if constexpr (is_decimal(T)) {
248
142
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
        } else {
250
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
        }
252
142
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
147
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
147
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
147
        } else {
250
147
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
147
        }
252
147
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
118
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
118
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
118
        } else {
250
118
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
118
        }
252
118
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
697
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
697
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
697
        } else {
250
697
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
697
        }
252
697
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
917
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
917
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
917
        } else {
250
917
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
917
        }
252
917
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
60
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
246
60
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
247
        if constexpr (is_decimal(T)) {
248
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
249
60
        } else {
250
60
            column.get_data().push_back(this->data(place).template result<ResultType>());
251
60
        }
252
60
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
245
40.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.94k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
1.94k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
1.94k
        col.set_item_size(sizeof(Data));
258
1.94k
        col.resize(num_rows);
259
1.94k
        auto* data = col.get_data().data();
260
11.5k
        for (size_t i = 0; i != num_rows; ++i) {
261
9.63k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
9.63k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
9.63k
        }
264
1.94k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
22
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
22
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
22
        col.set_item_size(sizeof(Data));
258
22
        col.resize(num_rows);
259
22
        auto* data = col.get_data().data();
260
80
        for (size_t i = 0; i != num_rows; ++i) {
261
58
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
58
                    *reinterpret_cast<Data*>(places[i] + offset);
263
58
        }
264
22
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
1.08k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
1.08k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
1.08k
        col.set_item_size(sizeof(Data));
258
1.08k
        col.resize(num_rows);
259
1.08k
        auto* data = col.get_data().data();
260
1.79k
        for (size_t i = 0; i != num_rows; ++i) {
261
713
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
713
                    *reinterpret_cast<Data*>(places[i] + offset);
263
713
        }
264
1.08k
    }
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
59
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
59
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
59
        col.set_item_size(sizeof(Data));
258
59
        col.resize(num_rows);
259
59
        auto* data = col.get_data().data();
260
103
        for (size_t i = 0; i != num_rows; ++i) {
261
44
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
44
                    *reinterpret_cast<Data*>(places[i] + offset);
263
44
        }
264
59
    }
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
42
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
42
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
42
        col.set_item_size(sizeof(Data));
258
42
        col.resize(num_rows);
259
42
        auto* data = col.get_data().data();
260
113
        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
42
    }
_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
515
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
515
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
515
        col.set_item_size(sizeof(Data));
258
515
        col.resize(num_rows);
259
515
        auto* data = col.get_data().data();
260
8.97k
        for (size_t i = 0; i != num_rows; ++i) {
261
8.45k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
8.45k
                    *reinterpret_cast<Data*>(places[i] + offset);
263
8.45k
        }
264
515
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
255
35
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
35
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
35
        col.set_item_size(sizeof(Data));
258
35
        col.resize(num_rows);
259
35
        auto* data = col.get_data().data();
260
122
        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
35
    }
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
140
                             MutableColumnPtr& dst, const size_t num_rows) const override {
256
140
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
257
140
        col.set_item_size(sizeof(Data));
258
140
        col.resize(num_rows);
259
140
        auto* data = col.get_data().data();
260
273
        for (size_t i = 0; i != num_rows; ++i) {
261
133
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
262
133
                    *reinterpret_cast<Data*>(places[i] + offset);
263
133
        }
264
140
    }
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
72
                                           const size_t num_rows, Arena&) const override {
268
72
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
269
72
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
270
72
        dst_col.set_item_size(sizeof(Data));
271
72
        dst_col.resize(num_rows);
272
72
        auto* data = dst_col.get_data().data();
273
12.3k
        for (size_t i = 0; i != num_rows; ++i) {
274
12.2k
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
275
12.2k
            state.sum = typename Data::ResultType(src_data[i]);
276
12.2k
            state.count = 1;
277
12.2k
        }
278
72
    }
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
67
                                           const size_t num_rows, Arena&) const override {
268
67
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
269
67
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
270
67
        dst_col.set_item_size(sizeof(Data));
271
67
        dst_col.resize(num_rows);
272
67
        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
67
    }
_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.39k
            Arena&) const override {
291
8.39k
        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.39k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
8.39k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
28.8k
        for (size_t i = begin; i <= end; ++i) {
297
20.4k
            this->data(place).sum += data[i].sum;
298
20.4k
            this->data(place).count += data[i].count;
299
20.4k
        }
300
8.39k
    }
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
37
            Arena&) const override {
291
37
        ALLOW_FP_REASSOCIATION
292
37
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
37
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
37
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
82
        for (size_t i = begin; i <= end; ++i) {
297
45
            this->data(place).sum += data[i].sum;
298
45
            this->data(place).count += data[i].count;
299
45
        }
300
37
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
1
            Arena&) const override {
291
1
        ALLOW_FP_REASSOCIATION
292
1
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
2
        for (size_t i = begin; i <= end; ++i) {
297
1
            this->data(place).sum += data[i].sum;
298
1
            this->data(place).count += data[i].count;
299
1
        }
300
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
19
            Arena&) const override {
291
19
        ALLOW_FP_REASSOCIATION
292
19
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
19
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
19
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
38
        for (size_t i = begin; i <= end; ++i) {
297
19
            this->data(place).sum += data[i].sum;
298
19
            this->data(place).count += data[i].count;
299
19
        }
300
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
1
            Arena&) const override {
291
1
        ALLOW_FP_REASSOCIATION
292
1
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
2
        for (size_t i = begin; i <= end; ++i) {
297
1
            this->data(place).sum += data[i].sum;
298
1
            this->data(place).count += data[i].count;
299
1
        }
300
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
4
            Arena&) const override {
291
4
        ALLOW_FP_REASSOCIATION
292
4
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
4
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
4
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
8
        for (size_t i = begin; i <= end; ++i) {
297
4
            this->data(place).sum += data[i].sum;
298
4
            this->data(place).count += data[i].count;
299
4
        }
300
4
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
13
            Arena&) const override {
291
13
        ALLOW_FP_REASSOCIATION
292
13
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
13
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
13
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
26
        for (size_t i = begin; i <= end; ++i) {
297
13
            this->data(place).sum += data[i].sum;
298
13
            this->data(place).count += data[i].count;
299
13
        }
300
13
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
54
            Arena&) const override {
291
54
        ALLOW_FP_REASSOCIATION
292
54
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
54
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
54
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
116
        for (size_t i = begin; i <= end; ++i) {
297
62
            this->data(place).sum += data[i].sum;
298
62
            this->data(place).count += data[i].count;
299
62
        }
300
54
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
52
            Arena&) const override {
291
52
        ALLOW_FP_REASSOCIATION
292
52
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
52
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
52
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
112
        for (size_t i = begin; i <= end; ++i) {
297
60
            this->data(place).sum += data[i].sum;
298
60
            this->data(place).count += data[i].count;
299
60
        }
300
52
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
7.94k
            Arena&) const override {
291
7.94k
        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.94k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
7.94k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
27.8k
        for (size_t i = begin; i <= end; ++i) {
297
19.9k
            this->data(place).sum += data[i].sum;
298
19.9k
            this->data(place).count += data[i].count;
299
19.9k
        }
300
7.94k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
194
            Arena&) const override {
291
194
        ALLOW_FP_REASSOCIATION
292
194
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
194
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
194
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
402
        for (size_t i = begin; i <= end; ++i) {
297
208
            this->data(place).sum += data[i].sum;
298
208
            this->data(place).count += data[i].count;
299
208
        }
300
194
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
1
            Arena&) const override {
291
1
        ALLOW_FP_REASSOCIATION
292
1
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
2
        for (size_t i = begin; i <= end; ++i) {
297
1
            this->data(place).sum += data[i].sum;
298
1
            this->data(place).count += data[i].count;
299
1
        }
300
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
290
82
            Arena&) const override {
291
82
        ALLOW_FP_REASSOCIATION
292
82
        DCHECK(end <= column.size() && begin <= end)
293
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
294
82
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
295
82
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
296
172
        for (size_t i = begin; i <= end; ++i) {
297
90
            this->data(place).sum += data[i].sum;
298
90
            this->data(place).count += data[i].count;
299
90
        }
300
82
    }
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
149
    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
80
    bool needs_deserialize_and_merge_scratch() const override { return false; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE35needs_deserialize_and_merge_scratchEv
Line
Count
Source
302
69
    bool needs_deserialize_and_merge_scratch() const override { return false; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE35needs_deserialize_and_merge_scratchEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE35needs_deserialize_and_merge_scratchEv
303
304
    void deserialize_and_merge_vec(const AggregateDataPtr* places, size_t offset,
305
                                   AggregateDataPtr rhs, const IColumn* column, Arena& arena,
306
1.07k
                                   const size_t num_rows) const override {
307
1.07k
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
1.07k
        const auto* data = col.get_data().data();
309
1.07k
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
1.07k
    }
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
542
                                   const size_t num_rows) const override {
307
542
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
542
        const auto* data = col.get_data().data();
309
542
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
542
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
35
                                   const size_t num_rows) const override {
307
35
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
35
        const auto* data = col.get_data().data();
309
35
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
35
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
2
                                   const size_t num_rows) const override {
307
2
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
2
        const auto* data = col.get_data().data();
309
2
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
22
                                   const size_t num_rows) const override {
307
22
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
22
        const auto* data = col.get_data().data();
309
22
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
12
                                   const size_t num_rows) const override {
307
12
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
12
        const auto* data = col.get_data().data();
309
12
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
12
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
306
335
                                   const size_t num_rows) const override {
307
335
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
335
        const auto* data = col.get_data().data();
309
335
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
335
    }
_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
74
                                   const size_t num_rows) const override {
307
74
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
308
74
        const auto* data = col.get_data().data();
309
74
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
310
74
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
311
312
    void deserialize_and_merge_vec_selected(const AggregateDataPtr* places, size_t offset,
313
                                            AggregateDataPtr rhs, const IColumn* column,
314
21
                                            Arena& arena, const size_t num_rows) const override {
315
21
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
316
21
        const auto* data = col.get_data().data();
317
21
        this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows);
318
21
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
314
21
                                            Arena& arena, const size_t num_rows) const override {
315
21
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
316
21
        const auto* data = col.get_data().data();
317
21
        this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows);
318
21
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
319
320
    void serialize_without_key_to_column(ConstAggregateDataPtr __restrict place,
321
361
                                         IColumn& to) const override {
322
361
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
361
        col.set_item_size(sizeof(Data));
324
361
        size_t old_size = col.size();
325
361
        col.resize(old_size + 1);
326
361
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
361
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
21
                                         IColumn& to) const override {
322
21
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
21
        col.set_item_size(sizeof(Data));
324
21
        size_t old_size = col.size();
325
21
        col.resize(old_size + 1);
326
21
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
21
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
1
                                         IColumn& to) const override {
322
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
1
        col.set_item_size(sizeof(Data));
324
1
        size_t old_size = col.size();
325
1
        col.resize(old_size + 1);
326
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
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_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
1
                                         IColumn& to) const override {
322
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
1
        col.set_item_size(sizeof(Data));
324
1
        size_t old_size = col.size();
325
1
        col.resize(old_size + 1);
326
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
4
                                         IColumn& to) const override {
322
4
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
4
        col.set_item_size(sizeof(Data));
324
4
        size_t old_size = col.size();
325
4
        col.resize(old_size + 1);
326
4
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
4
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
13
                                         IColumn& to) const override {
322
13
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
13
        col.set_item_size(sizeof(Data));
324
13
        size_t old_size = col.size();
325
13
        col.resize(old_size + 1);
326
13
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
13
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
35
                                         IColumn& to) const override {
322
35
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
35
        col.set_item_size(sizeof(Data));
324
35
        size_t old_size = col.size();
325
35
        col.resize(old_size + 1);
326
35
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
35
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
21
                                         IColumn& to) const override {
322
21
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
21
        col.set_item_size(sizeof(Data));
324
21
        size_t old_size = col.size();
325
21
        col.resize(old_size + 1);
326
21
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
21
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
131
                                         IColumn& to) const override {
322
131
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
131
        col.set_item_size(sizeof(Data));
324
131
        size_t old_size = col.size();
325
131
        col.resize(old_size + 1);
326
131
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
131
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
50
                                         IColumn& to) const override {
322
50
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
50
        col.set_item_size(sizeof(Data));
324
50
        size_t old_size = col.size();
325
50
        col.resize(old_size + 1);
326
50
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
50
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
1
                                         IColumn& to) const override {
322
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
1
        col.set_item_size(sizeof(Data));
324
1
        size_t old_size = col.size();
325
1
        col.resize(old_size + 1);
326
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
321
64
                                         IColumn& to) const override {
322
64
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
323
64
        col.set_item_size(sizeof(Data));
324
64
        size_t old_size = col.size();
325
64
        col.resize(old_size + 1);
326
64
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
327
64
    }
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.71k
    MutableColumnPtr create_serialize_column() const override {
330
2.71k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
2.71k
    }
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
43
    MutableColumnPtr create_serialize_column() const override {
330
43
        return ColumnFixedLengthObject::create(sizeof(Data));
331
43
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
1
    MutableColumnPtr create_serialize_column() const override {
330
1
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
329
1.08k
    MutableColumnPtr create_serialize_column() const override {
330
1.08k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1.08k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
1
    MutableColumnPtr create_serialize_column() const override {
330
1
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
329
59
    MutableColumnPtr create_serialize_column() const override {
330
59
        return ColumnFixedLengthObject::create(sizeof(Data));
331
59
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
4
    MutableColumnPtr create_serialize_column() const override {
330
4
        return ColumnFixedLengthObject::create(sizeof(Data));
331
4
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
329
23
    MutableColumnPtr create_serialize_column() const override {
330
23
        return ColumnFixedLengthObject::create(sizeof(Data));
331
23
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
83
    MutableColumnPtr create_serialize_column() const override {
330
83
        return ColumnFixedLengthObject::create(sizeof(Data));
331
83
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
64
    MutableColumnPtr create_serialize_column() const override {
330
64
        return ColumnFixedLengthObject::create(sizeof(Data));
331
64
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
329
1.04k
    MutableColumnPtr create_serialize_column() const override {
330
1.04k
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1.04k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
329
97
    MutableColumnPtr create_serialize_column() const override {
330
97
        return ColumnFixedLengthObject::create(sizeof(Data));
331
97
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
329
1
    MutableColumnPtr create_serialize_column() const override {
330
1
        return ColumnFixedLengthObject::create(sizeof(Data));
331
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Line
Count
Source
329
204
    MutableColumnPtr create_serialize_column() const override {
330
204
        return ColumnFixedLengthObject::create(sizeof(Data));
331
204
    }
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.68k
    DataTypePtr get_serialized_type() const override {
334
2.68k
        return std::make_shared<DataTypeFixedLengthObject>();
335
2.68k
    }
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
43
    DataTypePtr get_serialized_type() const override {
334
43
        return std::make_shared<DataTypeFixedLengthObject>();
335
43
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
1
    DataTypePtr get_serialized_type() const override {
334
1
        return std::make_shared<DataTypeFixedLengthObject>();
335
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
333
1.10k
    DataTypePtr get_serialized_type() const override {
334
1.10k
        return std::make_shared<DataTypeFixedLengthObject>();
335
1.10k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
1
    DataTypePtr get_serialized_type() const override {
334
1
        return std::make_shared<DataTypeFixedLengthObject>();
335
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
333
59
    DataTypePtr get_serialized_type() const override {
334
59
        return std::make_shared<DataTypeFixedLengthObject>();
335
59
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
4
    DataTypePtr get_serialized_type() const override {
334
4
        return std::make_shared<DataTypeFixedLengthObject>();
335
4
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
333
23
    DataTypePtr get_serialized_type() const override {
334
23
        return std::make_shared<DataTypeFixedLengthObject>();
335
23
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
83
    DataTypePtr get_serialized_type() const override {
334
83
        return std::make_shared<DataTypeFixedLengthObject>();
335
83
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
64
    DataTypePtr get_serialized_type() const override {
334
64
        return std::make_shared<DataTypeFixedLengthObject>();
335
64
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
333
1.03k
    DataTypePtr get_serialized_type() const override {
334
1.03k
        return std::make_shared<DataTypeFixedLengthObject>();
335
1.03k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
333
68
    DataTypePtr get_serialized_type() const override {
334
68
        return std::make_shared<DataTypeFixedLengthObject>();
335
68
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
333
1
    DataTypePtr get_serialized_type() const override {
334
1
        return std::make_shared<DataTypeFixedLengthObject>();
335
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Line
Count
Source
333
204
    DataTypePtr get_serialized_type() const override {
334
204
        return std::make_shared<DataTypeFixedLengthObject>();
335
204
    }
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
238
    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
30
    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
37
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv
Line
Count
Source
340
75
    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
54
    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
464
                                UInt8* could_use_previous_result) const override {
375
464
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
464
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
464
        if (current_frame_start >= current_frame_end) {
378
16
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
448
        } else {
382
1.13k
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
683
                update_value<true>(place, columns, row_num);
384
683
            }
385
448
            *use_null_result = false;
386
448
            *could_use_previous_result = true;
387
448
        }
388
464
    }
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
25
                                UInt8* could_use_previous_result) const override {
375
25
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
25
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
25
        if (current_frame_start >= current_frame_end) {
378
0
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
25
        } else {
382
76
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
51
                update_value<true>(place, columns, row_num);
384
51
            }
385
25
            *use_null_result = false;
386
25
            *could_use_previous_result = true;
387
25
        }
388
25
    }
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
181
                                UInt8* could_use_previous_result) const override {
375
181
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
376
181
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
377
181
        if (current_frame_start >= current_frame_end) {
378
16
            if (!*could_use_previous_result) {
379
0
                *use_null_result = true;
380
0
            }
381
165
        } else {
382
398
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
233
                update_value<true>(place, columns, row_num);
384
233
            }
385
165
            *use_null_result = false;
386
165
            *could_use_previous_result = true;
387
165
        }
388
181
    }
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
400
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
383
237
                update_value<true>(place, columns, row_num);
384
237
            }
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