Coverage Report

Created: 2026-06-05 04:26

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 "core/assert_cast.h"
33
#include "core/column/column.h"
34
#include "core/column/column_fixed_length_object.h"
35
#include "core/data_type/data_type.h"
36
#include "core/data_type/data_type_decimal.h"
37
#include "core/data_type/data_type_fixed_length_object.h"
38
#include "core/data_type/primitive_type.h"
39
#include "core/types.h"
40
#include "core/value/decimalv2_value.h"
41
#include "exprs/aggregate/aggregate_function.h"
42
43
namespace doris {
44
class Arena;
45
class BufferReadable;
46
class BufferWritable;
47
template <PrimitiveType T>
48
class ColumnDecimal;
49
template <PrimitiveType T>
50
class DataTypeNumber;
51
template <PrimitiveType T>
52
class ColumnVector;
53
54
template <PrimitiveType T>
55
struct AggregateFunctionAvgData {
56
    using ResultType = typename PrimitiveTypeTraits<T>::CppType;
57
    static constexpr PrimitiveType ResultPType = T;
58
    ResultType sum {};
59
    UInt64 count = 0;
60
61
    AggregateFunctionAvgData& operator=(const AggregateFunctionAvgData<T>& src) = default;
62
63
    template <typename ResultT>
64
2.61k
    ResultT result(ResultType multiplier) const {
65
2.61k
        if (!count) {
66
            // null is handled in AggregationNode::_get_without_key_result
67
1
            return static_cast<ResultT>(sum);
68
1
        }
69
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
70
        // handle scale correctly, so no external multiplier is needed.
71
2.61k
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
72
13
            DecimalV2Value decimal_val_count(count, 0);
73
13
            DecimalV2Value cal_ret = sum / decimal_val_count;
74
13
            return cal_ret;
75
2.60k
        } else {
76
2.60k
            if constexpr (T == TYPE_DECIMAL256) {
77
184
                return static_cast<ResultT>(sum * multiplier /
78
184
                                            typename PrimitiveTypeTraits<T>::CppType(count));
79
2.42k
            } else {
80
2.42k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
81
2.42k
            }
82
2.60k
        }
83
2.61k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE6resultINS_7DecimalIiEEEET_S5_
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE6resultINS_7DecimalIlEEEET_S5_
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE6resultINS_12Decimal128V3EEET_S4_
Line
Count
Source
64
2.42k
    ResultT result(ResultType multiplier) const {
65
2.42k
        if (!count) {
66
            // null is handled in AggregationNode::_get_without_key_result
67
1
            return static_cast<ResultT>(sum);
68
1
        }
69
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
70
        // handle scale correctly, so no external multiplier is needed.
71
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
72
            DecimalV2Value decimal_val_count(count, 0);
73
            DecimalV2Value cal_ret = sum / decimal_val_count;
74
            return cal_ret;
75
2.42k
        } else {
76
            if constexpr (T == TYPE_DECIMAL256) {
77
                return static_cast<ResultT>(sum * multiplier /
78
                                            typename PrimitiveTypeTraits<T>::CppType(count));
79
2.42k
            } else {
80
2.42k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
81
2.42k
            }
82
2.42k
        }
83
2.42k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE6resultINS_7DecimalIN4wide7integerILm256EiEEEEEET_S8_
Line
Count
Source
64
184
    ResultT result(ResultType multiplier) const {
65
184
        if (!count) {
66
            // null is handled in AggregationNode::_get_without_key_result
67
0
            return static_cast<ResultT>(sum);
68
0
        }
69
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
70
        // handle scale correctly, so no external multiplier is needed.
71
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
72
            DecimalV2Value decimal_val_count(count, 0);
73
            DecimalV2Value cal_ret = sum / decimal_val_count;
74
            return cal_ret;
75
184
        } else {
76
184
            if constexpr (T == TYPE_DECIMAL256) {
77
184
                return static_cast<ResultT>(sum * multiplier /
78
184
                                            typename PrimitiveTypeTraits<T>::CppType(count));
79
            } else {
80
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
81
            }
82
184
        }
83
184
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE6resultINS_14DecimalV2ValueEEET_S4_
Line
Count
Source
64
13
    ResultT result(ResultType multiplier) const {
65
13
        if (!count) {
66
            // null is handled in AggregationNode::_get_without_key_result
67
0
            return static_cast<ResultT>(sum);
68
0
        }
69
        // DecimalV2 has fixed internal scale=9; its arithmetic operators already
70
        // handle scale correctly, so no external multiplier is needed.
71
13
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
72
13
            DecimalV2Value decimal_val_count(count, 0);
73
13
            DecimalV2Value cal_ret = sum / decimal_val_count;
74
13
            return cal_ret;
75
        } else {
76
            if constexpr (T == TYPE_DECIMAL256) {
77
                return static_cast<ResultT>(sum * multiplier /
78
                                            typename PrimitiveTypeTraits<T>::CppType(count));
79
            } else {
80
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
81
            }
82
        }
83
13
    }
84
85
    template <typename ResultT>
86
1.87k
    ResultT result() const {
87
1.87k
        if constexpr (std::is_floating_point_v<ResultT>) {
88
1.87k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
89
1.87k
                return static_cast<ResultT>(sum) /
90
1.87k
                       static_cast<ResultT>(count); /// allow division by zero
91
1.87k
            }
92
1.87k
        }
93
94
1.87k
        if (!count) {
95
            // null is handled in AggregationNode::_get_without_key_result
96
0
            return static_cast<ResultT>(sum);
97
0
        }
98
1.87k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
99
1.87k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE6resultIdEET_v
Line
Count
Source
86
590
    ResultT result() const {
87
590
        if constexpr (std::is_floating_point_v<ResultT>) {
88
590
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
89
590
                return static_cast<ResultT>(sum) /
90
590
                       static_cast<ResultT>(count); /// allow division by zero
91
590
            }
92
590
        }
93
94
590
        if (!count) {
95
            // null is handled in AggregationNode::_get_without_key_result
96
0
            return static_cast<ResultT>(sum);
97
0
        }
98
590
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
99
590
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE6resultIdEET_v
Line
Count
Source
86
549
    ResultT result() const {
87
549
        if constexpr (std::is_floating_point_v<ResultT>) {
88
549
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
89
549
                return static_cast<ResultT>(sum) /
90
549
                       static_cast<ResultT>(count); /// allow division by zero
91
549
            }
92
549
        }
93
94
549
        if (!count) {
95
            // null is handled in AggregationNode::_get_without_key_result
96
0
            return static_cast<ResultT>(sum);
97
0
        }
98
549
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
99
549
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE6resultIdEET_v
Line
Count
Source
86
738
    ResultT result() const {
87
738
        if constexpr (std::is_floating_point_v<ResultT>) {
88
738
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
89
738
                return static_cast<ResultT>(sum) /
90
738
                       static_cast<ResultT>(count); /// allow division by zero
91
738
            }
92
738
        }
93
94
738
        if (!count) {
95
            // null is handled in AggregationNode::_get_without_key_result
96
0
            return static_cast<ResultT>(sum);
97
0
        }
98
738
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
99
738
    }
