Coverage Report

Created: 2026-10-16 08:09

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
57.1k
    ResultT result(ResultType multiplier) const {
81
57.1k
        if (!count) {
82
            // null is handled in AggregationNode::_get_without_key_result
83
1
            return static_cast<ResultT>(sum);
84
1
        }
85
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
86
        // handle scale correctly, so no external multiplier is needed.
87
57.1k
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
88
0
            DecimalV2Value decimal_val_count(count, 0);
89
0
            DecimalV2Value cal_ret = sum / decimal_val_count;
90
0
            return cal_ret;
91
57.1k
        } else {
92
57.1k
            if constexpr (T == TYPE_DECIMAL256) {
93
187
                return static_cast<ResultT>(sum * multiplier /
94
187
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
56.9k
            } else {
96
56.9k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
56.9k
            }
98
57.1k
        }
99
57.1k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE6resultINS_7DecimalIiEEEET_S5_
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE6resultINS_7DecimalIlEEEET_S5_
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE6resultINS_12Decimal128V3EEET_S4_
Line
Count
Source
80
56.9k
    ResultT result(ResultType multiplier) const {
81
56.9k
        if (!count) {
82
            // null is handled in AggregationNode::_get_without_key_result
83
1
            return static_cast<ResultT>(sum);
84
1
        }
85
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
86
        // handle scale correctly, so no external multiplier is needed.
87
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
88
            DecimalV2Value decimal_val_count(count, 0);
89
            DecimalV2Value cal_ret = sum / decimal_val_count;
90
            return cal_ret;
91
56.9k
        } else {
92
            if constexpr (T == TYPE_DECIMAL256) {
93
                return static_cast<ResultT>(sum * multiplier /
94
                                            typename PrimitiveTypeTraits<T>::CppType(count));
95
56.9k
            } else {
96
56.9k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
97
56.9k
            }
98
56.9k
        }
99
56.9k
    }
_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
5.94k
    ResultT result() const {
103
5.94k
        if constexpr (std::is_floating_point_v<ResultT>) {
104
5.94k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
5.94k
                return static_cast<ResultT>(sum) /
106
5.94k
                       static_cast<ResultT>(count); /// allow division by zero
107
5.94k
            }
108
5.94k
        }
109
110
5.94k
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
5.94k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
5.94k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE6resultIdEET_v
Line
Count
Source
102
984
    ResultT result() const {
103
984
        if constexpr (std::is_floating_point_v<ResultT>) {
104
984
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
984
                return static_cast<ResultT>(sum) /
106
984
                       static_cast<ResultT>(count); /// allow division by zero
107
984
            }
108
984
        }
109
110
984
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
984
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
984
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE6resultIdEET_v
Line
Count
Source
102
987
    ResultT result() const {
103
987
        if constexpr (std::is_floating_point_v<ResultT>) {
104
987
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
987
                return static_cast<ResultT>(sum) /
106
987
                       static_cast<ResultT>(count); /// allow division by zero
107
987
            }
108
987
        }
109
110
987
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
987
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
987
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE6resultIdEET_v
Line
Count
Source
102
3.97k
    ResultT result() const {
103
3.97k
        if constexpr (std::is_floating_point_v<ResultT>) {
104
3.97k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
105
3.97k
                return static_cast<ResultT>(sum) /
106
3.97k
                       static_cast<ResultT>(count); /// allow division by zero
107
3.97k
            }
108
3.97k
        }
109
110
3.97k
        if (!count) {
111
            // null is handled in AggregationNode::_get_without_key_result
112
0
            return static_cast<ResultT>(sum);
113
0
        }
114
3.97k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
115
3.97k
    }
116
117
11.7k
    void write(BufferWritable& buf) const {
118
11.7k
        buf.write_binary(sum);
119
11.7k
        buf.write_binary(count);
120
11.7k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE
Line
Count
Source
117
15
    void write(BufferWritable& buf) const {
118
15
        buf.write_binary(sum);
119
15
        buf.write_binary(count);
120
15
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE
Line
Count
Source
117
15
    void write(BufferWritable& buf) const {
118
15
        buf.write_binary(sum);
119
15
        buf.write_binary(count);
120
15
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE
Line
Count
Source
117
8.16k
    void write(BufferWritable& buf) const {
118
8.16k
        buf.write_binary(sum);
119
8.16k
        buf.write_binary(count);
120
8.16k
    }
_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
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Line
Count
Source
117
3.49k
    void write(BufferWritable& buf) const {
118
3.49k
        buf.write_binary(sum);
119
3.49k
        buf.write_binary(count);
120
3.49k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE5writeERNS_14BufferWritableE
121
122
11.7k
    void read(BufferReadable& buf) {
123
11.7k
        buf.read_binary(sum);
124
11.7k
        buf.read_binary(count);
125
11.7k
    }
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE
Line
Count
Source
122
15
    void read(BufferReadable& buf) {
123
15
        buf.read_binary(sum);
124
15
        buf.read_binary(count);
125
15
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE
Line
Count
Source
122
15
    void read(BufferReadable& buf) {
123
15
        buf.read_binary(sum);
124
15
        buf.read_binary(count);
125
15
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
122
8.17k
    void read(BufferReadable& buf) {
123
8.17k
        buf.read_binary(sum);
124
8.17k
        buf.read_binary(count);
125
8.17k
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
122
66
    void read(BufferReadable& buf) {
123
66
        buf.read_binary(sum);
124
66
        buf.read_binary(count);
125
66
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE4readERNS_14BufferReadableE
Line
Count
Source
122
3.50k
    void read(BufferReadable& buf) {
123
3.50k
        buf.read_binary(sum);
124
3.50k
        buf.read_binary(count);
125
3.50k
    }
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.54k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
2.54k
                      argument_types_),
161
2.54k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
2.54k
                                    get_decimal_scale(*argument_types_[0]))) {
163
2.54k
        if constexpr (is_decimal(T)) {
164
745
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
745
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
745
        }
167
2.54k
    }
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
509
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
509
                      argument_types_),
161
509
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
509
                                    get_decimal_scale(*argument_types_[0]))) {
163
509
        if constexpr (is_decimal(T)) {
164
509
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
509
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
509
        }
167
509
    }
_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
76
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
76
                      argument_types_),
161
76
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
76
                                    get_decimal_scale(*argument_types_[0]))) {
163
76
        if constexpr (is_decimal(T)) {
164
76
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
76
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
76
        }
167
76
    }
_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
74
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
74
                      argument_types_),
161
74
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
74
                                    get_decimal_scale(*argument_types_[0]))) {
163
74
        if constexpr (is_decimal(T)) {
164
74
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
165
74
                    output_scale - get_decimal_scale(*argument_types_[0])));
166
74
        }
167
74
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
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.02k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
1.02k
                      argument_types_),
161
1.02k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
1.02k
                                    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.02k
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
159
269
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
269
                      argument_types_),
161
269
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
269
                                    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
269
    }
_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
215
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
160
215
                      argument_types_),
161
215
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
162
215
                                    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
215
    }
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
824
    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
10
    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
140
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
Line
Count
Source
169
595
    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
33
    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