100
101
194
    void write(BufferWritable& buf) const {
102
194
        buf.write_binary(sum);
103
194
        buf.write_binary(count);
104
194
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE
Line
Count
Source
101
10
    void write(BufferWritable& buf) const {
102
10
        buf.write_binary(sum);
103
10
        buf.write_binary(count);
104
10
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE
Line
Count
Source
101
13
    void write(BufferWritable& buf) const {
102
13
        buf.write_binary(sum);
103
13
        buf.write_binary(count);
104
13
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE
Line
Count
Source
101
144
    void write(BufferWritable& buf) const {
102
144
        buf.write_binary(sum);
103
144
        buf.write_binary(count);
104
144
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE
Line
Count
Source
101
27
    void write(BufferWritable& buf) const {
102
27
        buf.write_binary(sum);
103
27
        buf.write_binary(count);
104
27
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE5writeERNS_14BufferWritableE
105
106
212
    void read(BufferReadable& buf) {
107
212
        buf.read_binary(sum);
108
212
        buf.read_binary(count);
109
212
    }
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE
Line
Count
Source
106
10
    void read(BufferReadable& buf) {
107
10
        buf.read_binary(sum);
108
10
        buf.read_binary(count);
109
10
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE
Line
Count
Source
106
13
    void read(BufferReadable& buf) {
107
13
        buf.read_binary(sum);
108
13
        buf.read_binary(count);
109
13
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
106
150
    void read(BufferReadable& buf) {
107
150
        buf.read_binary(sum);
108
150
        buf.read_binary(count);
109
150
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
106
39
    void read(BufferReadable& buf) {
107
39
        buf.read_binary(sum);
108
39
        buf.read_binary(count);
109
39
    }
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE4readERNS_14BufferReadableE
110
};
111
112
template <PrimitiveType T, PrimitiveType TResult, typename Data>
113
class AggregateFunctionAvg;
114
115
template <PrimitiveType T, PrimitiveType TResult>
116
constexpr static bool is_valid_avg_types =
117
        (is_same_or_wider_decimalv3(T, TResult) || (is_decimalv2(T) && is_decimalv2(TResult)) ||
118
         (is_float_or_double(T) && is_float_or_double(TResult)) ||
119
         (is_int_or_bool(T) && (is_double(TResult) || is_int(TResult))));
120
/// Calculates arithmetic mean of numbers.
121
template <PrimitiveType T, PrimitiveType TResult, typename Data>
122
    requires(is_valid_avg_types<T, TResult>)
123
class AggregateFunctionAvg<T, TResult, Data> final
124
        : public IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>,
125
          UnaryExpression,
126
          NullableAggregateFunction {
127
public:
128
    using ResultType = typename PrimitiveTypeTraits<TResult>::CppType;
129
    using ResultDataType = typename PrimitiveTypeTraits<TResult>::DataType;
130
    using ColVecType = typename PrimitiveTypeTraits<T>::ColumnType;
131
    using ColVecResult = typename PrimitiveTypeTraits<TResult>::ColumnType;
132
    // The result calculated by PercentileApprox is an approximate value,
133
    // so the underlying storage uses float. The following calls will involve
134
    // an implicit cast to float.
135
136
    using DataType = typename Data::ResultType;
137
138
    // consistent with fe/fe-common/src/main/java/org/apache/doris/catalog/ScalarType.java
139
    static constexpr uint32_t DEFAULT_MIN_AVG_DECIMAL128_SCALE = 4;
140
141
    /// ctor for native types
142
    AggregateFunctionAvg(const DataTypes& argument_types_)
143
2.90k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
2.90k
                      argument_types_),
145
2.90k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
2.90k
                                    get_decimal_scale(*argument_types_[0]))) {
147
2.90k
        if constexpr (is_decimal(T)) {
148
708
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
708
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
708
        }
151
2.90k
    }
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
143
41
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
41
                      argument_types_),
145
41
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
41
                                    get_decimal_scale(*argument_types_[0]))) {
147
41
        if constexpr (is_decimal(T)) {
148
41
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
41
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
41
        }
151
41
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
7
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
7
                      argument_types_),
145
7
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
7
                                    get_decimal_scale(*argument_types_[0]))) {
147
7
        if constexpr (is_decimal(T)) {
148
7
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
7
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
7
        }
151
7
    }
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
432
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
432
                      argument_types_),
145
432
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
432
                                    get_decimal_scale(*argument_types_[0]))) {
147
432
        if constexpr (is_decimal(T)) {
148
432
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
432
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
432
        }
151
432
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
8
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
8
                      argument_types_),
145
8
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
8
                                    get_decimal_scale(*argument_types_[0]))) {
147
8
        if constexpr (is_decimal(T)) {
148
8
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
8
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
8
        }
151
8
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
93
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
93
                      argument_types_),
145
93
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
93
                                    get_decimal_scale(*argument_types_[0]))) {
147
93
        if constexpr (is_decimal(T)) {
148
93
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
93
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
93
        }
151
93
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
22
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
22
                      argument_types_),
145
22
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
22
                                    get_decimal_scale(*argument_types_[0]))) {
147
22
        if constexpr (is_decimal(T)) {
148
22
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
22
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
22
        }
151
22
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
99
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
99
                      argument_types_),
145
99
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
99
                                    get_decimal_scale(*argument_types_[0]))) {
147
99
        if constexpr (is_decimal(T)) {
148
99
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
99
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
99
        }
151
99
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
82
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
82
                      argument_types_),
145
82
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
82
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
82
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
27
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
27
                      argument_types_),
145
27
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
27
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
27
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
1.22k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
1.22k
                      argument_types_),
145
1.22k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
1.22k
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
1.22k
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
420
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
420
                      argument_types_),
145
420
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
420
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
420
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
1
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
1
                      argument_types_),
145
1
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
1
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
1
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
192
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
192
                      argument_types_),
145
192
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
192
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
192
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
6
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
6
                      argument_types_),
145
6
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
6
                                    get_decimal_scale(*argument_types_[0]))) {
147
6
        if constexpr (is_decimal(T)) {
148
6
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
6
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
6
        }
151
6
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
50
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
50
                      argument_types_),
145
50
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
50
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
50
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
38
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
38
                      argument_types_),
145
38
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
38
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
38
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
46
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
46
                      argument_types_),
145
46
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
46
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
46
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
38
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
38
                      argument_types_),
145
38
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
38
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
38
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
38
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
38
                      argument_types_),
145
38
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
38
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
38
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
42
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
42
                      argument_types_),
145
42
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
42
                                    get_decimal_scale(*argument_types_[0]))) {
147
        if constexpr (is_decimal(T)) {
148
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
        }
151
42
    }
152
153
442
    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
153
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
153
38
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE8get_nameB5cxx11Ev
Line
Count
Source
153
2
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev
Line
Count
Source
153
2
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev
Line
Count
Source
153
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
153
116
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
Line
Count
Source
153
216
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Line
Count
Source
153
27
    String get_name() const override { return "avg"; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev
154
155
2.19k
    DataTypePtr get_return_type() const override {
156
2.19k
        if constexpr (is_decimal(T)) {
157
932
            return std::make_shared<ResultDataType>(
158
932
                    ResultDataType::max_precision(),
159
932
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
1.26k
        } else {
161
1.26k
            return std::make_shared<ResultDataType>();
162
1.26k
        }
163
2.19k
    }
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
155
103
    DataTypePtr get_return_type() const override {
156
103
        if constexpr (is_decimal(T)) {
157
103
            return std::make_shared<ResultDataType>(
158
103
                    ResultDataType::max_precision(),
159
103
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
103
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
155
3
    DataTypePtr get_return_type() const override {
156
3
        if constexpr (is_decimal(T)) {
157
3
            return std::make_shared<ResultDataType>(
158
3
                    ResultDataType::max_precision(),
159
3
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
3
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
155
718
    DataTypePtr get_return_type() const override {
156
718
        if constexpr (is_decimal(T)) {
157
718
            return std::make_shared<ResultDataType>(
158
718
                    ResultDataType::max_precision(),
159
718
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
718
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
155
3
    DataTypePtr get_return_type() const override {
156
3
        if constexpr (is_decimal(T)) {
157
3
            return std::make_shared<ResultDataType>(
158
3
                    ResultDataType::max_precision(),
159
3
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
3
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
155
36
    DataTypePtr get_return_type() const override {
156
36
        if constexpr (is_decimal(T)) {
157
36
            return std::make_shared<ResultDataType>(
158
36
                    ResultDataType::max_precision(),
159
36
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
36
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
155
10
    DataTypePtr get_return_type() const override {
156
10
        if constexpr (is_decimal(T)) {
157
10
            return std::make_shared<ResultDataType>(
158
10
                    ResultDataType::max_precision(),
159
10
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
155
48
    DataTypePtr get_return_type() const override {
156
48
        if constexpr (is_decimal(T)) {
157
48
            return std::make_shared<ResultDataType>(
158
48
                    ResultDataType::max_precision(),
159
48
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
48
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
155
150
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
150
        } else {
161
150
            return std::make_shared<ResultDataType>();
162
150
        }
163
150
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
155
48
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
48
        } else {
161
48
            return std::make_shared<ResultDataType>();
162
48
        }
163
48
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
155
404
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
404
        } else {
161
404
            return std::make_shared<ResultDataType>();
162
404
        }
163
404
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
155
316
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
316
        } else {
161
316
            return std::make_shared<ResultDataType>();
162
316
        }
163
316
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
155
3
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
3
        } else {
161
3
            return std::make_shared<ResultDataType>();
162
3
        }
163
3
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
270
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
270
        } else {
161
270
            return std::make_shared<ResultDataType>();
162
270
        }
163
270
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE15get_return_typeEv
Line
Count
Source
155
11
    DataTypePtr get_return_type() const override {
156
11
        if constexpr (is_decimal(T)) {
157
11
            return std::make_shared<ResultDataType>(
158
11
                    ResultDataType::max_precision(),
159
11
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
11
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
16
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
16
        } else {
161
16
            return std::make_shared<ResultDataType>();
162
16
        }
163
16
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
10
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
10
        } else {
161
10
            return std::make_shared<ResultDataType>();
162
10
        }
163
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
14
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
14
        } else {
161
14
            return std::make_shared<ResultDataType>();
162
14
        }
163
14
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
10
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
10
        } else {
161
10
            return std::make_shared<ResultDataType>();
162
10
        }
163
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
10
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
10
        } else {
161
10
            return std::make_shared<ResultDataType>();
162
10
        }
163
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
12
    DataTypePtr get_return_type() const override {
156
        if constexpr (is_decimal(T)) {
157
            return std::make_shared<ResultDataType>(
158
                    ResultDataType::max_precision(),
159
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
12
        } else {
161
12
            return std::make_shared<ResultDataType>();
162
12
        }
163
12
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
164
165
0
    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
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE10is_trivialEv
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_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv
166
167
    template <bool is_add>
168
    NO_SANITIZE_UNDEFINED void update_value(AggregateDataPtr __restrict place,
169
8.71M
                                            const IColumn** columns, ssize_t row_num) const {
170
8.71M
#ifdef __clang__
171
8.71M
#pragma clang fp reassociate(on)
172
8.71M
#endif
173
8.71M
        const auto& column =
174
8.71M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
8.71M
        if constexpr (is_add) {
176
8.71M
            if constexpr (T == TYPE_DECIMALV2) {
177
25
                this->data(place).sum += column.get_data()[row_num];
178
6.92M
            } else if constexpr (is_decimal(T)) {
179
6.92M
                this->data(place).sum += column.get_data()[row_num].value;
180
6.92M
            } else {
181
1.78M
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
1.78M
            }
183
8.71M
            ++this->data(place).count;
184
8.71M
        } else {
185
116
            if constexpr (T == TYPE_DECIMALV2) {
186
0
                this->data(place).sum += -column.get_data()[row_num];
187
20
            } else if constexpr (is_decimal(T)) {
188
20
                this->data(place).sum -= column.get_data()[row_num].value;
189
96
            } else {
190
96
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
96
            }
192
116
            --this->data(place).count;
193
116
        }
194
8.71M
    }
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
169
181
                                            const IColumn** columns, ssize_t row_num) const {
170
181
#ifdef __clang__
171
181
#pragma clang fp reassociate(on)
172
181
#endif
173
181
        const auto& column =
174
181
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
181
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
181
            } else if constexpr (is_decimal(T)) {
179
181
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
181
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
181
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
20
                                            const IColumn** columns, ssize_t row_num) const {
170
20
#ifdef __clang__
171
20
#pragma clang fp reassociate(on)
172
20
#endif
173
20
        const auto& column =
174
20
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
            ++this->data(place).count;
184
20
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
20
            } else if constexpr (is_decimal(T)) {
188
20
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
20
            --this->data(place).count;
193
20
        }
194
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
11
                                            const IColumn** columns, ssize_t row_num) const {
170
11
#ifdef __clang__
171
11
#pragma clang fp reassociate(on)
172
11
#endif
173
11
        const auto& column =
174
11
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
11
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
11
            } else if constexpr (is_decimal(T)) {
179
11
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
11
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
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
169
6.92M
                                            const IColumn** columns, ssize_t row_num) const {
170
6.92M
#ifdef __clang__
171
6.92M
#pragma clang fp reassociate(on)
172
6.92M
#endif
173
6.92M
        const auto& column =
174
6.92M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
6.92M
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
6.92M
            } else if constexpr (is_decimal(T)) {
179
6.92M
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
6.92M
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
6.92M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
48
                                            const IColumn** columns, ssize_t row_num) const {
170
48
#ifdef __clang__
171
48
#pragma clang fp reassociate(on)
172
48
#endif
173
48
        const auto& column =
174
48
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
48
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
48
            } else if constexpr (is_decimal(T)) {
179
48
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
48
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
48
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
110
                                            const IColumn** columns, ssize_t row_num) const {
170
110
#ifdef __clang__
171
110
#pragma clang fp reassociate(on)
172
110
#endif
173
110
        const auto& column =
174
110
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
110
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
110
            } else if constexpr (is_decimal(T)) {
179
110
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
110
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
110
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
233
                                            const IColumn** columns, ssize_t row_num) const {
170
233
#ifdef __clang__
171
233
#pragma clang fp reassociate(on)
172
233
#endif
173
233
        const auto& column =
174
233
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
233
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
233
            } else if constexpr (is_decimal(T)) {
179
233
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
233
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
233
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
418
                                            const IColumn** columns, ssize_t row_num) const {
170
418
#ifdef __clang__
171
418
#pragma clang fp reassociate(on)
172
418
#endif
173
418
        const auto& column =
174
418
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
418
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
418
            } else if constexpr (is_decimal(T)) {
179
418
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
418
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
418
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
169
                                            const IColumn** columns, ssize_t row_num) const {
170
169
#ifdef __clang__
171
169
#pragma clang fp reassociate(on)
172
169
#endif
173
169
        const auto& column =
174
169
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
169
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
169
            } else {
181
169
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
169
            }
183
169
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
169
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
154
                                            const IColumn** columns, ssize_t row_num) const {
170
154
#ifdef __clang__
171
154
#pragma clang fp reassociate(on)
172
154
#endif
173
154
        const auto& column =
174
154
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
154
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
154
            } else {
181
154
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
154
            }
183
154
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
154
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
10.8k
                                            const IColumn** columns, ssize_t row_num) const {
170
10.8k
#ifdef __clang__
171
10.8k
#pragma clang fp reassociate(on)
172
10.8k
#endif
173
10.8k
        const auto& column =
174
10.8k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
10.8k
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
10.8k
            } else {
181
10.8k
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
10.8k
            }
183
10.8k
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
10.8k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
12
                                            const IColumn** columns, ssize_t row_num) const {
170
12
#ifdef __clang__
171
12
#pragma clang fp reassociate(on)
172
12
#endif
173
12
        const auto& column =
174
12
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
            ++this->data(place).count;
184
12
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
12
            } else {
190
12
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
12
            }
192
12
            --this->data(place).count;
193
12
        }
194
12
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
772
                                            const IColumn** columns, ssize_t row_num) const {
170
772
#ifdef __clang__
171
772
#pragma clang fp reassociate(on)
172
772
#endif
173
772
        const auto& column =
174
772
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
772
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
772
            } else {
181
772
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
772
            }
183
772
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
772
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
84
                                            const IColumn** columns, ssize_t row_num) const {
170
84
#ifdef __clang__
171
84
#pragma clang fp reassociate(on)
172
84
#endif
173
84
        const auto& column =
174
84
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
            ++this->data(place).count;
184
84
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
84
            } else {
190
84
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
84
            }
192
84
            --this->data(place).count;
193
84
        }
194
84
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
1
                                            const IColumn** columns, ssize_t row_num) const {
170
1
#ifdef __clang__
171
1
#pragma clang fp reassociate(on)
172
1
#endif
173
1
        const auto& column =
174
1
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
1
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
1
            } else {
181
1
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
1
            }
183
1
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
1.77M
                                            const IColumn** columns, ssize_t row_num) const {
170
1.77M
#ifdef __clang__
171
1.77M
#pragma clang fp reassociate(on)
172
1.77M
#endif
173
1.77M
        const auto& column =
174
1.77M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
1.77M
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
1.77M
            } else {
181
1.77M
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
1.77M
            }
183
1.77M
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
1.77M
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
25
                                            const IColumn** columns, ssize_t row_num) const {
170
25
#ifdef __clang__
171
25
#pragma clang fp reassociate(on)
172
25
#endif
173
25
        const auto& column =
174
25
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
25
        if constexpr (is_add) {
176
25
            if constexpr (T == TYPE_DECIMALV2) {
177
25
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
            } else {
181
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
            }
183
25
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
25
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
385
                                            const IColumn** columns, ssize_t row_num) const {
170
385
#ifdef __clang__
171
385
#pragma clang fp reassociate(on)
172
385
#endif
173
385
        const auto& column =
174
385
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
385
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
385
            } else {
181
385
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
385
            }
183
385
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
385
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
329
                                            const IColumn** columns, ssize_t row_num) const {
170
329
#ifdef __clang__
171
329
#pragma clang fp reassociate(on)
172
329
#endif
173
329
        const auto& column =
174
329
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
329
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
329
            } else {
181
329
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
329
            }
183
329
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
329
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
327
                                            const IColumn** columns, ssize_t row_num) const {
170
327
#ifdef __clang__
171
327
#pragma clang fp reassociate(on)
172
327
#endif
173
327
        const auto& column =
174
327
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
327
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
327
            } else {
181
327
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
327
            }
183
327
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
327
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
421
                                            const IColumn** columns, ssize_t row_num) const {
170
421
#ifdef __clang__
171
421
#pragma clang fp reassociate(on)
172
421
#endif
173
421
        const auto& column =
174
421
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
421
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
421
            } else {
181
421
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
421
            }
183
421
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
421
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
202
                                            const IColumn** columns, ssize_t row_num) const {
170
202
#ifdef __clang__
171
202
#pragma clang fp reassociate(on)
172
202
#endif
173
202
        const auto& column =
174
202
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
202
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
202
            } else {
181
202
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
202
            }
183
202
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
202
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
315
                                            const IColumn** columns, ssize_t row_num) const {
170
315
#ifdef __clang__
171
315
#pragma clang fp reassociate(on)
172
315
#endif
173
315
        const auto& column =
174
315
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
315
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
            } else if constexpr (is_decimal(T)) {
179
                this->data(place).sum += column.get_data()[row_num].value;
180
315
            } else {
181
315
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
315
            }
183
315
            ++this->data(place).count;
184
        } else {
185
            if constexpr (T == TYPE_DECIMALV2) {
186
                this->data(place).sum += -column.get_data()[row_num];
187
            } else if constexpr (is_decimal(T)) {
188
                this->data(place).sum -= column.get_data()[row_num].value;
189
            } else {
190
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
            }
192
            --this->data(place).count;
193
        }