9.90k
    DataTypePtr get_return_type() const override {
172
9.90k
        if constexpr (is_decimal(T)) {
173
3.74k
            return std::make_shared<ResultDataType>(
174
3.74k
                    ResultDataType::max_precision(),
175
3.74k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
6.16k
        } else {
177
6.16k
            return std::make_shared<ResultDataType>();
178
6.16k
        }
179
9.90k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
171
256
    DataTypePtr get_return_type() const override {
172
256
        if constexpr (is_decimal(T)) {
173
256
            return std::make_shared<ResultDataType>(
174
256
                    ResultDataType::max_precision(),
175
256
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
256
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
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.65k
    DataTypePtr get_return_type() const override {
172
2.65k
        if constexpr (is_decimal(T)) {
173
2.65k
            return std::make_shared<ResultDataType>(
174
2.65k
                    ResultDataType::max_precision(),
175
2.65k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
2.65k
    }
_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
352
    DataTypePtr get_return_type() const override {
172
352
        if constexpr (is_decimal(T)) {
173
352
            return std::make_shared<ResultDataType>(
174
352
                    ResultDataType::max_precision(),
175
352
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
352
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
128
    DataTypePtr get_return_type() const override {
172
128
        if constexpr (is_decimal(T)) {
173
128
            return std::make_shared<ResultDataType>(
174
128
                    ResultDataType::max_precision(),
175
128
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
128
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
171
319
    DataTypePtr get_return_type() const override {
172
319
        if constexpr (is_decimal(T)) {
173
319
            return std::make_shared<ResultDataType>(
174
319
                    ResultDataType::max_precision(),
175
319
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
176
        } else {
177
            return std::make_shared<ResultDataType>();
178
        }
179
319
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
378
    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
378
        } else {
177
378
            return std::make_shared<ResultDataType>();
178
378
        }
179
378
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
190
    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
190
        } else {
177
190
            return std::make_shared<ResultDataType>();
178
190
        }
179
190
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
171
2.51k
    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.51k
        } else {
177
2.51k
            return std::make_shared<ResultDataType>();
178
2.51k
        }
179
2.51k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
1.71k
    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.71k
        } else {
177
1.71k
            return std::make_shared<ResultDataType>();
178
1.71k
        }
179
1.71k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
171
91
    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
91
        } else {
177
91
            return std::make_shared<ResultDataType>();
178
91
        }
179
91
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
171
1.21k
    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.21k
        } else {
177
1.21k
            return std::make_shared<ResultDataType>();
178
1.21k
        }
179
1.21k
    }
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
33
    bool is_trivial() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE10is_trivialEv
Line
Count
Source
181
2
    bool is_trivial() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
Line
Count
Source
181
2
    bool is_trivial() const override { return true; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
Line
Count
Source
181
1
    bool is_trivial() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
Line
Count
Source
181
15
    bool is_trivial() const override { return true; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE10is_trivialEv
Line
Count
Source
181
13
    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
    template <bool is_add>
184
    NO_SANITIZE_UNDEFINED void update_value(AggregateDataPtr __restrict place,
185
9.93M
                                            const IColumn** columns, ssize_t row_num) const {
186
9.93M
        ALLOW_FP_REASSOCIATION
187
9.93M
        const auto& column =
188
9.93M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
9.93M
        if constexpr (is_add) {
190
9.93M
            if constexpr (T == TYPE_DECIMALV2) {
191
0
                this->data(place).sum += column.get_data()[row_num];
192
8.12M
            } else if constexpr (is_decimal(T)) {
193
8.12M
                this->data(place).sum += column.get_data()[row_num].value;
194
8.12M
            } else {
195
1.80M
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
1.80M
            }
197
9.93M
            ++this->data(place).count;
198
9.93M
        } else {
199
120
            if constexpr (T == TYPE_DECIMALV2) {
200
0
                this->data(place).sum += -column.get_data()[row_num];
201
22
            } else if constexpr (is_decimal(T)) {
202
22
                this->data(place).sum -= column.get_data()[row_num].value;
203
98
            } else {
204
98
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
98
            }
206
120
            --this->data(place).count;
207
120
        }
208
9.93M
    }
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
185
181
                                            const IColumn** columns, ssize_t row_num) const {
186
181
        ALLOW_FP_REASSOCIATION
187
181
        const auto& column =
188
181
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
181
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
181
            } else if constexpr (is_decimal(T)) {
193
181
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
181
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
181
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
20
                                            const IColumn** columns, ssize_t row_num) const {
186
20
        ALLOW_FP_REASSOCIATION
187
20
        const auto& column =
188
20
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
            ++this->data(place).count;
198
20
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
20
            } else if constexpr (is_decimal(T)) {
202
20
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
20
            --this->data(place).count;
207
20
        }
208
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
11
                                            const IColumn** columns, ssize_t row_num) const {
186
11
        ALLOW_FP_REASSOCIATION
187
11
        const auto& column =
188
11
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
11
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
11
            } else if constexpr (is_decimal(T)) {
193
11
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
11
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
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
185
8.12M
                                            const IColumn** columns, ssize_t row_num) const {
186
8.12M
        ALLOW_FP_REASSOCIATION
187
8.12M
        const auto& column =
188
8.12M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
8.12M
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
8.12M
            } else if constexpr (is_decimal(T)) {
193
8.12M
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
8.12M
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
8.12M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
48
                                            const IColumn** columns, ssize_t row_num) const {
186
48
        ALLOW_FP_REASSOCIATION
187
48
        const auto& column =
188
48
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
48
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
48
            } else if constexpr (is_decimal(T)) {
193
48
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
48
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
48
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
143
                                            const IColumn** columns, ssize_t row_num) const {
186
143
        ALLOW_FP_REASSOCIATION
187
143
        const auto& column =
188
143
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
143
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
143
            } else if constexpr (is_decimal(T)) {
193
143
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
143
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
143
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
2
                                            const IColumn** columns, ssize_t row_num) const {
186
2
        ALLOW_FP_REASSOCIATION
187
2
        const auto& column =
188
2
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
            ++this->data(place).count;
198
2
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
2
            } else if constexpr (is_decimal(T)) {
202
2
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
2
            --this->data(place).count;
207
2
        }
208
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
237
                                            const IColumn** columns, ssize_t row_num) const {
186
237
        ALLOW_FP_REASSOCIATION
187
237
        const auto& column =
188
237
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
237
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
237
            } else if constexpr (is_decimal(T)) {
193
237
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
237
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
237
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
421
                                            const IColumn** columns, ssize_t row_num) const {
186
421
        ALLOW_FP_REASSOCIATION
187
421
        const auto& column =
188
421
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
421
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
421
            } else if constexpr (is_decimal(T)) {
193
421
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
421
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
421
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
561
                                            const IColumn** columns, ssize_t row_num) const {
186
561
        ALLOW_FP_REASSOCIATION
187
561
        const auto& column =
188
561
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
561
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
561
            } else {
195
561
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
561
            }
197
561
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
561
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
483
                                            const IColumn** columns, ssize_t row_num) const {
186
483
        ALLOW_FP_REASSOCIATION
187
483
        const auto& column =
188
483
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
483
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
483
            } else {
195
483
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
483
            }
197
483
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
483
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
26.9k
                                            const IColumn** columns, ssize_t row_num) const {
186
26.9k
        ALLOW_FP_REASSOCIATION
187
26.9k
        const auto& column =
188
26.9k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
26.9k
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
26.9k
            } else {
195
26.9k
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
26.9k
            }
197
26.9k
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
26.9k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
12
                                            const IColumn** columns, ssize_t row_num) const {
186
12
        ALLOW_FP_REASSOCIATION
187
12
        const auto& column =
188
12
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
            ++this->data(place).count;
198
12
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
12
            } else {
204
12
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
12
            }
206
12
            --this->data(place).count;
207
12
        }
208
12
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
1.28k
                                            const IColumn** columns, ssize_t row_num) const {
186
1.28k
        ALLOW_FP_REASSOCIATION
187
1.28k
        const auto& column =
188
1.28k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
1.28k
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
1.28k
            } else {
195
1.28k
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
1.28k
            }
197
1.28k
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
1.28k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
86
                                            const IColumn** columns, ssize_t row_num) const {
186
86
        ALLOW_FP_REASSOCIATION
187
86
        const auto& column =
188
86
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
            } else {
195
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
            }
197
            ++this->data(place).count;
198
86
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
86
            } else {
204
86
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
86
            }