194
315
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
195
196
    void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num,
197
8.68M
             Arena&) const override {
198
8.68M
        update_value<true>(place, columns, row_num);
199
8.68M
    }
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
197
153
             Arena&) const override {
198
153
        update_value<true>(place, columns, row_num);
199
153
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
11
             Arena&) const override {
198
11
        update_value<true>(place, columns, row_num);
199
11
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
6.89M
             Arena&) const override {
198
6.89M
        update_value<true>(place, columns, row_num);
199
6.89M
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
48
             Arena&) const override {
198
48
        update_value<true>(place, columns, row_num);
199
48
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
110
             Arena&) const override {
198
110
        update_value<true>(place, columns, row_num);
199
110
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
233
             Arena&) const override {
198
233
        update_value<true>(place, columns, row_num);
199
233
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
418
             Arena&) const override {
198
418
        update_value<true>(place, columns, row_num);
199
418
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
168
             Arena&) const override {
198
168
        update_value<true>(place, columns, row_num);
199
168
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
154
             Arena&) const override {
198
154
        update_value<true>(place, columns, row_num);
199
154
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
10.6k
             Arena&) const override {
198
10.6k
        update_value<true>(place, columns, row_num);
199
10.6k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
333
             Arena&) const override {
198
333
        update_value<true>(place, columns, row_num);
199
333
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
1
             Arena&) const override {
198
1
        update_value<true>(place, columns, row_num);
199
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
1.77M
             Arena&) const override {
198
1.77M
        update_value<true>(place, columns, row_num);
199
1.77M
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
25
             Arena&) const override {
198
25
        update_value<true>(place, columns, row_num);
199
25
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
385
             Arena&) const override {
198
385
        update_value<true>(place, columns, row_num);
199
385
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
329
             Arena&) const override {
198
329
        update_value<true>(place, columns, row_num);
199
329
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
327
             Arena&) const override {
198
327
        update_value<true>(place, columns, row_num);
199
327
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
421
             Arena&) const override {
198
421
        update_value<true>(place, columns, row_num);
199
421
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
202
             Arena&) const override {
198
202
        update_value<true>(place, columns, row_num);
199
202
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
315
             Arena&) const override {
198
315
        update_value<true>(place, columns, row_num);
199
315
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
200
201
1.01k
    void reset(AggregateDataPtr place) const override {
202
1.01k
        this->data(place).sum = {};
203
1.01k
        this->data(place).count = 0;
204
1.01k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
201
8
    void reset(AggregateDataPtr place) const override {
202
8
        this->data(place).sum = {};
203
8
        this->data(place).count = 0;
204
8
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
201
4
    void reset(AggregateDataPtr place) const override {
202
4
        this->data(place).sum = {};
203
4
        this->data(place).count = 0;
204
4
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
201
63
    void reset(AggregateDataPtr place) const override {
202
63
        this->data(place).sum = {};
203
63
        this->data(place).count = 0;
204
63
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
201
17
    void reset(AggregateDataPtr place) const override {
202
17
        this->data(place).sum = {};
203
17
        this->data(place).count = 0;
204
17
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc
Line
Count
Source
201
31
    void reset(AggregateDataPtr place) const override {
202
31
        this->data(place).sum = {};
203
31
        this->data(place).count = 0;
204
31
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
201
20
    void reset(AggregateDataPtr place) const override {
202
20
        this->data(place).sum = {};
203
20
        this->data(place).count = 0;
204
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc
Line
Count
Source
201
121
    void reset(AggregateDataPtr place) const override {
202
121
        this->data(place).sum = {};
203
121
        this->data(place).count = 0;
204
121
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
201
1
    void reset(AggregateDataPtr place) const override {
202
1
        this->data(place).sum = {};
203
1
        this->data(place).count = 0;
204
1
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc
Line
Count
Source
201
141
    void reset(AggregateDataPtr place) const override {
202
141
        this->data(place).sum = {};
203
141
        this->data(place).count = 0;
204
141
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
Line
Count
Source
201
104
    void reset(AggregateDataPtr place) const override {
202
104
        this->data(place).sum = {};
203
104
        this->data(place).count = 0;
204
104
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
201
91
    void reset(AggregateDataPtr place) const override {
202
91
        this->data(place).sum = {};
203
91
        this->data(place).count = 0;
204
91
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
201
73
    void reset(AggregateDataPtr place) const override {
202
73
        this->data(place).sum = {};
203
73
        this->data(place).count = 0;
204
73
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
201
75
    void reset(AggregateDataPtr place) const override {
202
75
        this->data(place).sum = {};
203
75
        this->data(place).count = 0;
204
75
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
201
76
    void reset(AggregateDataPtr place) const override {
202
76
        this->data(place).sum = {};
203
76
        this->data(place).count = 0;
204
76
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
201
67
    void reset(AggregateDataPtr place) const override {
202
67
        this->data(place).sum = {};
203
67
        this->data(place).count = 0;
204
67
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
201
56
    void reset(AggregateDataPtr place) const override {
202
56
        this->data(place).sum = {};
203
56
        this->data(place).count = 0;
204
56
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
201
68
    void reset(AggregateDataPtr place) const override {
202
68
        this->data(place).sum = {};
203
68
        this->data(place).count = 0;
204
68
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
205
206
    NO_SANITIZE_UNDEFINED void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs,
207
1.56k
                                     Arena&) const override {
208
1.56k
        if constexpr (T == TYPE_DECIMALV2) {
209
11
            this->data(place).sum += this->data(rhs).sum;
210
847
        } else if constexpr (is_decimal(T)) {
211
847
            this->data(place).sum += this->data(rhs).sum.value;
212
847
        } else {
213
704
            this->data(place).sum += this->data(rhs).sum;
214
704
        }
215
1.56k
        this->data(place).count += this->data(rhs).count;
216
1.56k
    }
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
207
33
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
33
        } else if constexpr (is_decimal(T)) {
211
33
            this->data(place).sum += this->data(rhs).sum.value;
212
        } else {
213
            this->data(place).sum += this->data(rhs).sum;
214
        }
215
33
        this->data(place).count += this->data(rhs).count;
216
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
207
754
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
754
        } else if constexpr (is_decimal(T)) {
211
754
            this->data(place).sum += this->data(rhs).sum.value;
212
        } else {
213
            this->data(place).sum += this->data(rhs).sum;
214
        }
215
754
        this->data(place).count += this->data(rhs).count;
216
754
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
42
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
42
        } else if constexpr (is_decimal(T)) {
211
42
            this->data(place).sum += this->data(rhs).sum.value;
212
        } else {
213
            this->data(place).sum += this->data(rhs).sum;
214
        }
215
42
        this->data(place).count += this->data(rhs).count;
216
42
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
18
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
18
        } else if constexpr (is_decimal(T)) {
211
18
            this->data(place).sum += this->data(rhs).sum.value;
212
        } else {
213
            this->data(place).sum += this->data(rhs).sum;
214
        }
215
18
        this->data(place).count += this->data(rhs).count;
216
18
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
43
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
        } else if constexpr (is_decimal(T)) {
211
            this->data(place).sum += this->data(rhs).sum.value;
212
43
        } else {
213
43
            this->data(place).sum += this->data(rhs).sum;
214
43
        }
215
43
        this->data(place).count += this->data(rhs).count;
216
43
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
31
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
        } else if constexpr (is_decimal(T)) {
211
            this->data(place).sum += this->data(rhs).sum.value;
212
31
        } else {
213
31
            this->data(place).sum += this->data(rhs).sum;
214
31
        }
215
31
        this->data(place).count += this->data(rhs).count;
216
31
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
390
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
        } else if constexpr (is_decimal(T)) {
211
            this->data(place).sum += this->data(rhs).sum.value;
212
390
        } else {
213
390
            this->data(place).sum += this->data(rhs).sum;
214
390
        }
215
390
        this->data(place).count += this->data(rhs).count;
216
390
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
98
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
        } else if constexpr (is_decimal(T)) {
211
            this->data(place).sum += this->data(rhs).sum.value;
212
98
        } else {
213
98
            this->data(place).sum += this->data(rhs).sum;
214
98
        }
215
98
        this->data(place).count += this->data(rhs).count;
216
98
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
142
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
        } else if constexpr (is_decimal(T)) {
211
            this->data(place).sum += this->data(rhs).sum.value;
212
142
        } else {
213
142
            this->data(place).sum += this->data(rhs).sum;
214
142
        }
215
142
        this->data(place).count += this->data(rhs).count;
216
142
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
11
                                     Arena&) const override {
208
11
        if constexpr (T == TYPE_DECIMALV2) {
209
11
            this->data(place).sum += this->data(rhs).sum;
210
        } else if constexpr (is_decimal(T)) {
211
            this->data(place).sum += this->data(rhs).sum.value;
212
        } else {
213
            this->data(place).sum += this->data(rhs).sum;
214
        }
215
11
        this->data(place).count += this->data(rhs).count;
216
11
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
217
218
194
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
194
        this->data(place).write(buf);
220
194
    }
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
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
218
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
10
        this->data(place).write(buf);
220
10
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
218
13
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
13
        this->data(place).write(buf);
220
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
218
144
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
144
        this->data(place).write(buf);
220
144
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
218
27
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
27
        this->data(place).write(buf);
220
27
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE
221
222
    void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf,
223
212
                     Arena&) const override {
224
212
        this->data(place).read(buf);
225
212
    }
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
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
223
10
                     Arena&) const override {
224
10
        this->data(place).read(buf);
225
10
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
223
13
                     Arena&) const override {
224
13
        this->data(place).read(buf);
225
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
223
150
                     Arena&) const override {
224
150
        this->data(place).read(buf);
225
150
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
223
39
                     Arena&) const override {
224
39
        this->data(place).read(buf);
225
39
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
226
227
4.50k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
4.50k
        auto& column = assert_cast<ColVecResult&>(to);
229
4.50k
        if constexpr (is_decimal(T)) {
230
2.62k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
2.62k
        } else {
232
1.87k
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
1.87k
        }
234
4.50k
    }
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
227
84
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
84
        auto& column = assert_cast<ColVecResult&>(to);
229
84
        if constexpr (is_decimal(T)) {
230
84
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
        } else {
232
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
        }
234
84
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
5
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
5
        auto& column = assert_cast<ColVecResult&>(to);
229
5
        if constexpr (is_decimal(T)) {
230
5
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
        } else {
232
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
        }
234
5
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
2.28k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
2.28k
        auto& column = assert_cast<ColVecResult&>(to);
229
2.28k
        if constexpr (is_decimal(T)) {
230
2.28k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
        } else {
232
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
        }
234
2.28k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
18
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
18
        auto& column = assert_cast<ColVecResult&>(to);
229
18
        if constexpr (is_decimal(T)) {
230
18
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
        } else {
232
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
        }
234
18
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
52
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
52
        auto& column = assert_cast<ColVecResult&>(to);
229
52
        if constexpr (is_decimal(T)) {
230
52
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
        } else {
232
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
        }
234
52
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
20
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
20
        auto& column = assert_cast<ColVecResult&>(to);
229
20
        if constexpr (is_decimal(T)) {
230
20
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
        } else {
232
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
        }
234
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
141
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
141
        auto& column = assert_cast<ColVecResult&>(to);
229
141
        if constexpr (is_decimal(T)) {
230
141
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
        } else {
232
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
        }
234
141
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
76
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
76
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
76
        } else {
232
76
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
76
        }
234
76
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
52
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
52
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
52
        } else {
232
52
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
52
        }
234
52
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
462
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
462
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
462
        } else {
232
462
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
462
        }
234
462
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
549
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
549
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
549
        } else {
232
549
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
549
        }
234
549
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
1
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
1
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
1
        } else {
232
1
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
1
        }
234
1
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
357
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
357
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
357
        } else {
232
357
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
357
        }
234
357
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
13
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
13
        auto& column = assert_cast<ColVecResult&>(to);
229
13
        if constexpr (is_decimal(T)) {
230
13
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
        } else {
232
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
        }
234
13
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
68
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
68
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
68
        } else {
232
68
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
68
        }
234
68
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
66
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
66
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
66
        } else {
232
66
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
66
        }
234
66
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
71
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
71
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
71
        } else {
232
71
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
71
        }
234
71
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
62
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
62
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
62
        } else {
232
62
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
62
        }
234
62
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
51
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
51
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
51
        } else {
232
51
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
51
        }
234
51
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
63
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
63
        auto& column = assert_cast<ColVecResult&>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
63
        } else {
232
63
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
63
        }
234
63
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE
235
236
    void serialize_to_column(const std::vector<AggregateDataPtr>& places, size_t offset,
237
1.58k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
1.58k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
1.58k
        col.set_item_size(sizeof(Data));
240
1.58k
        col.resize(num_rows);
241
1.58k
        auto* data = col.get_data().data();
242
3.09k
        for (size_t i = 0; i != num_rows; ++i) {
243
1.50k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
1.50k
                    *reinterpret_cast<Data*>(places[i] + offset);
245
1.50k
        }
246
1.58k
    }
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
237
22
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
22
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
22
        col.set_item_size(sizeof(Data));