206
86
            --this->data(place).count;
207
86
        }
208
86
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
227
                                            const IColumn** columns, ssize_t row_num) const {
186
227
        ALLOW_FP_REASSOCIATION
187
227
        const auto& column =
188
227
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
227
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
227
            } else {
195
227
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
227
            }
197
227
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
227
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
185
1.78M
                                            const IColumn** columns, ssize_t row_num) const {
186
1.78M
        ALLOW_FP_REASSOCIATION
187
1.78M
        const auto& column =
188
1.78M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
1.78M
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
1.78M
            } else {
195
1.78M
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
1.78M
            }
197
1.78M
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
1.78M
    }
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
185
315
                                            const IColumn** columns, ssize_t row_num) const {
186
315
        ALLOW_FP_REASSOCIATION
187
315
        const auto& column =
188
315
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
189
315
        if constexpr (is_add) {
190
            if constexpr (T == TYPE_DECIMALV2) {
191
                this->data(place).sum += column.get_data()[row_num];
192
            } else if constexpr (is_decimal(T)) {
193
                this->data(place).sum += column.get_data()[row_num].value;
194
315
            } else {
195
315
                this->data(place).sum += (DataType)column.get_data()[row_num];
196
315
            }
197
315
            ++this->data(place).count;
198
        } else {
199
            if constexpr (T == TYPE_DECIMALV2) {
200
                this->data(place).sum += -column.get_data()[row_num];
201
            } else if constexpr (is_decimal(T)) {
202
                this->data(place).sum -= column.get_data()[row_num].value;
203
            } else {
204
                this->data(place).sum -= (DataType)column.get_data()[row_num];
205
            }
206
            --this->data(place).count;
207
        }
208
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
209
210
    void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num,
211
9.90M
             Arena&) const override {
212
9.90M
        update_value<true>(place, columns, row_num);
213
9.90M
    }
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
211
153
             Arena&) const override {
212
153
        update_value<true>(place, columns, row_num);
213
153
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
11
             Arena&) const override {
212
11
        update_value<true>(place, columns, row_num);
213
11
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
8.09M
             Arena&) const override {
212
8.09M
        update_value<true>(place, columns, row_num);
213
8.09M
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
48
             Arena&) const override {
212
48
        update_value<true>(place, columns, row_num);
213
48
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
139
             Arena&) const override {
212
139
        update_value<true>(place, columns, row_num);
213
139
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
237
             Arena&) const override {
212
237
        update_value<true>(place, columns, row_num);
213
237
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
421
             Arena&) const override {
212
421
        update_value<true>(place, columns, row_num);
213
421
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
560
             Arena&) const override {
212
560
        update_value<true>(place, columns, row_num);
213
560
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
483
             Arena&) const override {
212
483
        update_value<true>(place, columns, row_num);
213
483
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
26.7k
             Arena&) const override {
212
26.7k
        update_value<true>(place, columns, row_num);
213
26.7k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
895
             Arena&) const override {
212
895
        update_value<true>(place, columns, row_num);
213
895
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
227
             Arena&) const override {
212
227
        update_value<true>(place, columns, row_num);
213
227
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
1.77M
             Arena&) const override {
212
1.77M
        update_value<true>(place, columns, row_num);
213
1.77M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
211
315
             Arena&) const override {
212
315
        update_value<true>(place, columns, row_num);
213
315
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
214
215
1.02k
    void reset(AggregateDataPtr place) const override {
216
1.02k
        this->data(place).sum = {};
217
1.02k
        this->data(place).count = 0;
218
1.02k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
215
8
    void reset(AggregateDataPtr place) const override {
216
8
        this->data(place).sum = {};
217
8
        this->data(place).count = 0;
218
8
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
215
4
    void reset(AggregateDataPtr place) const override {
216
4
        this->data(place).sum = {};
217
4
        this->data(place).count = 0;
218
4
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
215
9
    void reset(AggregateDataPtr place) const override {
216
9
        this->data(place).sum = {};
217
9
        this->data(place).count = 0;
218
9
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
215
17
    void reset(AggregateDataPtr place) const override {
216
17
        this->data(place).sum = {};
217
17
        this->data(place).count = 0;
218
17
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
215
31
    void reset(AggregateDataPtr place) const override {
216
31
        this->data(place).sum = {};
217
31
        this->data(place).count = 0;
218
31
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
215
20
    void reset(AggregateDataPtr place) const override {
216
20
        this->data(place).sum = {};
217
20
        this->data(place).count = 0;
218
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
215
121
    void reset(AggregateDataPtr place) const override {
216
121
        this->data(place).sum = {};
217
121
        this->data(place).count = 0;
218
121
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
215
74
    void reset(AggregateDataPtr place) const override {
216
74
        this->data(place).sum = {};
217
74
        this->data(place).count = 0;
218
74
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
215
75
    void reset(AggregateDataPtr place) const override {
216
75
        this->data(place).sum = {};
217
75
        this->data(place).count = 0;
218
75
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
215
230
    void reset(AggregateDataPtr place) const override {
216
230
        this->data(place).sum = {};
217
230
        this->data(place).count = 0;
218
230
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
Line
Count
Source
215
169
    void reset(AggregateDataPtr place) const override {
216
169
        this->data(place).sum = {};
217
169
        this->data(place).count = 0;
218
169
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
Line
Count
Source
215
61
    void reset(AggregateDataPtr place) const override {
216
61
        this->data(place).sum = {};
217
61
        this->data(place).count = 0;
218
61
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
215
141
    void reset(AggregateDataPtr place) const override {
216
141
        this->data(place).sum = {};
217
141
        this->data(place).count = 0;
218
141
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
215
68
    void reset(AggregateDataPtr place) const override {
216
68
        this->data(place).sum = {};
217
68
        this->data(place).count = 0;
218
68
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
219
220
    NO_SANITIZE_UNDEFINED void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs,
221
83.2k
                                     Arena&) const override {
222
83.2k
        if constexpr (T == TYPE_DECIMALV2) {
223
0
            this->data(place).sum += this->data(rhs).sum;
224
65.9k
        } else if constexpr (is_decimal(T)) {
225
65.9k
            this->data(place).sum += this->data(rhs).sum.value;
226
65.9k
        } else {
227
17.2k
            this->data(place).sum += this->data(rhs).sum;
228
17.2k
        }
229
83.2k
        this->data(place).count += this->data(rhs).count;
230
83.2k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
33
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
33
        } else if constexpr (is_decimal(T)) {
225
33
            this->data(place).sum += this->data(rhs).sum.value;
226
        } else {
227
            this->data(place).sum += this->data(rhs).sum;
228
        }
229
33
        this->data(place).count += this->data(rhs).count;
230
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
221
65.8k
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
65.8k
        } else if constexpr (is_decimal(T)) {
225
65.8k
            this->data(place).sum += this->data(rhs).sum.value;
226
        } else {
227
            this->data(place).sum += this->data(rhs).sum;
228
        }
229
65.8k
        this->data(place).count += this->data(rhs).count;
230
65.8k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
64
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
64
        } else if constexpr (is_decimal(T)) {
225
64
            this->data(place).sum += this->data(rhs).sum.value;
226
        } else {
227
            this->data(place).sum += this->data(rhs).sum;
228
        }
229
64
        this->data(place).count += this->data(rhs).count;
230
64
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
2
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
2
        } else if constexpr (is_decimal(T)) {
225
2
            this->data(place).sum += this->data(rhs).sum.value;
226
        } else {
227
            this->data(place).sum += this->data(rhs).sum;
228
        }
229
2
        this->data(place).count += this->data(rhs).count;
230
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
18
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
18
        } else if constexpr (is_decimal(T)) {
225
18
            this->data(place).sum += this->data(rhs).sum.value;
226
        } else {
227
            this->data(place).sum += this->data(rhs).sum;
228
        }
229
18
        this->data(place).count += this->data(rhs).count;
230
18
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
43
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
        } else if constexpr (is_decimal(T)) {
225
            this->data(place).sum += this->data(rhs).sum.value;
226
43
        } else {
227
43
            this->data(place).sum += this->data(rhs).sum;
228
43
        }
229
43
        this->data(place).count += this->data(rhs).count;
230
43
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
31
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
        } else if constexpr (is_decimal(T)) {
225
            this->data(place).sum += this->data(rhs).sum.value;
226
31
        } else {
227
31
            this->data(place).sum += this->data(rhs).sum;
228
31
        }
229
31
        this->data(place).count += this->data(rhs).count;
230
31
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
16.8k
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
        } else if constexpr (is_decimal(T)) {
225
            this->data(place).sum += this->data(rhs).sum.value;
226
16.8k
        } else {
227
16.8k
            this->data(place).sum += this->data(rhs).sum;
228
16.8k
        }
229
16.8k
        this->data(place).count += this->data(rhs).count;
230
16.8k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
230
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
        } else if constexpr (is_decimal(T)) {
225
            this->data(place).sum += this->data(rhs).sum.value;
226
230
        } else {
227
230
            this->data(place).sum += this->data(rhs).sum;
228
230
        }
229
230
        this->data(place).count += this->data(rhs).count;
230
230
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
221
107
                                     Arena&) const override {
222
        if constexpr (T == TYPE_DECIMALV2) {
223
            this->data(place).sum += this->data(rhs).sum;
224
        } else if constexpr (is_decimal(T)) {
225
            this->data(place).sum += this->data(rhs).sum.value;
226
107
        } else {
227
107
            this->data(place).sum += this->data(rhs).sum;
228
107
        }
229
107
        this->data(place).count += this->data(rhs).count;
230
107
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
231
232
11.7k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
233
11.7k
        this->data(place).write(buf);
234
11.7k
    }
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
232
5
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
233
5
        this->data(place).write(buf);
234
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
232
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
233
10
        this->data(place).write(buf);
234
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
232
2
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
233
2
        this->data(place).write(buf);
234
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
232
13
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
233
13
        this->data(place).write(buf);
234
13
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
232
8.16k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
233
8.16k
        this->data(place).write(buf);
234
8.16k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
232
27
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
233
27
        this->data(place).write(buf);
234
27
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
232
3.49k
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
233
3.49k
        this->data(place).write(buf);
234
3.49k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
235
236
    void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf,
237
11.7k
                     Arena&) const override {
238
11.7k
        this->data(place).read(buf);
239
11.7k
    }
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
237
5
                     Arena&) const override {
238
5
        this->data(place).read(buf);
239
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
237
10
                     Arena&) const override {
238
10
        this->data(place).read(buf);
239
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
237
2
                     Arena&) const override {
238
2
        this->data(place).read(buf);
239
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
237
13
                     Arena&) const override {
238
13
        this->data(place).read(buf);
239
13
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
237
8.17k
                     Arena&) const override {
238
8.17k
        this->data(place).read(buf);
239
8.17k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
237
66
                     Arena&) const override {
238
66
        this->data(place).read(buf);
239
66
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
237
3.50k
                     Arena&) const override {
238
3.50k
        this->data(place).read(buf);
239
3.50k
    }
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
240
241
63.8k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
63.8k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
63.8k
        if constexpr (is_decimal(T)) {
244
57.9k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
57.9k
        } else {
246
5.94k
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
5.94k
        }
248
63.8k
    }
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
241
84
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
84
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
84
        if constexpr (is_decimal(T)) {
244
84
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
        } else {
246
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
        }
248
84
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
5
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
5
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
5
        if constexpr (is_decimal(T)) {
244
5
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
        } else {
246
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
        }
248
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
57.5k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
57.5k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
57.5k
        if constexpr (is_decimal(T)) {
244
57.5k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
        } else {
246
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
        }
248
57.5k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
18
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
18
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
18
        if constexpr (is_decimal(T)) {
244
18
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
        } else {
246
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
        }
248
18
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
64
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
64
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
64
        if constexpr (is_decimal(T)) {
244
64
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
        } else {
246
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
        }
248
64
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
22
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
22
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
22
        if constexpr (is_decimal(T)) {
244
22
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
        } else {
246
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
        }
248
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
142
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
142
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
142
        if constexpr (is_decimal(T)) {
244
142
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
        } else {
246
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
        }
248
142
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
147
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
147
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
        if constexpr (is_decimal(T)) {
244
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
147
        } else {
246
147
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
147
        }
248
147
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
118
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
118
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
        if constexpr (is_decimal(T)) {
244
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
118
        } else {
246
118
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
118
        }
248
118
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
719
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
719
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
        if constexpr (is_decimal(T)) {
244
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
719
        } else {
246
719
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
719
        }
248
719
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
927
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
927
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
        if constexpr (is_decimal(T)) {
244
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
927
        } else {
246
927
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
927
        }
248
927
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
60
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
60
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
        if constexpr (is_decimal(T)) {
244
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
60
        } else {
246
60
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
60
        }
248
60
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
3.90k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
3.90k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
        if constexpr (is_decimal(T)) {
244
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
3.90k
        } else {
246
3.90k
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
3.90k
        }
248
3.90k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
241
63
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
242
63
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
243
        if constexpr (is_decimal(T)) {
244
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
245
63
        } else {
246
63
            column.get_data().push_back(this->data(place).template result<ResultType>());
247
63
        }
248
63
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
249
250
    void serialize_to_column(const std::vector<AggregateDataPtr>& places, size_t offset,
251
2.52k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
2.52k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
2.52k
        col.set_item_size(sizeof(Data));
254
2.52k
        col.resize(num_rows);
255
2.52k
        auto* data = col.get_data().data();
256
83.6k
        for (size_t i = 0; i != num_rows; ++i) {
257
81.1k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
81.1k
                    *reinterpret_cast<Data*>(places[i] + offset);
259
81.1k
        }
260
2.52k
    }
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
251
22
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
22
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
22
        col.set_item_size(sizeof(Data));
254
22
        col.resize(num_rows);
255
22
        auto* data = col.get_data().data();
256
80
        for (size_t i = 0; i != num_rows; ++i) {
257
58
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
58
                    *reinterpret_cast<Data*>(places[i] + offset);
259
58
        }
260
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
251
1.60k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
1.60k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
1.60k
        col.set_item_size(sizeof(Data));
254
1.60k
        col.resize(num_rows);
255
1.60k
        auto* data = col.get_data().data();
256
65.8k
        for (size_t i = 0; i != num_rows; ++i) {
257
64.2k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
64.2k
                    *reinterpret_cast<Data*>(places[i] + offset);
259
64.2k
        }
260
1.60k
    }
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
251
73
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
73
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
73
        col.set_item_size(sizeof(Data));
254
73
        col.resize(num_rows);
255
73
        auto* data = col.get_data().data();
256
127
        for (size_t i = 0; i != num_rows; ++i) {
257
54
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
54
                    *reinterpret_cast<Data*>(places[i] + offset);
259
54
        }
260
73
    }
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
251
10
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
10
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
10
        col.set_item_size(sizeof(Data));
254
10
        col.resize(num_rows);
255
10
        auto* data = col.get_data().data();
256
12
        for (size_t i = 0; i != num_rows; ++i) {
257
2
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
2
                    *reinterpret_cast<Data*>(places[i] + offset);
259
2
        }
260
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
251
37
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
37
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
37
        col.set_item_size(sizeof(Data));
254
37
        col.resize(num_rows);
255
37
        auto* data = col.get_data().data();
256
108
        for (size_t i = 0; i != num_rows; ++i) {
257
71
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
71
                    *reinterpret_cast<Data*>(places[i] + offset);
259
71
        }
260
37
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
251
30
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
30
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
30
        col.set_item_size(sizeof(Data));
254
30
        col.resize(num_rows);
255
30
        auto* data = col.get_data().data();
256
102
        for (size_t i = 0; i != num_rows; ++i) {
257
72
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
72
                    *reinterpret_cast<Data*>(places[i] + offset);
259
72
        }
260
30
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
251
592
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
592
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
592
        col.set_item_size(sizeof(Data));
254
592
        col.resize(num_rows);
255
592
        auto* data = col.get_data().data();
256
17.0k
        for (size_t i = 0; i != num_rows; ++i) {
257
16.4k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
16.4k
                    *reinterpret_cast<Data*>(places[i] + offset);
259
16.4k
        }
260
592
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
251
41
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
41
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
41
        col.set_item_size(sizeof(Data));
254
41
        col.resize(num_rows);
255
41
        auto* data = col.get_data().data();
256
130
        for (size_t i = 0; i != num_rows; ++i) {
257
89
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
89
                    *reinterpret_cast<Data*>(places[i] + offset);
259
89
        }
260
41
    }
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
251
116
                             MutableColumnPtr& dst, const size_t num_rows) const override {
252
116
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
253
116
        col.set_item_size(sizeof(Data));
254
116
        col.resize(num_rows);
255
116
        auto* data = col.get_data().data();
256
250
        for (size_t i = 0; i != num_rows; ++i) {
257
134
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
258
134
                    *reinterpret_cast<Data*>(places[i] + offset);
259
134
        }
260
116
    }
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
261
262
    void streaming_agg_serialize_to_column(const IColumn** columns, MutableColumnPtr& dst,
263
79
                                           const size_t num_rows, Arena&) const override {
264
79
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
265
79
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
266
79
        dst_col.set_item_size(sizeof(Data));
267
79
        dst_col.resize(num_rows);
268
79
        auto* data = dst_col.get_data().data();
269
12.3k
        for (size_t i = 0; i != num_rows; ++i) {
270
12.2k
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
271
12.2k
            state.sum = typename Data::ResultType(src_data[i]);
272
12.2k
            state.count = 1;
273
12.2k
        }
274
79
    }
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
263
2
                                           const size_t num_rows, Arena&) const override {
264
2
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
265
2
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
266
2
        dst_col.set_item_size(sizeof(Data));
267
2
        dst_col.resize(num_rows);
268
2
        auto* data = dst_col.get_data().data();
269
4
        for (size_t i = 0; i != num_rows; ++i) {
270
2
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
271
2
            state.sum = typename Data::ResultType(src_data[i]);
272
2
            state.count = 1;
273
2
        }
274
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
263
74
                                           const size_t num_rows, Arena&) const override {
264
74
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
265
74
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
266
74
        dst_col.set_item_size(sizeof(Data));
267
74
        dst_col.resize(num_rows);
268
74
        auto* data = dst_col.get_data().data();
269
12.3k
        for (size_t i = 0; i != num_rows; ++i) {
270
12.2k
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
271
12.2k
            state.sum = typename Data::ResultType(src_data[i]);
272
12.2k
            state.count = 1;
273
12.2k
        }
274
74
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Line
Count
Source
263
3
                                           const size_t num_rows, Arena&) const override {
264
3
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
265
3
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
266
3
        dst_col.set_item_size(sizeof(Data));
267
3
        dst_col.resize(num_rows);
268
3
        auto* data = dst_col.get_data().data();
269
12
        for (size_t i = 0; i != num_rows; ++i) {
270
9
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
271
9
            state.sum = typename Data::ResultType(src_data[i]);
272
9
            state.count = 1;
273
9
        }
274
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
275
276
    void deserialize_from_column_row(AggregateDataPtr __restrict place, const IColumn& column,
277
32
                                     size_t row, Arena&) const override {
278
32
        DCHECK_LT(row, column.size());
279
32
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
280
32
        const auto* data = reinterpret_cast<const Data*>(col.get_data().data());
281
32
        this->data(place) = data[row];
282
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
277
1
                                     size_t row, Arena&) const override {
278
        DCHECK_LT(row, column.size());
279
1
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
280
1
        const auto* data = reinterpret_cast<const Data*>(col.get_data().data());
281
1
        this->data(place) = data[row];
282
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
277
31
                                     size_t row, Arena&) const override {
278
        DCHECK_LT(row, column.size());
279
31
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
280
31
        const auto* data = reinterpret_cast<const Data*>(col.get_data().data());
281
31
        this->data(place) = data[row];
282
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
283
284
    NO_SANITIZE_UNDEFINED void deserialize_and_merge_from_column_range(
285
            AggregateDataPtr __restrict place, const IColumn& column, size_t begin, size_t end,
286
8.24k
            Arena&) const override {
287
8.24k
        ALLOW_FP_REASSOCIATION
288
18.4E
        DCHECK(end <= column.size() && begin <= end)
289
18.4E
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
8.24k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
8.24k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
28.5k
        for (size_t i = begin; i <= end; ++i) {
293
20.2k
            this->data(place).sum += data[i].sum;
294
20.2k
            this->data(place).count += data[i].count;
295
20.2k
        }
296
8.24k
    }
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
286
35
            Arena&) const override {
287
35
        ALLOW_FP_REASSOCIATION
288
35
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
35
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
35
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
78
        for (size_t i = begin; i <= end; ++i) {
293
43
            this->data(place).sum += data[i].sum;
294
43
            this->data(place).count += data[i].count;
295
43
        }
296
35
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
1
            Arena&) const override {
287
1
        ALLOW_FP_REASSOCIATION
288
1
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
2
        for (size_t i = begin; i <= end; ++i) {
293
1
            this->data(place).sum += data[i].sum;
294
1
            this->data(place).count += data[i].count;
295
1
        }
296
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
286
32
            Arena&) const override {
287
32
        ALLOW_FP_REASSOCIATION
288
32
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
32
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
32
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
64
        for (size_t i = begin; i <= end; ++i) {
293
32
            this->data(place).sum += data[i].sum;
294
32
            this->data(place).count += data[i].count;
295
32
        }
296
32
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
1
            Arena&) const override {
287
1
        ALLOW_FP_REASSOCIATION
288
1
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
2
        for (size_t i = begin; i <= end; ++i) {
293
1
            this->data(place).sum += data[i].sum;
294
1
            this->data(place).count += data[i].count;
295
1
        }
296
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
286
6
            Arena&) const override {
287
6
        ALLOW_FP_REASSOCIATION
288
6
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
6
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
6
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
12
        for (size_t i = begin; i <= end; ++i) {
293
6
            this->data(place).sum += data[i].sum;
294
6
            this->data(place).count += data[i].count;
295
6
        }
296
6
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
9
            Arena&) const override {
287
9
        ALLOW_FP_REASSOCIATION
288
9
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
9
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
9
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
18
        for (size_t i = begin; i <= end; ++i) {
293
9
            this->data(place).sum += data[i].sum;
294
9
            this->data(place).count += data[i].count;
295
9
        }
296
9
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
54
            Arena&) const override {
287
54
        ALLOW_FP_REASSOCIATION
288
54
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
54
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
54
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
116
        for (size_t i = begin; i <= end; ++i) {
293
62
            this->data(place).sum += data[i].sum;
294
62
            this->data(place).count += data[i].count;
295
62
        }
296
54
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
50
            Arena&) const override {
287
50
        ALLOW_FP_REASSOCIATION
288
50
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
50
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
50
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
108
        for (size_t i = begin; i <= end; ++i) {
293
58
            this->data(place).sum += data[i].sum;
294
58
            this->data(place).count += data[i].count;
295
58
        }
296
50
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
7.79k
            Arena&) const override {
287
7.79k
        ALLOW_FP_REASSOCIATION
288
18.4E
        DCHECK(end <= column.size() && begin <= end)
289
18.4E
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
7.79k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
7.79k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
27.5k
        for (size_t i = begin; i <= end; ++i) {
293
19.7k
            this->data(place).sum += data[i].sum;
294
19.7k
            this->data(place).count += data[i].count;
295
19.7k
        }
296
7.79k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
193
            Arena&) const override {
287
193
        ALLOW_FP_REASSOCIATION
288
193
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
193
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
193
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
400
        for (size_t i = begin; i <= end; ++i) {
293
207
            this->data(place).sum += data[i].sum;
294
207
            this->data(place).count += data[i].count;
295
207
        }
296
193
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
1
            Arena&) const override {
287
1
        ALLOW_FP_REASSOCIATION
288
1
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
1
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
1
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
2
        for (size_t i = begin; i <= end; ++i) {
293
1
            this->data(place).sum += data[i].sum;
294
1
            this->data(place).count += data[i].count;
295
1
        }
296
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
286
75
            Arena&) const override {
287
75
        ALLOW_FP_REASSOCIATION
288
75
        DCHECK(end <= column.size() && begin <= end)
289
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
290
75
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
291
75
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
292
158
        for (size_t i = begin; i <= end; ++i) {
293
83
            this->data(place).sum += data[i].sum;
294
83
            this->data(place).count += data[i].count;
295
83
        }
296
75
    }
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
297
298
157
    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
298
88
    bool needs_deserialize_and_merge_scratch() const override { return false; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE35needs_deserialize_and_merge_scratchEv
Line
Count
Source
298
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
299
300
    void deserialize_and_merge_vec(const AggregateDataPtr* places, size_t offset,
301
                                   AggregateDataPtr rhs, const IColumn* column, Arena& arena,
302
987
                                   const size_t num_rows) const override {
303
987
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
987
        const auto* data = col.get_data().data();
305
987
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
987
    }
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
302
10
                                   const size_t num_rows) const override {
303
10
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
10
        const auto* data = col.get_data().data();
305
10
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
10
    }
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
302
471
                                   const size_t num_rows) const override {
303
471
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
471
        const auto* data = col.get_data().data();
305
471
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
471
    }
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
302
52
                                   const size_t num_rows) const override {
303
52
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
52
        const auto* data = col.get_data().data();
305
52
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
52
    }
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
302
2
                                   const size_t num_rows) const override {
303
2
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
2
        const auto* data = col.get_data().data();
305
2
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
302
22
                                   const size_t num_rows) const override {
303
22
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
22
        const auto* data = col.get_data().data();
305
22
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
22
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
302
10
                                   const size_t num_rows) const override {
303
10
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
10
        const auto* data = col.get_data().data();
305
10
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
302
313
                                   const size_t num_rows) const override {
303
313
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
313
        const auto* data = col.get_data().data();
305
313
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
313
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
302
40
                                   const size_t num_rows) const override {
303
40
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
40
        const auto* data = col.get_data().data();
305
40
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
40
    }
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
302
67
                                   const size_t num_rows) const override {
303
67
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
304
67
        const auto* data = col.get_data().data();
305
67
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
306
67
    }
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
307
308
    void deserialize_and_merge_vec_selected(const AggregateDataPtr* places, size_t offset,
309
                                            AggregateDataPtr rhs, const IColumn* column,
310
21
                                            Arena& arena, const size_t num_rows) const override {
311
21
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
312
21
        const auto* data = col.get_data().data();
313
21
        this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows);
314
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
310
21
                                            Arena& arena, const size_t num_rows) const override {
311
21
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
312
21
        const auto* data = col.get_data().data();
313
21
        this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows);
314
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
315
316
    void serialize_without_key_to_column(ConstAggregateDataPtr __restrict place,
317
360
                                         IColumn& to) const override {
318
360
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
360
        col.set_item_size(sizeof(Data));
320
360
        size_t old_size = col.size();
321
360
        col.resize(old_size + 1);
322
360
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
360
    }
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
317
19
                                         IColumn& to) const override {
318
19
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
19
        col.set_item_size(sizeof(Data));
320
19
        size_t old_size = col.size();
321
19
        col.resize(old_size + 1);
322
19
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
1
                                         IColumn& to) const override {
318
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
1
        col.set_item_size(sizeof(Data));
320
1
        size_t old_size = col.size();
321
1
        col.resize(old_size + 1);
322
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
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
317
32
                                         IColumn& to) const override {
318
32
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
32
        col.set_item_size(sizeof(Data));
320
32
        size_t old_size = col.size();
321
32
        col.resize(old_size + 1);
322
32
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
32
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
1
                                         IColumn& to) const override {
318
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
1
        col.set_item_size(sizeof(Data));
320
1
        size_t old_size = col.size();
321
1
        col.resize(old_size + 1);
322
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
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
317
6
                                         IColumn& to) const override {
318
6
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
6
        col.set_item_size(sizeof(Data));
320
6
        size_t old_size = col.size();
321
6
        col.resize(old_size + 1);
322
6
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
6
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
9
                                         IColumn& to) const override {
318
9
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
9
        col.set_item_size(sizeof(Data));
320
9
        size_t old_size = col.size();
321
9
        col.resize(old_size + 1);
322
9
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
9
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
35
                                         IColumn& to) const override {
318
35
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
35
        col.set_item_size(sizeof(Data));
320
35
        size_t old_size = col.size();
321
35
        col.resize(old_size + 1);
322
35
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
35
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
19
                                         IColumn& to) const override {
318
19
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
19
        col.set_item_size(sizeof(Data));
320
19
        size_t old_size = col.size();
321
19
        col.resize(old_size + 1);
322
19
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
131
                                         IColumn& to) const override {
318
131
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
131
        col.set_item_size(sizeof(Data));
320
131
        size_t old_size = col.size();
321
131
        col.resize(old_size + 1);
322
131
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
131
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
49
                                         IColumn& to) const override {
318
49
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
49
        col.set_item_size(sizeof(Data));
320
49
        size_t old_size = col.size();
321
49
        col.resize(old_size + 1);
322
49
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
49
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
1
                                         IColumn& to) const override {
318
1
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
1
        col.set_item_size(sizeof(Data));
320
1
        size_t old_size = col.size();
321
1
        col.resize(old_size + 1);
322
1
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
317
57
                                         IColumn& to) const override {
318
57
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
319
57
        col.set_item_size(sizeof(Data));
320
57
        size_t old_size = col.size();
321
57
        col.resize(old_size + 1);
322
57
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
323
57
    }
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
324
325
3.32k
    MutableColumnPtr create_serialize_column() const override {
326
3.32k
        return ColumnFixedLengthObject::create(sizeof(Data));
327
3.32k
    }
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
325
41
    MutableColumnPtr create_serialize_column() const override {
326
41
        return ColumnFixedLengthObject::create(sizeof(Data));
327
41
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
325
1
    MutableColumnPtr create_serialize_column() const override {
326
1
        return ColumnFixedLengthObject::create(sizeof(Data));
327
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
325
1.61k
    MutableColumnPtr create_serialize_column() const override {
326
1.61k
        return ColumnFixedLengthObject::create(sizeof(Data));
327
1.61k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
325
1
    MutableColumnPtr create_serialize_column() const override {
326
1
        return ColumnFixedLengthObject::create(sizeof(Data));
327
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
325
72
    MutableColumnPtr create_serialize_column() const override {
326
72
        return ColumnFixedLengthObject::create(sizeof(Data));
327
72
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
325
6
    MutableColumnPtr create_serialize_column() const override {
326
6
        return ColumnFixedLengthObject::create(sizeof(Data));
327
6
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
325
19
    MutableColumnPtr create_serialize_column() const override {
326
19
        return ColumnFixedLengthObject::create(sizeof(Data));
327
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
325
78
    MutableColumnPtr create_serialize_column() const override {
326
78
        return ColumnFixedLengthObject::create(sizeof(Data));
327
78
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
325
50
    MutableColumnPtr create_serialize_column() const override {
326
50
        return ColumnFixedLengthObject::create(sizeof(Data));
327
50
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
325
1.16k
    MutableColumnPtr create_serialize_column() const override {
326
1.16k
        return ColumnFixedLengthObject::create(sizeof(Data));
327
1.16k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
325
102
    MutableColumnPtr create_serialize_column() const override {
326
102
        return ColumnFixedLengthObject::create(sizeof(Data));
327
102
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
325
1
    MutableColumnPtr create_serialize_column() const override {
326
1
        return ColumnFixedLengthObject::create(sizeof(Data));
327
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Line
Count
Source
325
173
    MutableColumnPtr create_serialize_column() const override {
326
173
        return ColumnFixedLengthObject::create(sizeof(Data));
327
173
    }
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
328
329
3.28k
    DataTypePtr get_serialized_type() const override {
330
3.28k
        return std::make_shared<DataTypeFixedLengthObject>();
331
3.28k
    }
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
329
41
    DataTypePtr get_serialized_type() const override {
330
41
        return std::make_shared<DataTypeFixedLengthObject>();
331
41
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
329
1
    DataTypePtr get_serialized_type() const override {
330
1
        return std::make_shared<DataTypeFixedLengthObject>();
331
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
329
1.63k
    DataTypePtr get_serialized_type() const override {
330
1.63k
        return std::make_shared<DataTypeFixedLengthObject>();
331
1.63k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
329
1
    DataTypePtr get_serialized_type() const override {
330
1
        return std::make_shared<DataTypeFixedLengthObject>();
331
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
329
71
    DataTypePtr get_serialized_type() const override {
330
71
        return std::make_shared<DataTypeFixedLengthObject>();
331
71
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
329
6
    DataTypePtr get_serialized_type() const override {
330
6
        return std::make_shared<DataTypeFixedLengthObject>();
331
6
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
329
19
    DataTypePtr get_serialized_type() const override {
330
19
        return std::make_shared<DataTypeFixedLengthObject>();
331
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
329
78
    DataTypePtr get_serialized_type() const override {
330
78
        return std::make_shared<DataTypeFixedLengthObject>();
331
78
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
329
50
    DataTypePtr get_serialized_type() const override {
330
50
        return std::make_shared<DataTypeFixedLengthObject>();
331
50
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
329
1.13k
    DataTypePtr get_serialized_type() const override {
330
1.13k
        return std::make_shared<DataTypeFixedLengthObject>();
331
1.13k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
329
73
    DataTypePtr get_serialized_type() const override {
330
73
        return std::make_shared<DataTypeFixedLengthObject>();
331
73
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
329
1
    DataTypePtr get_serialized_type() const override {
330
1
        return std::make_shared<DataTypeFixedLengthObject>();
331
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Line
Count
Source
329
173
    DataTypePtr get_serialized_type() const override {
330
173
        return std::make_shared<DataTypeFixedLengthObject>();
331
173
    }
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
332
333
    // Floating-point accumulation is not exactly invertible: subtracting an outgoing
334
    // value cannot restore the rounding lost when it was added, so a value that has
335
    // left the frame would still distort later results. Recompute such frames instead.
336
702
    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
336
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
336
10
    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
336
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
336
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
336
45
    bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv
Line
Count
Source
336
570
    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
336
35
    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
337
338
    void execute_function_with_incremental(int64_t partition_start, int64_t partition_end,
339
                                           int64_t frame_start, int64_t frame_end,
340
                                           AggregateDataPtr place, const IColumn** columns,
341
                                           Arena& arena, bool previous_is_nul, bool end_is_nul,
342
                                           bool has_null, UInt8* use_null_result,
343
186
                                           UInt8* could_use_previous_result) const override {
344
186
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
345
186
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
346
186
        if (current_frame_start >= current_frame_end) {
347
0
            *use_null_result = true;
348
0
            return;
349
0
        }
350
186
        if (*could_use_previous_result) {
351
168
            auto outcoming_pos = frame_start - 1;
352
168
            auto incoming_pos = frame_end - 1;
353
168
            if (!previous_is_nul && outcoming_pos >= partition_start &&
354
168
                outcoming_pos < partition_end) {
355
120
                update_value<false>(place, columns, outcoming_pos);
356
120
            }
357
168
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
358
132
                update_value<true>(place, columns, incoming_pos);
359
132
            }
360
168
        } else {
361
18
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
362
18
                                         place, columns, arena, use_null_result,
363
18
                                         could_use_previous_result);
364
18
        }
365
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
343
24
                                           UInt8* could_use_previous_result) const override {
344
24
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
345
24
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
346
24
        if (current_frame_start >= current_frame_end) {
347
0
            *use_null_result = true;
348
0
            return;
349
0
        }
350
24
        if (*could_use_previous_result) {
351
24
            auto outcoming_pos = frame_start - 1;
352
24
            auto incoming_pos = frame_end - 1;
353
24
            if (!previous_is_nul && outcoming_pos >= partition_start &&
354
24
                outcoming_pos < partition_end) {
355
20
                update_value<false>(place, columns, outcoming_pos);
356
20
            }
357
24
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
358
20
                update_value<true>(place, columns, incoming_pos);
359
20
            }
360
24
        } else {
361
0
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
362
0
                                         place, columns, arena, use_null_result,
363
0
                                         could_use_previous_result);
364
0
        }
365
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
343
3
                                           UInt8* could_use_previous_result) const override {
344
3
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
345
3
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
346
3
        if (current_frame_start >= current_frame_end) {
347
0
            *use_null_result = true;
348
0
            return;
349
0
        }
350
3
        if (*could_use_previous_result) {
351
3
            auto outcoming_pos = frame_start - 1;
352
3
            auto incoming_pos = frame_end - 1;
353
3
            if (!previous_is_nul && outcoming_pos >= partition_start &&
354
3
                outcoming_pos < partition_end) {
355
2
                update_value<false>(place, columns, outcoming_pos);
356
2
            }
357
3
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
358
3
                update_value<true>(place, columns, incoming_pos);
359
3
            }
360
3
        } else {
361
0
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
362
0
                                         place, columns, arena, use_null_result,
363
0
                                         could_use_previous_result);
364
0
        }
365
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
343
15
                                           UInt8* could_use_previous_result) const override {
344
15
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
345
15
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
346
15
        if (current_frame_start >= current_frame_end) {
347
0
            *use_null_result = true;
348
0
            return;
349
0
        }
350
15
        if (*could_use_previous_result) {
351
15
            auto outcoming_pos = frame_start - 1;
352
15
            auto incoming_pos = frame_end - 1;
353
15
            if (!previous_is_nul && outcoming_pos >= partition_start &&
354
15
                outcoming_pos < partition_end) {
355
12
                update_value<false>(place, columns, outcoming_pos);
356
12
            }
357
15
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
358
13
                update_value<true>(place, columns, incoming_pos);
359
13
            }
360
15
        } else {
361
0
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
362
0
                                         place, columns, arena, use_null_result,
363
0
                                         could_use_previous_result);
364
0
        }
365
15
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Line
Count
Source
343
144
                                           UInt8* could_use_previous_result) const override {
344
144
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
345
144
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
346
144
        if (current_frame_start >= current_frame_end) {
347
0
            *use_null_result = true;
348
0
            return;
349
0
        }
350
144
        if (*could_use_previous_result) {
351
126
            auto outcoming_pos = frame_start - 1;
352
126
            auto incoming_pos = frame_end - 1;
353
126
            if (!previous_is_nul && outcoming_pos >= partition_start &&
354
126
                outcoming_pos < partition_end) {
355
86
                update_value<false>(place, columns, outcoming_pos);
356
86
            }
357
126
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
358
96
                update_value<true>(place, columns, incoming_pos);
359
96
            }
360
126
        } else {
361
18
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
362
18
                                         place, columns, arena, use_null_result,
363
18
                                         could_use_previous_result);
364
18
        }
365
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_
366
367
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
368
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
369
                                Arena& arena, UInt8* use_null_result,
370
498
                                UInt8* could_use_previous_result) const override {
371
498
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
372
498
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
373
498
        if (current_frame_start >= current_frame_end) {
374
20
            if (!*could_use_previous_result) {
375
0
                *use_null_result = true;
376
0
            }
377
478
        } else {
378
1.15k
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
379
673
                update_value<true>(place, columns, row_num);
380
673
            }
381
478
            *use_null_result = false;
382
478
            *could_use_previous_result = true;
383
478
        }
384
498
    }
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
370
4
                                UInt8* could_use_previous_result) const override {
371
4
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
372
4
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
373
4
        if (current_frame_start >= current_frame_end) {
374
0
            if (!*could_use_previous_result) {
375
0
                *use_null_result = true;
376
0
            }
377
4
        } else {
378
12
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
379
8
                update_value<true>(place, columns, row_num);
380
8
            }
381
4
            *use_null_result = false;
382
4
            *could_use_previous_result = true;
383
4
        }
384
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
370
23
                                UInt8* could_use_previous_result) const override {
371
23
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
372
23
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
373
23
        if (current_frame_start >= current_frame_end) {
374
0
            if (!*could_use_previous_result) {
375
0
                *use_null_result = true;
376
0
            }
377
23
        } else {
378
53
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
379
30
                update_value<true>(place, columns, row_num);
380
30
            }
381
23
            *use_null_result = false;
382
23
            *could_use_previous_result = true;
383
23
        }
384
23
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
370
1
                                UInt8* could_use_previous_result) const override {
371
1
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
372
1
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
373
1
        if (current_frame_start >= current_frame_end) {
374
0
            if (!*could_use_previous_result) {
375
0
                *use_null_result = true;
376
0
            }
377
1
        } else {
378
2
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
379
1
                update_value<true>(place, columns, row_num);
380
1
            }
381
1
            *use_null_result = false;
382
1
            *could_use_previous_result = true;
383
1
        }
384
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
370
1
                                UInt8* could_use_previous_result) const override {
371
1
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
372
1
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
373
1
        if (current_frame_start >= current_frame_end) {
374
0
            if (!*could_use_previous_result) {
375
0
                *use_null_result = true;
376
0
            }
377
1
        } else {
378
2
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
379
1
                update_value<true>(place, columns, row_num);
380
1
            }
381
1
            *use_null_result = false;
382
1
            *could_use_previous_result = true;
383
1
        }
384
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
370
89
                                UInt8* could_use_previous_result) const override {
371
89
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
372
89
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
373
89
        if (current_frame_start >= current_frame_end) {
374
0
            if (!*could_use_previous_result) {
375
0
                *use_null_result = true;
376
0
            }
377
89
        } else {
378
241
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
379
152
                update_value<true>(place, columns, row_num);
380
152
            }
381
89
            *use_null_result = false;
382
89
            *could_use_previous_result = true;
383
89
        }
384
89
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
370
226
                                UInt8* could_use_previous_result) const override {
371
226
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
372
226
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
373
226
        if (current_frame_start >= current_frame_end) {
374
20
            if (!*could_use_previous_result) {
375
0
                *use_null_result = true;
376
0
            }
377
206
        } else {
378
497
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
379
291
                update_value<true>(place, columns, row_num);
380
291
            }
381
206
            *use_null_result = false;
382
206
            *could_use_previous_result = true;
383
206
        }
384
226
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
370
154
                                UInt8* could_use_previous_result) const override {
371
154
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
372
154
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
373
154
        if (current_frame_start >= current_frame_end) {
374
0
            if (!*could_use_previous_result) {
375
0
                *use_null_result = true;
376
0
            }
377
154
        } else {
378
344
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
379
190
                update_value<true>(place, columns, row_num);
380
190
            }
381
154
            *use_null_result = false;
382
154
            *could_use_previous_result = true;
383
154
        }
384
154
    }
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_
385
386
private:
387
    uint32_t output_scale;
388
    ResultType multiplier;
389
};
390
391
} // namespace doris