240
22
        col.resize(num_rows);
241
22
        auto* data = col.get_data().data();
242
80
        for (size_t i = 0; i != num_rows; ++i) {
243
58
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
58
                    *reinterpret_cast<Data*>(places[i] + offset);
245
58
        }
246
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
237
889
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
889
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
889
        col.set_item_size(sizeof(Data));
240
889
        col.resize(num_rows);
241
889
        auto* data = col.get_data().data();
242
1.61k
        for (size_t i = 0; i != num_rows; ++i) {
243
730
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
730
                    *reinterpret_cast<Data*>(places[i] + offset);
245
730
        }
246
889
    }
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
237
46
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
46
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
46
        col.set_item_size(sizeof(Data));
240
46
        col.resize(num_rows);
241
46
        auto* data = col.get_data().data();
242
78
        for (size_t i = 0; i != num_rows; ++i) {
243
32
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
32
                    *reinterpret_cast<Data*>(places[i] + offset);
245
32
        }
246
46
    }
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
237
10
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
10
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
10
        col.set_item_size(sizeof(Data));
240
10
        col.resize(num_rows);
241
10
        auto* data = col.get_data().data();
242
12
        for (size_t i = 0; i != num_rows; ++i) {
243
2
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
2
                    *reinterpret_cast<Data*>(places[i] + offset);
245
2
        }
246
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
237
34
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
34
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
34
        col.set_item_size(sizeof(Data));
240
34
        col.resize(num_rows);
241
34
        auto* data = col.get_data().data();
242
105
        for (size_t i = 0; i != num_rows; ++i) {
243
71
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
71
                    *reinterpret_cast<Data*>(places[i] + offset);
245
71
        }
246
34
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
237
29
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
29
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
29
        col.set_item_size(sizeof(Data));
240
29
        col.resize(num_rows);
241
29
        auto* data = col.get_data().data();
242
101
        for (size_t i = 0; i != num_rows; ++i) {
243
72
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
72
                    *reinterpret_cast<Data*>(places[i] + offset);
245
72
        }
246
29
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
237
411
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
411
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
411
        col.set_item_size(sizeof(Data));
240
411
        col.resize(num_rows);
241
411
        auto* data = col.get_data().data();
242
688
        for (size_t i = 0; i != num_rows; ++i) {
243
277
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
277
                    *reinterpret_cast<Data*>(places[i] + offset);
245
277
        }
246
411
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
237
33
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
33
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
33
        col.set_item_size(sizeof(Data));
240
33
        col.resize(num_rows);
241
33
        auto* data = col.get_data().data();
242
118
        for (size_t i = 0; i != num_rows; ++i) {
243
85
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
85
                    *reinterpret_cast<Data*>(places[i] + offset);
245
85
        }
246
33
    }
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
237
109
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
109
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
109
        col.set_item_size(sizeof(Data));
240
109
        col.resize(num_rows);
241
109
        auto* data = col.get_data().data();
242
276
        for (size_t i = 0; i != num_rows; ++i) {
243
167
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
167
                    *reinterpret_cast<Data*>(places[i] + offset);
245
167
        }
246
109
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
237
6
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
6
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
6
        col.set_item_size(sizeof(Data));
240
6
        col.resize(num_rows);
241
6
        auto* data = col.get_data().data();
242
17
        for (size_t i = 0; i != num_rows; ++i) {
243
11
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
11
                    *reinterpret_cast<Data*>(places[i] + offset);
245
11
        }
246
6
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_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_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
247
248
    void streaming_agg_serialize_to_column(const IColumn** columns, MutableColumnPtr& dst,
249
78
                                           const size_t num_rows, Arena&) const override {
250
78
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
251
78
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
252
78
        dst_col.set_item_size(sizeof(Data));
253
78
        dst_col.resize(num_rows);
254
78
        auto* data = dst_col.get_data().data();
255
8.35k
        for (size_t i = 0; i != num_rows; ++i) {
256
8.28k
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
257
8.28k
            state.sum = typename Data::ResultType(src_data[i]);
258
8.28k
            state.count = 1;
259
8.28k
        }
260
78
    }
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
249
1
                                           const size_t num_rows, Arena&) const override {
250
1
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
251
1
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
252
1
        dst_col.set_item_size(sizeof(Data));
253
1
        dst_col.resize(num_rows);
254
1
        auto* data = dst_col.get_data().data();
255
2
        for (size_t i = 0; i != num_rows; ++i) {
256
1
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
257
1
            state.sum = typename Data::ResultType(src_data[i]);
258
1
            state.count = 1;
259
1
        }
260
1
    }
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
249
76
                                           const size_t num_rows, Arena&) const override {
250
76
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
251
76
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
252
76
        dst_col.set_item_size(sizeof(Data));
253
76
        dst_col.resize(num_rows);
254
76
        auto* data = dst_col.get_data().data();
255
8.35k
        for (size_t i = 0; i != num_rows; ++i) {
256
8.27k
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
257
8.27k
            state.sum = typename Data::ResultType(src_data[i]);
258
8.27k
            state.count = 1;
259
8.27k
        }
260
76
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Line
Count
Source
249
1
                                           const size_t num_rows, Arena&) const override {
250
1
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
251
1
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
252
1
        dst_col.set_item_size(sizeof(Data));
253
1
        dst_col.resize(num_rows);
254
1
        auto* data = dst_col.get_data().data();
255
4
        for (size_t i = 0; i != num_rows; ++i) {
256
3
            auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]);
257
3
            state.sum = typename Data::ResultType(src_data[i]);
258
3
            state.count = 1;
259
3
        }
260
1
    }
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_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_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_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE
261
262
    NO_SANITIZE_UNDEFINED void deserialize_and_merge_from_column_range(
263
            AggregateDataPtr __restrict place, const IColumn& column, size_t begin, size_t end,
264
8.23k
            Arena&) const override {
265
18.4E
        DCHECK(end <= column.size() && begin <= end)
266
18.4E
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
8.23k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
8.23k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
16.6k
        for (size_t i = begin; i <= end; ++i) {
270
8.37k
            this->data(place).sum += data[i].sum;
271
8.37k
            this->data(place).count += data[i].count;
272
8.37k
        }
273
8.23k
    }
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
264
39
            Arena&) const override {
265
39
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
39
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
39
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
86
        for (size_t i = begin; i <= end; ++i) {
270
47
            this->data(place).sum += data[i].sum;
271
47
            this->data(place).count += data[i].count;
272
47
        }
273
39
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
12
            Arena&) const override {
265
12
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
12
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
12
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
24
        for (size_t i = begin; i <= end; ++i) {
270
12
            this->data(place).sum += data[i].sum;
271
12
            this->data(place).count += data[i].count;
272
12
        }
273
12
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
9
            Arena&) const override {
265
9
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
9
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
9
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
18
        for (size_t i = begin; i <= end; ++i) {
270
9
            this->data(place).sum += data[i].sum;
271
9
            this->data(place).count += data[i].count;
272
9
        }
273
9
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
52
            Arena&) const override {
265
52
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
52
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
52
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
112
        for (size_t i = begin; i <= end; ++i) {
270
60
            this->data(place).sum += data[i].sum;
271
60
            this->data(place).count += data[i].count;
272
60
        }
273
52
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
50
            Arena&) const override {
265
50
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
50
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
50
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
108
        for (size_t i = begin; i <= end; ++i) {
270
58
            this->data(place).sum += data[i].sum;
271
58
            this->data(place).count += data[i].count;
272
58
        }
273
50
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
7.95k
            Arena&) const override {
265
18.4E
        DCHECK(end <= column.size() && begin <= end)
266
18.4E
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
7.95k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
7.95k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
16.0k
        for (size_t i = begin; i <= end; ++i) {
270
8.06k
            this->data(place).sum += data[i].sum;
271
8.06k
            this->data(place).count += data[i].count;
272
8.06k
        }
273
7.95k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
39
            Arena&) const override {
265
39
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
39
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
39
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
88
        for (size_t i = begin; i <= end; ++i) {
270
49
            this->data(place).sum += data[i].sum;
271
49
            this->data(place).count += data[i].count;
272
49
        }
273
39
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
73
            Arena&) const override {
265
73
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
73
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
73
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
153
        for (size_t i = begin; i <= end; ++i) {
270
80
            this->data(place).sum += data[i].sum;
271
80
            this->data(place).count += data[i].count;
272
80
        }
273
73
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
3
            Arena&) const override {
265
3
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
3
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
3
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
6
        for (size_t i = begin; i <= end; ++i) {
270
3
            this->data(place).sum += data[i].sum;
271
3
            this->data(place).count += data[i].count;
272
3
        }
273
3
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_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_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
274
275
    void deserialize_and_merge_vec(const AggregateDataPtr* places, size_t offset,
276
                                   AggregateDataPtr rhs, const IColumn* column, Arena& arena,
277
646
                                   const size_t num_rows) const override {
278
646
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
646
        const auto* data = col.get_data().data();
280
646
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
646
    }
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
277
13
                                   const size_t num_rows) const override {
278
13
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
13
        const auto* data = col.get_data().data();
280
13
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
13
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
277
300
                                   const size_t num_rows) const override {
278
300
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
300
        const auto* data = col.get_data().data();
280
300
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
300
    }
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
277
20
                                   const size_t num_rows) const override {
278
20
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
20
        const auto* data = col.get_data().data();
280
20
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
20
    }
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
277
2
                                   const size_t num_rows) const override {
278
2
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
2
        const auto* data = col.get_data().data();
280
2
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
2
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
277
19
                                   const size_t num_rows) const override {
278
19
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
19
        const auto* data = col.get_data().data();
280
19
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
277
12
                                   const size_t num_rows) const override {
278
12
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
12
        const auto* data = col.get_data().data();
280
12
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
12
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
277
148
                                   const size_t num_rows) const override {
278
148
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
148
        const auto* data = col.get_data().data();
280
148
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
148
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
277
26
                                   const size_t num_rows) const override {
278
26
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
26
        const auto* data = col.get_data().data();
280
26
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
26
    }
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
277
100
                                   const size_t num_rows) const override {
278
100
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
100
        const auto* data = col.get_data().data();
280
100
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
100
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
277
6
                                   const size_t num_rows) const override {
278
6
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
6
        const auto* data = col.get_data().data();
280
6
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
6
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_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_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
282
283
    void deserialize_and_merge_vec_selected(const AggregateDataPtr* places, size_t offset,
284
                                            AggregateDataPtr rhs, const IColumn* column,
285
1
                                            Arena& arena, const size_t num_rows) const override {
286
1
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
287
1
        const auto* data = col.get_data().data();
288
1
        this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows);
289
1
    }
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
285
1
                                            Arena& arena, const size_t num_rows) const override {
286
1
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
287
1
        const auto* data = col.get_data().data();
288
1
        this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows);
289
1
    }
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_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_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_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
290
291
    void serialize_without_key_to_column(ConstAggregateDataPtr __restrict place,
292
267
                                         IColumn& to) const override {
293
267
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
267
        col.set_item_size(sizeof(Data));
295
267
        size_t old_size = col.size();
296
267
        col.resize(old_size + 1);
297
267
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
267
    }
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
292
23
                                         IColumn& to) const override {
293
23
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
23
        col.set_item_size(sizeof(Data));
295
23
        size_t old_size = col.size();
296
23
        col.resize(old_size + 1);
297
23
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
23
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
12
                                         IColumn& to) const override {
293
12
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
12
        col.set_item_size(sizeof(Data));
295
12
        size_t old_size = col.size();
296
12
        col.resize(old_size + 1);
297
12
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
12
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
9
                                         IColumn& to) const override {
293
9
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
9
        col.set_item_size(sizeof(Data));
295
9
        size_t old_size = col.size();
296
9
        col.resize(old_size + 1);
297
9
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
9
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
33
                                         IColumn& to) const override {
293
33
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
33
        col.set_item_size(sizeof(Data));
295
33
        size_t old_size = col.size();
296
33
        col.resize(old_size + 1);
297
33
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
33
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
19
                                         IColumn& to) const override {
293
19
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
19
        col.set_item_size(sizeof(Data));
295
19
        size_t old_size = col.size();
296
19
        col.resize(old_size + 1);
297
19
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
89
                                         IColumn& to) const override {
293
89
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
89
        col.set_item_size(sizeof(Data));
295
89
        size_t old_size = col.size();
296
89
        col.resize(old_size + 1);
297
89
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
89
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
22
                                         IColumn& to) const override {
293
22
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
22
        col.set_item_size(sizeof(Data));
295
22
        size_t old_size = col.size();
296
22
        col.resize(old_size + 1);
297
22
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
22
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
57
                                         IColumn& to) const override {
293
57
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
57
        col.set_item_size(sizeof(Data));
295
57
        size_t old_size = col.size();
296
57
        col.resize(old_size + 1);
297
57
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
57
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
3
                                         IColumn& to) const override {
293
3
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
3
        col.set_item_size(sizeof(Data));
295
3
        size_t old_size = col.size();
296
3
        col.resize(old_size + 1);
297
3
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
3
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
299
300
2.27k
    MutableColumnPtr create_serialize_column() const override {
301
2.27k
        return ColumnFixedLengthObject::create(sizeof(Data));
302
2.27k
    }
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
300
45
    MutableColumnPtr create_serialize_column() const override {
301
45
        return ColumnFixedLengthObject::create(sizeof(Data));
302
45
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
300
893
    MutableColumnPtr create_serialize_column() const override {
301
893
        return ColumnFixedLengthObject::create(sizeof(Data));
302
893
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
300
45
    MutableColumnPtr create_serialize_column() const override {
301
45
        return ColumnFixedLengthObject::create(sizeof(Data));
302
45
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
300
19
    MutableColumnPtr create_serialize_column() const override {
301
19
        return ColumnFixedLengthObject::create(sizeof(Data));
302
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
300
69
    MutableColumnPtr create_serialize_column() const override {
301
69
        return ColumnFixedLengthObject::create(sizeof(Data));
302
69
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
300
48
    MutableColumnPtr create_serialize_column() const override {
301
48
        return ColumnFixedLengthObject::create(sizeof(Data));
302
48
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
300
904
    MutableColumnPtr create_serialize_column() const override {
301
904
        return ColumnFixedLengthObject::create(sizeof(Data));
302
904
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
300
56
    MutableColumnPtr create_serialize_column() const override {
301
56
        return ColumnFixedLengthObject::create(sizeof(Data));
302
56
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Line
Count
Source
300
173
    MutableColumnPtr create_serialize_column() const override {
301
173
        return ColumnFixedLengthObject::create(sizeof(Data));
302
173
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE23create_serialize_columnEv
Line
Count
Source
300
21
    MutableColumnPtr create_serialize_column() const override {
301
21
        return ColumnFixedLengthObject::create(sizeof(Data));
302
21
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
303
304
2.52k
    DataTypePtr get_serialized_type() const override {
305
2.52k
        return std::make_shared<DataTypeFixedLengthObject>();
306
2.52k
    }
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
304
45
    DataTypePtr get_serialized_type() const override {
305
45
        return std::make_shared<DataTypeFixedLengthObject>();
306
45
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
304
903
    DataTypePtr get_serialized_type() const override {
305
903
        return std::make_shared<DataTypeFixedLengthObject>();
306
903
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
304
45
    DataTypePtr get_serialized_type() const override {
305
45
        return std::make_shared<DataTypeFixedLengthObject>();
306
45
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
304
19
    DataTypePtr get_serialized_type() const override {
305
19
        return std::make_shared<DataTypeFixedLengthObject>();
306
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
304
70
    DataTypePtr get_serialized_type() const override {
305
70
        return std::make_shared<DataTypeFixedLengthObject>();
306
70
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
304
48
    DataTypePtr get_serialized_type() const override {
305
48
        return std::make_shared<DataTypeFixedLengthObject>();
306
48
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
304
1.15k
    DataTypePtr get_serialized_type() const override {
305
1.15k
        return std::make_shared<DataTypeFixedLengthObject>();
306
1.15k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
304
51
    DataTypePtr get_serialized_type() const override {
305
51
        return std::make_shared<DataTypeFixedLengthObject>();
306
51
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Line
Count
Source
304
174
    DataTypePtr get_serialized_type() const override {
305
174
        return std::make_shared<DataTypeFixedLengthObject>();
306
174
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE19get_serialized_typeEv
Line
Count
Source
304
21
    DataTypePtr get_serialized_type() const override {
305
21
        return std::make_shared<DataTypeFixedLengthObject>();
306
21
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
307
308
325
    bool supported_incremental_mode() const override { return true; }
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
308
40
    bool supported_incremental_mode() const override { return true; }
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
308
38
    bool supported_incremental_mode() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE26supported_incremental_modeEv
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
308
1
    bool supported_incremental_mode() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv
Line
Count
Source
308
40
    bool supported_incremental_mode() const override { return true; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv
Line
Count
Source
308
179
    bool supported_incremental_mode() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Line
Count
Source
308
27
    bool supported_incremental_mode() const override { return true; }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv
309
310
    void execute_function_with_incremental(int64_t partition_start, int64_t partition_end,
311
                                           int64_t frame_start, int64_t frame_end,
312
                                           AggregateDataPtr place, const IColumn** columns,
313
                                           Arena& arena, bool previous_is_nul, bool end_is_nul,
314
                                           bool has_null, UInt8* use_null_result,
315
180
                                           UInt8* could_use_previous_result) const override {
316
180
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
317
180
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
318
180
        if (current_frame_start >= current_frame_end) {
319
0
            *use_null_result = true;
320
0
            return;
321
0
        }
322
180
        if (*could_use_previous_result) {
323
162
            auto outcoming_pos = frame_start - 1;
324
162
            auto incoming_pos = frame_end - 1;
325
162
            if (!previous_is_nul && outcoming_pos >= partition_start &&
326
162
                outcoming_pos < partition_end) {
327
116
                update_value<false>(place, columns, outcoming_pos);
328
116
            }
329
162
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
330
126
                update_value<true>(place, columns, incoming_pos);
331
126
            }
332
162
        } else {
333
18
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
334
18
                                         place, columns, arena, use_null_result,
335
18
                                         could_use_previous_result);
336
18
        }
337
180
    }
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
315
24
                                           UInt8* could_use_previous_result) const override {
316
24
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
317
24
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
318
24
        if (current_frame_start >= current_frame_end) {
319
0
            *use_null_result = true;
320
0
            return;
321
0
        }
322
24
        if (*could_use_previous_result) {
323
24
            auto outcoming_pos = frame_start - 1;
324
24
            auto incoming_pos = frame_end - 1;
325
24
            if (!previous_is_nul && outcoming_pos >= partition_start &&
326
24
                outcoming_pos < partition_end) {
327
20
                update_value<false>(place, columns, outcoming_pos);
328
20
            }
329
24
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
330
20
                update_value<true>(place, columns, incoming_pos);
331
20
            }
332
24
        } else {
333
0
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
334
0
                                         place, columns, arena, use_null_result,
335
0
                                         could_use_previous_result);
336
0
        }
337
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_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
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
315
15
                                           UInt8* could_use_previous_result) const override {
316
15
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
317
15
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
318
15
        if (current_frame_start >= current_frame_end) {
319
0
            *use_null_result = true;
320
0
            return;
321
0
        }
322
15
        if (*could_use_previous_result) {
323
15
            auto outcoming_pos = frame_start - 1;
324
15
            auto incoming_pos = frame_end - 1;
325
15
            if (!previous_is_nul && outcoming_pos >= partition_start &&
326
15
                outcoming_pos < partition_end) {
327
12
                update_value<false>(place, columns, outcoming_pos);
328
12
            }
329
15
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
330
13
                update_value<true>(place, columns, incoming_pos);
331
13
            }
332
15
        } else {
333
0
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
334
0
                                         place, columns, arena, use_null_result,
335
0
                                         could_use_previous_result);
336
0
        }
337
15
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Line
Count
Source
315
141
                                           UInt8* could_use_previous_result) const override {
316
141
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
317
141
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
318
141
        if (current_frame_start >= current_frame_end) {
319
0
            *use_null_result = true;
320
0
            return;
321
0
        }
322
141
        if (*could_use_previous_result) {
323
123
            auto outcoming_pos = frame_start - 1;
324
123
            auto incoming_pos = frame_end - 1;
325
123
            if (!previous_is_nul && outcoming_pos >= partition_start &&
326
123
                outcoming_pos < partition_end) {
327
84
                update_value<false>(place, columns, outcoming_pos);
328
84
            }
329
123
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
330
93
                update_value<true>(place, columns, incoming_pos);
331
93
            }
332
123
        } else {
333
18
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
334
18
                                         place, columns, arena, use_null_result,
335
18
                                         could_use_previous_result);
336
18
        }
337
141
    }
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_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_
338
339
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
340
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
341
                                Arena& arena, UInt8* use_null_result,
342
568
                                UInt8* could_use_previous_result) const override {
343
568
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
568
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
568
        if (current_frame_start >= current_frame_end) {
346
24
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
544
        } else {
350
2.81k
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
2.26k
                update_value<true>(place, columns, row_num);
352
2.26k
            }
353
544
            *use_null_result = false;
354
544
            *could_use_previous_result = true;
355
544
        }
356
568
    }
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
342
4
                                UInt8* could_use_previous_result) const override {
343
4
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
4
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
4
        if (current_frame_start >= current_frame_end) {
346
0
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
4
        } else {
350
12
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
8
                update_value<true>(place, columns, row_num);
352
8
            }
353
4
            *use_null_result = false;
354
4
            *could_use_previous_result = true;
355
4
        }
356
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
342
77
                                UInt8* could_use_previous_result) const override {
343
77
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
77
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
77
        if (current_frame_start >= current_frame_end) {
346
0
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
77
        } else {
350
1.72k
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
1.64k
                update_value<true>(place, columns, row_num);
352
1.64k
            }
353
77
            *use_null_result = false;
354
77
            *could_use_previous_result = true;
355
77
        }
356
77
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
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
342
1
                                UInt8* could_use_previous_result) const override {
343
1
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
1
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
1
        if (current_frame_start >= current_frame_end) {
346
0
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
1
        } else {
350
2
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
1
                update_value<true>(place, columns, row_num);
352
1
            }
353
1
            *use_null_result = false;
354
1
            *could_use_previous_result = true;
355
1
        }
356
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
342
89
                                UInt8* could_use_previous_result) const override {
343
89
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
89
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
89
        if (current_frame_start >= current_frame_end) {
346
0
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
89
        } else {
350
241
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
152
                update_value<true>(place, columns, row_num);
352
152
            }
353
89
            *use_null_result = false;
354
89
            *could_use_previous_result = true;
355
89
        }
356
89
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Line
Count
Source
342
281
                                UInt8* could_use_previous_result) const override {
343
281
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
281
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
281
        if (current_frame_start >= current_frame_end) {
346
24
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
257
        } else {
350
604
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
347
                update_value<true>(place, columns, row_num);
352
347
            }
353
257
            *use_null_result = false;
354
257
            *could_use_previous_result = true;
355
257
        }
356
281
    }
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
342
116
                                UInt8* could_use_previous_result) const override {
343
116
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
116
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
116
        if (current_frame_start >= current_frame_end) {
346
0
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
116
        } else {
350
232
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
116
                update_value<true>(place, columns, row_num);
352
116
            }
353
116
            *use_null_result = false;
354
116
            *could_use_previous_result = true;
355
116
        }
356
116
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_
357
358
private:
359
    uint32_t output_scale;
360
    ResultType multiplier;
361
};
362
363
} // namespace doris