Coverage Report

Created: 2026-07-09 16:19

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.71k
    ResultT result(ResultType multiplier) const {
65
2.71k
        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.71k
        if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) {
72
0
            DecimalV2Value decimal_val_count(count, 0);
73
0
            DecimalV2Value cal_ret = sum / decimal_val_count;
74
0
            return cal_ret;
75
2.71k
        } else {
76
2.71k
            if constexpr (T == TYPE_DECIMAL256) {
77
184
                return static_cast<ResultT>(sum * multiplier /
78
184
                                            typename PrimitiveTypeTraits<T>::CppType(count));
79
2.52k
            } else {
80
2.52k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
81
2.52k
            }
82
2.71k
        }
83
2.71k
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE6resultINS_7DecimalIiEEEET_S5_
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE6resultINS_7DecimalIlEEEET_S5_
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE6resultINS_12Decimal128V3EEET_S4_
Line
Count
Source
64
2.52k
    ResultT result(ResultType multiplier) const {
65
2.52k
        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.52k
        } else {
76
            if constexpr (T == TYPE_DECIMAL256) {
77
                return static_cast<ResultT>(sum * multiplier /
78
                                            typename PrimitiveTypeTraits<T>::CppType(count));
79
2.52k
            } else {
80
2.52k
                return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count);
81
2.52k
            }
82
2.52k
        }
83
2.52k
    }
_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
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE6resultINS_14DecimalV2ValueEEET_S4_
84
85
    template <typename ResultT>
86
2.45k
    ResultT result() const {
87
2.45k
        if constexpr (std::is_floating_point_v<ResultT>) {
88
2.45k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
89
2.45k
                return static_cast<ResultT>(sum) /
90
2.45k
                       static_cast<ResultT>(count); /// allow division by zero
91
2.45k
            }
92
2.45k
        }
93
94
2.45k
        if (!count) {
95
            // null is handled in AggregationNode::_get_without_key_result
96
0
            return static_cast<ResultT>(sum);
97
0
        }
98
2.45k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
99
2.45k
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE6resultIdEET_v
Line
Count
Source
86
627
    ResultT result() const {
87
627
        if constexpr (std::is_floating_point_v<ResultT>) {
88
627
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
89
627
                return static_cast<ResultT>(sum) /
90
627
                       static_cast<ResultT>(count); /// allow division by zero
91
627
            }
92
627
        }
93
94
627
        if (!count) {
95
            // null is handled in AggregationNode::_get_without_key_result
96
0
            return static_cast<ResultT>(sum);
97
0
        }
98
627
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
99
627
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE6resultIdEET_v
Line
Count
Source
86
695
    ResultT result() const {
87
695
        if constexpr (std::is_floating_point_v<ResultT>) {
88
695
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
89
695
                return static_cast<ResultT>(sum) /
90
695
                       static_cast<ResultT>(count); /// allow division by zero
91
695
            }
92
695
        }
93
94
695
        if (!count) {
95
            // null is handled in AggregationNode::_get_without_key_result
96
0
            return static_cast<ResultT>(sum);
97
0
        }
98
695
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
99
695
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE6resultIdEET_v
Line
Count
Source
86
1.13k
    ResultT result() const {
87
1.13k
        if constexpr (std::is_floating_point_v<ResultT>) {
88
1.13k
            if constexpr (std::numeric_limits<ResultT>::is_iec559) {
89
1.13k
                return static_cast<ResultT>(sum) /
90
1.13k
                       static_cast<ResultT>(count); /// allow division by zero
91
1.13k
            }
92
1.13k
        }
93
94
1.13k
        if (!count) {
95
            // null is handled in AggregationNode::_get_without_key_result
96
0
            return static_cast<ResultT>(sum);
97
0
        }
98
1.13k
        return static_cast<ResultT>(sum) / static_cast<ResultT>(count);
99
1.13k
    }
100
101
183
    void write(BufferWritable& buf) const {
102
183
        buf.write_binary(sum);
103
183
        buf.write_binary(count);
104
183
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE5writeERNS_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_13PrimitiveTypeE35EE5writeERNS_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_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE
Line
Count
Source
101
136
    void write(BufferWritable& buf) const {
102
136
        buf.write_binary(sum);
103
136
        buf.write_binary(count);
104
136
    }
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE
Line
Count
Source
101
24
    void write(BufferWritable& buf) const {
102
24
        buf.write_binary(sum);
103
24
        buf.write_binary(count);
104
24
    }
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE5writeERNS_14BufferWritableE
105
106
201
    void read(BufferReadable& buf) {
107
201
        buf.read_binary(sum);
108
201
        buf.read_binary(count);
109
201
    }
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE4readERNS_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_13PrimitiveTypeE35EE4readERNS_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_13PrimitiveTypeE6EE4readERNS_14BufferReadableE
Line
Count
Source
106
142
    void read(BufferReadable& buf) {
107
142
        buf.read_binary(sum);
108
142
        buf.read_binary(count);
109
142
    }
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE
Line
Count
Source
106
36
    void read(BufferReadable& buf) {
107
36
        buf.read_binary(sum);
108
36
        buf.read_binary(count);
109
36
    }
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
3.05k
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
3.05k
                      argument_types_),
145
3.05k
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
3.05k
                                    get_decimal_scale(*argument_types_[0]))) {
147
3.05k
        if constexpr (is_decimal(T)) {
148
863
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
863
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
863
        }
151
3.05k
    }
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
65
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
65
                      argument_types_),
145
65
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
65
                                    get_decimal_scale(*argument_types_[0]))) {
147
65
        if constexpr (is_decimal(T)) {
148
65
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
65
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
65
        }
151
65
    }
_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
567
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
567
                      argument_types_),
145
567
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
567
                                    get_decimal_scale(*argument_types_[0]))) {
147
567
        if constexpr (is_decimal(T)) {
148
567
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
567
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
567
        }
151
567
    }
_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
96
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
96
                      argument_types_),
145
96
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
96
                                    get_decimal_scale(*argument_types_[0]))) {
147
96
        if constexpr (is_decimal(T)) {
148
96
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
96
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
96
        }
151
96
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
23
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
23
                      argument_types_),
145
23
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
23
                                    get_decimal_scale(*argument_types_[0]))) {
147
23
        if constexpr (is_decimal(T)) {
148
23
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
23
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
23
        }
151
23
    }
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
Line
Count
Source
143
97
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
97
                      argument_types_),
145
97
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
97
                                    get_decimal_scale(*argument_types_[0]))) {
147
97
        if constexpr (is_decimal(T)) {
148
97
            multiplier = ResultType(ResultDataType::get_scale_multiplier(
149
97
                    output_scale - get_decimal_scale(*argument_types_[0])));
150
97
        }
151
97
    }
_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
28
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
28
                      argument_types_),
145
28
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
28
                                    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
28
    }
_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
371
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
371
                      argument_types_),
145
371
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
371
                                    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
371
    }
_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
234
            : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>(
144
234
                      argument_types_),
145
234
              output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE,
146
234
                                    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
234
    }
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE
_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
443
    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
24
    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
133
    String get_name() const override { return "avg"; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev
Line
Count
Source
153
208
    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
33
    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
9.09k
    DataTypePtr get_return_type() const override {
156
9.09k
        if constexpr (is_decimal(T)) {
157
4.19k
            return std::make_shared<ResultDataType>(
158
4.19k
                    ResultDataType::max_precision(),
159
4.19k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
4.90k
        } else {
161
4.90k
            return std::make_shared<ResultDataType>();
162
4.90k
        }
163
9.09k
    }
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
328
    DataTypePtr get_return_type() const override {
156
328
        if constexpr (is_decimal(T)) {
157
328
            return std::make_shared<ResultDataType>(
158
328
                    ResultDataType::max_precision(),
159
328
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
328
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
155
17
    DataTypePtr get_return_type() const override {
156
17
        if constexpr (is_decimal(T)) {
157
17
            return std::make_shared<ResultDataType>(
158
17
                    ResultDataType::max_precision(),
159
17
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
17
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
155
3.19k
    DataTypePtr get_return_type() const override {
156
3.19k
        if constexpr (is_decimal(T)) {
157
3.19k
            return std::make_shared<ResultDataType>(
158
3.19k
                    ResultDataType::max_precision(),
159
3.19k
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
3.19k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
155
19
    DataTypePtr get_return_type() const override {
156
19
        if constexpr (is_decimal(T)) {
157
19
            return std::make_shared<ResultDataType>(
158
19
                    ResultDataType::max_precision(),
159
19
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
19
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv
Line
Count
Source
155
266
    DataTypePtr get_return_type() const override {
156
266
        if constexpr (is_decimal(T)) {
157
266
            return std::make_shared<ResultDataType>(
158
266
                    ResultDataType::max_precision(),
159
266
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
266
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
155
91
    DataTypePtr get_return_type() const override {
156
91
        if constexpr (is_decimal(T)) {
157
91
            return std::make_shared<ResultDataType>(
158
91
                    ResultDataType::max_precision(),
159
91
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
91
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv
Line
Count
Source
155
278
    DataTypePtr get_return_type() const override {
156
278
        if constexpr (is_decimal(T)) {
157
278
            return std::make_shared<ResultDataType>(
158
278
                    ResultDataType::max_precision(),
159
278
                    std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale));
160
        } else {
161
            return std::make_shared<ResultDataType>();
162
        }
163
278
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
155
271
    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
271
        } else {
161
271
            return std::make_shared<ResultDataType>();
162
271
        }
163
271
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
155
119
    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
119
        } else {
161
119
            return std::make_shared<ResultDataType>();
162
119
        }
163
119
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv
Line
Count
Source
155
1.55k
    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
1.55k
        } else {
161
1.55k
            return std::make_shared<ResultDataType>();
162
1.55k
        }
163
1.55k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
155
1.10k
    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
1.10k
        } else {
161
1.10k
            return std::make_shared<ResultDataType>();
162
1.10k
        }
163
1.10k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv
Line
Count
Source
155
5
    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
5
        } else {
161
5
            return std::make_shared<ResultDataType>();
162
5
        }
163
5
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
1.42k
    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
1.42k
        } else {
161
1.42k
            return std::make_shared<ResultDataType>();
162
1.42k
        }
163
1.42k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE15get_return_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
84
    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
84
        } else {
161
84
            return std::make_shared<ResultDataType>();
162
84
        }
163
84
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
66
    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
66
        } else {
161
66
            return std::make_shared<ResultDataType>();
162
66
        }
163
66
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
78
    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
78
        } else {
161
78
            return std::make_shared<ResultDataType>();
162
78
        }
163
78
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
66
    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
66
        } else {
161
66
            return std::make_shared<ResultDataType>();
162
66
        }
163
66
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
66
    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
66
        } else {
161
66
            return std::make_shared<ResultDataType>();
162
66
        }
163
66
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv
Line
Count
Source
155
72
    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
72
        } else {
161
72
            return std::make_shared<ResultDataType>();
162
72
        }
163
72
    }
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
62.0M
                                            const IColumn** columns, ssize_t row_num) const {
170
62.0M
#ifdef __clang__
171
62.0M
#pragma clang fp reassociate(on)
172
62.0M
#endif
173
62.0M
        const auto& column =
174
62.0M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
62.0M
        if constexpr (is_add) {
176
62.0M
            if constexpr (T == TYPE_DECIMALV2) {
177
0
                this->data(place).sum += column.get_data()[row_num];
178
60.2M
            } else if constexpr (is_decimal(T)) {
179
60.2M
                this->data(place).sum += column.get_data()[row_num].value;
180
60.2M
            } else {
181
1.79M
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
1.79M
            }
183
62.0M
            ++this->data(place).count;
184
62.0M
        } else {
185
124
            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
104
            } else {
190
104
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
104
            }
192
124
            --this->data(place).count;
193
124
        }
194
62.0M
    }
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
1.09M
                                            const IColumn** columns, ssize_t row_num) const {
170
1.09M
#ifdef __clang__
171
1.09M
#pragma clang fp reassociate(on)
172
1.09M
#endif
173
1.09M
        const auto& column =
174
1.09M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
1.09M
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
1.09M
            } else if constexpr (is_decimal(T)) {
179
1.09M
                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
1.09M
            ++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.09M
    }
_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
59.1M
                                            const IColumn** columns, ssize_t row_num) const {
170
59.1M
#ifdef __clang__
171
59.1M
#pragma clang fp reassociate(on)
172
59.1M
#endif
173
59.1M
        const auto& column =
174
59.1M
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
59.1M
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
59.1M
            } else if constexpr (is_decimal(T)) {
179
59.1M
                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
59.1M
            ++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
59.1M
    }
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
117
                                            const IColumn** columns, ssize_t row_num) const {
170
117
#ifdef __clang__
171
117
#pragma clang fp reassociate(on)
172
117
#endif
173
117
        const auto& column =
174
117
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
117
        if constexpr (is_add) {
176
            if constexpr (T == TYPE_DECIMALV2) {
177
                this->data(place).sum += column.get_data()[row_num];
178
117
            } else if constexpr (is_decimal(T)) {
179
117
                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
117
            ++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
117
    }
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.9k
                                            const IColumn** columns, ssize_t row_num) const {
170
10.9k
#ifdef __clang__
171
10.9k
#pragma clang fp reassociate(on)
172
10.9k
#endif
173
10.9k
        const auto& column =
174
10.9k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
10.9k
        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.9k
            } else {
181
10.9k
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
10.9k
            }
183
10.9k
            ++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.9k
    }
_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
1.15k
                                            const IColumn** columns, ssize_t row_num) const {
170
1.15k
#ifdef __clang__
171
1.15k
#pragma clang fp reassociate(on)
172
1.15k
#endif
173
1.15k
        const auto& column =
174
1.15k
                assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]);
175
1.15k
        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.15k
            } else {
181
1.15k
                this->data(place).sum += (DataType)column.get_data()[row_num];
182
1.15k
            }
183
1.15k
            ++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.15k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl
Line
Count
Source
169
92
                                            const IColumn** columns, ssize_t row_num) const {
170
92
#ifdef __clang__
171
92
#pragma clang fp reassociate(on)
172
92
#endif
173
92
        const auto& column =
174
92
                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
92
        } 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
92
            } else {
190
92
                this->data(place).sum -= (DataType)column.get_data()[row_num];
191
92
            }
192
92
            --this->data(place).count;
193
92
        }
194
92
    }
_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
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl
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
61.9M
             Arena&) const override {
198
61.9M
        update_value<true>(place, columns, row_num);
199
61.9M
    }
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
1.09M
             Arena&) const override {
198
1.09M
        update_value<true>(place, columns, row_num);
199
1.09M
    }
_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
59.0M
             Arena&) const override {
198
59.0M
        update_value<true>(place, columns, row_num);
199
59.0M
    }
_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
118
             Arena&) const override {
198
118
        update_value<true>(place, columns, row_num);
199
118
    }
_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
417
             Arena&) const override {
198
417
        update_value<true>(place, columns, row_num);
199
417
    }
_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.8k
             Arena&) const override {
198
10.8k
        update_value<true>(place, columns, row_num);
199
10.8k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Line
Count
Source
197
703
             Arena&) const override {
198
703
        update_value<true>(place, columns, row_num);
199
703
    }
_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
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
_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.00k
    void reset(AggregateDataPtr place) const override {
202
1.00k
        this->data(place).sum = {};
203
1.00k
        this->data(place).count = 0;
204
1.00k
    }
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
137
    void reset(AggregateDataPtr place) const override {
202
137
        this->data(place).sum = {};
203
137
        this->data(place).count = 0;
204
137
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
Line
Count
Source
201
97
    void reset(AggregateDataPtr place) const override {
202
97
        this->data(place).sum = {};
203
97
        this->data(place).count = 0;
204
97
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc
Line
Count
Source
201
89
    void reset(AggregateDataPtr place) const override {
202
89
        this->data(place).sum = {};
203
89
        this->data(place).count = 0;
204
89
    }
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
2.32k
                                     Arena&) const override {
208
2.32k
        if constexpr (T == TYPE_DECIMALV2) {
209
0
            this->data(place).sum += this->data(rhs).sum;
210
903
        } else if constexpr (is_decimal(T)) {
211
903
            this->data(place).sum += this->data(rhs).sum.value;
212
1.41k
        } else {
213
1.41k
            this->data(place).sum += this->data(rhs).sum;
214
1.41k
        }
215
2.32k
        this->data(place).count += this->data(rhs).count;
216
2.32k
    }
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
797
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
797
        } else if constexpr (is_decimal(T)) {
211
797
            this->data(place).sum += this->data(rhs).sum.value;
212
        } else {
213
            this->data(place).sum += this->data(rhs).sum;
214
        }
215
797
        this->data(place).count += this->data(rhs).count;
216
797
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
58
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
58
        } else if constexpr (is_decimal(T)) {
211
58
            this->data(place).sum += this->data(rhs).sum.value;
212
        } else {
213
            this->data(place).sum += this->data(rhs).sum;
214
        }
215
58
        this->data(place).count += this->data(rhs).count;
216
58
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
15
                                     Arena&) const override {
208
        if constexpr (T == TYPE_DECIMALV2) {
209
            this->data(place).sum += this->data(rhs).sum;
210
15
        } else if constexpr (is_decimal(T)) {
211
15
            this->data(place).sum += this->data(rhs).sum.value;
212
        } else {
213
            this->data(place).sum += this->data(rhs).sum;
214
        }
215
15
        this->data(place).count += this->data(rhs).count;
216
15
    }
_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
413
                                     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
413
        } else {
213
413
            this->data(place).sum += this->data(rhs).sum;
214
413
        }
215
413
        this->data(place).count += this->data(rhs).count;
216
413
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
251
                                     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
251
        } else {
213
251
            this->data(place).sum += this->data(rhs).sum;
214
251
        }
215
251
        this->data(place).count += this->data(rhs).count;
216
251
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE
Line
Count
Source
207
681
                                     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
681
        } else {
213
681
            this->data(place).sum += this->data(rhs).sum;
214
681
        }
215
681
        this->data(place).count += this->data(rhs).count;
216
681
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5mergeEPcPKcRNS_5ArenaE
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
183
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
183
        this->data(place).write(buf);
220
183
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
218
3
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
3
        this->data(place).write(buf);
220
3
    }
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
10
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
10
        this->data(place).write(buf);
220
10
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
218
136
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
136
        this->data(place).write(buf);
220
136
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE
Line
Count
Source
218
24
    void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override {
219
24
        this->data(place).write(buf);
220
24
    }
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
201
                     Arena&) const override {
224
201
        this->data(place).read(buf);
225
201
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
223
3
                     Arena&) const override {
224
3
        this->data(place).read(buf);
225
3
    }
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
10
                     Arena&) const override {
224
10
        this->data(place).read(buf);
225
10
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
223
142
                     Arena&) const override {
224
142
        this->data(place).read(buf);
225
142
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Line
Count
Source
223
36
                     Arena&) const override {
224
36
        this->data(place).read(buf);
225
36
    }
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
5.16k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
5.16k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
229
5.16k
        if constexpr (is_decimal(T)) {
230
2.71k
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
2.71k
        } else {
232
2.45k
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
2.45k
        }
234
5.16k
    }
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
96
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
96
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
229
96
        if constexpr (is_decimal(T)) {
230
96
            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
96
    }
_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&, TypeCheckOnRelease::DISABLE>(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.37k
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
2.37k
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
229
2.37k
        if constexpr (is_decimal(T)) {
230
2.37k
            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.37k
    }
_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&, TypeCheckOnRelease::DISABLE>(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
54
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
54
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
229
54
        if constexpr (is_decimal(T)) {
230
54
            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
54
    }
_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&, TypeCheckOnRelease::DISABLE>(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&, TypeCheckOnRelease::DISABLE>(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&, TypeCheckOnRelease::DISABLE>(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&, TypeCheckOnRelease::DISABLE>(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
499
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
499
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
499
        } else {
232
499
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
499
        }
234
499
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
227
694
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
694
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
694
        } else {
232
694
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
694
        }
234
694
    }
_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&, TypeCheckOnRelease::DISABLE>(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
754
    void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override {
228
754
        auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to);
229
        if constexpr (is_decimal(T)) {
230
            column.get_data().push_back(this->data(place).template result<ResultType>(multiplier));
231
754
        } else {
232
754
            column.get_data().push_back(this->data(place).template result<ResultType>());
233
754
        }
234
754
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE18insert_result_intoEPKcRNS_7IColumnE
_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&, TypeCheckOnRelease::DISABLE>(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&, TypeCheckOnRelease::DISABLE>(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&, TypeCheckOnRelease::DISABLE>(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&, TypeCheckOnRelease::DISABLE>(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&, TypeCheckOnRelease::DISABLE>(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&, TypeCheckOnRelease::DISABLE>(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
2.68k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
2.68k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
2.68k
        col.set_item_size(sizeof(Data));
240
2.68k
        col.resize(num_rows);
241
2.68k
        auto* data = col.get_data().data();
242
4.87k
        for (size_t i = 0; i != num_rows; ++i) {
243
2.19k
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
2.19k
                    *reinterpret_cast<Data*>(places[i] + offset);
245
2.19k
        }
246
2.68k
    }
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
1.83k
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
1.83k
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
1.83k
        col.set_item_size(sizeof(Data));
240
1.83k
        col.resize(num_rows);
241
1.83k
        auto* data = col.get_data().data();
242
2.52k
        for (size_t i = 0; i != num_rows; ++i) {
243
686
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
686
                    *reinterpret_cast<Data*>(places[i] + offset);
245
686
        }
246
1.83k
    }
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
58
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
58
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
58
        col.set_item_size(sizeof(Data));
240
58
        col.resize(num_rows);
241
58
        auto* data = col.get_data().data();
242
106
        for (size_t i = 0; i != num_rows; ++i) {
243
48
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
48
                    *reinterpret_cast<Data*>(places[i] + offset);
245
48
        }
246
58
    }
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
44
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
44
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
44
        col.set_item_size(sizeof(Data));
240
44
        col.resize(num_rows);
241
44
        auto* data = col.get_data().data();
242
115
        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
44
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
237
28
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
28
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
28
        col.set_item_size(sizeof(Data));
240
28
        col.resize(num_rows);
241
28
        auto* data = col.get_data().data();
242
100
        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
28
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
237
361
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
361
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
361
        col.set_item_size(sizeof(Data));
240
361
        col.resize(num_rows);
241
361
        auto* data = col.get_data().data();
242
669
        for (size_t i = 0; i != num_rows; ++i) {
243
308
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
308
                    *reinterpret_cast<Data*>(places[i] + offset);
245
308
        }
246
361
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
Line
Count
Source
237
36
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
36
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
36
        col.set_item_size(sizeof(Data));
240
36
        col.resize(num_rows);
241
36
        auto* data = col.get_data().data();
242
277
        for (size_t i = 0; i != num_rows; ++i) {
243
241
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
241
                    *reinterpret_cast<Data*>(places[i] + offset);
245
241
        }
246
36
    }
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
293
                             MutableColumnPtr& dst, const size_t num_rows) const override {
238
293
        auto& col = assert_cast<ColumnFixedLengthObject&>(*dst);
239
293
        col.set_item_size(sizeof(Data));
240
293
        col.resize(num_rows);
241
293
        auto* data = col.get_data().data();
242
999
        for (size_t i = 0; i != num_rows; ++i) {
243
706
            *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) =
244
706
                    *reinterpret_cast<Data*>(places[i] + offset);
245
706
        }
246
293
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm
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
70
                                           const size_t num_rows, Arena&) const override {
250
70
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
251
70
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
252
70
        dst_col.set_item_size(sizeof(Data));
253
70
        dst_col.resize(num_rows);
254
70
        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
70
    }
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
68
                                           const size_t num_rows, Arena&) const override {
250
68
        auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data();
251
68
        auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst);
252
68
        dst_col.set_item_size(sizeof(Data));
253
68
        dst_col.resize(num_rows);
254
68
        auto* data = dst_col.get_data().data();
255
8.34k
        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
68
    }
_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.40k
            Arena&) const override {
265
8.40k
        DCHECK(end <= column.size() && begin <= end)
266
103
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
8.40k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
8.40k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
16.7k
        for (size_t i = begin; i <= end; ++i) {
270
8.36k
            this->data(place).sum += data[i].sum;
271
8.36k
            this->data(place).count += data[i].count;
272
8.36k
        }
273
8.40k
    }
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
78
            Arena&) const override {
265
78
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
78
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
78
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
164
        for (size_t i = begin; i <= end; ++i) {
270
86
            this->data(place).sum += data[i].sum;
271
86
            this->data(place).count += data[i].count;
272
86
        }
273
78
    }
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
92
            Arena&) const override {
265
92
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
92
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
92
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
184
        for (size_t i = begin; i <= end; ++i) {
270
92
            this->data(place).sum += data[i].sum;
271
92
            this->data(place).count += data[i].count;
272
92
        }
273
92
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
4
            Arena&) const override {
265
4
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
4
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
4
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
8
        for (size_t i = begin; i <= end; ++i) {
270
4
            this->data(place).sum += data[i].sum;
271
4
            this->data(place).count += data[i].count;
272
4
        }
273
4
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
10
            Arena&) const override {
265
10
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
10
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
10
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
20
        for (size_t i = begin; i <= end; ++i) {
270
10
            this->data(place).sum += data[i].sum;
271
10
            this->data(place).count += data[i].count;
272
10
        }
273
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
51
            Arena&) const override {
265
51
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
51
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
51
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
110
        for (size_t i = begin; i <= end; ++i) {
270
59
            this->data(place).sum += data[i].sum;
271
59
            this->data(place).count += data[i].count;
272
59
        }
273
51
    }
_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
8.00k
            Arena&) const override {
265
8.00k
        DCHECK(end <= column.size() && begin <= end)
266
103
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
8.00k
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
8.00k
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
15.9k
        for (size_t i = begin; i <= end; ++i) {
270
7.92k
            this->data(place).sum += data[i].sum;
271
7.92k
            this->data(place).count += data[i].count;
272
7.92k
        }
273
8.00k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
Line
Count
Source
264
42
            Arena&) const override {
265
42
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
42
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
42
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
94
        for (size_t i = begin; i <= end; ++i) {
270
52
            this->data(place).sum += data[i].sum;
271
52
            this->data(place).count += data[i].count;
272
52
        }
273
42
    }
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
72
            Arena&) const override {
265
72
        DCHECK(end <= column.size() && begin <= end)
266
0
                << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size();
267
72
        auto& col = assert_cast<const ColumnFixedLengthObject&>(column);
268
72
        auto* data = reinterpret_cast<const Data*>(col.get_data().data());
269
152
        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
72
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE
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
1.01k
                                   const size_t num_rows) const override {
278
1.01k
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
1.01k
        const auto* data = col.get_data().data();
280
1.01k
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
1.01k
    }
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
384
                                   const size_t num_rows) const override {
278
384
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
384
        const auto* data = col.get_data().data();
280
384
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
384
    }
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
39
                                   const size_t num_rows) const override {
278
39
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
39
        const auto* data = col.get_data().data();
280
39
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
39
    }
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
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
    }
_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
131
                                   const size_t num_rows) const override {
278
131
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
131
        const auto* data = col.get_data().data();
280
131
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
131
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
Line
Count
Source
277
35
                                   const size_t num_rows) const override {
278
35
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
35
        const auto* data = col.get_data().data();
280
35
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
35
    }
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
379
                                   const size_t num_rows) const override {
278
379
        const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column);
279
379
        const auto* data = col.get_data().data();
280
379
        this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows);
281
379
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm
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
415
                                         IColumn& to) const override {
293
415
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
415
        col.set_item_size(sizeof(Data));
295
415
        size_t old_size = col.size();
296
415
        col.resize(old_size + 1);
297
415
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
415
    }
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
62
                                         IColumn& to) const override {
293
62
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
62
        col.set_item_size(sizeof(Data));
295
62
        size_t old_size = col.size();
296
62
        col.resize(old_size + 1);
297
62
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
62
    }
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
92
                                         IColumn& to) const override {
293
92
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
92
        col.set_item_size(sizeof(Data));
295
92
        size_t old_size = col.size();
296
92
        col.resize(old_size + 1);
297
92
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
92
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
4
                                         IColumn& to) const override {
293
4
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
4
        col.set_item_size(sizeof(Data));
295
4
        size_t old_size = col.size();
296
4
        col.resize(old_size + 1);
297
4
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
4
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
10
                                         IColumn& to) const override {
293
10
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
10
        col.set_item_size(sizeof(Data));
295
10
        size_t old_size = col.size();
296
10
        col.resize(old_size + 1);
297
10
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
10
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
32
                                         IColumn& to) const override {
293
32
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
32
        col.set_item_size(sizeof(Data));
295
32
        size_t old_size = col.size();
296
32
        col.resize(old_size + 1);
297
32
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
32
    }
_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
115
                                         IColumn& to) const override {
293
115
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
115
        col.set_item_size(sizeof(Data));
295
115
        size_t old_size = col.size();
296
115
        col.resize(old_size + 1);
297
115
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
115
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
Line
Count
Source
292
25
                                         IColumn& to) const override {
293
25
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
25
        col.set_item_size(sizeof(Data));
295
25
        size_t old_size = col.size();
296
25
        col.resize(old_size + 1);
297
25
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
25
    }
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
56
                                         IColumn& to) const override {
293
56
        auto& col = assert_cast<ColumnFixedLengthObject&>(to);
294
56
        col.set_item_size(sizeof(Data));
295
56
        size_t old_size = col.size();
296
56
        col.resize(old_size + 1);
297
56
        *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place);
298
56
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE
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
3.47k
    MutableColumnPtr create_serialize_column() const override {
301
3.47k
        return ColumnFixedLengthObject::create(sizeof(Data));
302
3.47k
    }
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
84
    MutableColumnPtr create_serialize_column() const override {
301
84
        return ColumnFixedLengthObject::create(sizeof(Data));
302
84
    }
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
1.91k
    MutableColumnPtr create_serialize_column() const override {
301
1.91k
        return ColumnFixedLengthObject::create(sizeof(Data));
302
1.91k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv
Line
Count
Source
300
57
    MutableColumnPtr create_serialize_column() const override {
301
57
        return ColumnFixedLengthObject::create(sizeof(Data));
302
57
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
300
4
    MutableColumnPtr create_serialize_column() const override {
301
4
        return ColumnFixedLengthObject::create(sizeof(Data));
302
4
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv
Line
Count
Source
300
20
    MutableColumnPtr create_serialize_column() const override {
301
20
        return ColumnFixedLengthObject::create(sizeof(Data));
302
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
300
81
    MutableColumnPtr create_serialize_column() const override {
301
81
        return ColumnFixedLengthObject::create(sizeof(Data));
302
81
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
300
49
    MutableColumnPtr create_serialize_column() const override {
301
49
        return ColumnFixedLengthObject::create(sizeof(Data));
302
49
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv
Line
Count
Source
300
849
    MutableColumnPtr create_serialize_column() const override {
301
849
        return ColumnFixedLengthObject::create(sizeof(Data));
302
849
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
Line
Count
Source
300
62
    MutableColumnPtr create_serialize_column() const override {
301
62
        return ColumnFixedLengthObject::create(sizeof(Data));
302
62
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv
Line
Count
Source
300
348
    MutableColumnPtr create_serialize_column() const override {
301
348
        return ColumnFixedLengthObject::create(sizeof(Data));
302
348
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE23create_serialize_columnEv
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
3.73k
    DataTypePtr get_serialized_type() const override {
305
3.73k
        return std::make_shared<DataTypeFixedLengthObject>();
306
3.73k
    }
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
84
    DataTypePtr get_serialized_type() const override {
305
84
        return std::make_shared<DataTypeFixedLengthObject>();
306
84
    }
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
1.93k
    DataTypePtr get_serialized_type() const override {
305
1.93k
        return std::make_shared<DataTypeFixedLengthObject>();
306
1.93k
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv
Line
Count
Source
304
58
    DataTypePtr get_serialized_type() const override {
305
58
        return std::make_shared<DataTypeFixedLengthObject>();
306
58
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
304
4
    DataTypePtr get_serialized_type() const override {
305
4
        return std::make_shared<DataTypeFixedLengthObject>();
306
4
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv
Line
Count
Source
304
20
    DataTypePtr get_serialized_type() const override {
305
20
        return std::make_shared<DataTypeFixedLengthObject>();
306
20
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
304
81
    DataTypePtr get_serialized_type() const override {
305
81
        return std::make_shared<DataTypeFixedLengthObject>();
306
81
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
304
49
    DataTypePtr get_serialized_type() const override {
305
49
        return std::make_shared<DataTypeFixedLengthObject>();
306
49
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv
Line
Count
Source
304
1.10k
    DataTypePtr get_serialized_type() const override {
305
1.10k
        return std::make_shared<DataTypeFixedLengthObject>();
306
1.10k
    }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
Line
Count
Source
304
57
    DataTypePtr get_serialized_type() const override {
305
57
        return std::make_shared<DataTypeFixedLengthObject>();
306
57
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv
Line
Count
Source
304
349
    DataTypePtr get_serialized_type() const override {
305
349
        return std::make_shared<DataTypeFixedLengthObject>();
306
349
    }
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE19get_serialized_typeEv
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
334
    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
24
    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
58
    bool supported_incremental_mode() const override { return true; }
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv
Line
Count
Source
308
178
    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
33
    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
190
                                           UInt8* could_use_previous_result) const override {
316
190
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
317
190
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
318
190
        if (current_frame_start >= current_frame_end) {
319
0
            *use_null_result = true;
320
0
            return;
321
0
        }
322
190
        if (*could_use_previous_result) {
323
171
            auto outcoming_pos = frame_start - 1;
324
171
            auto incoming_pos = frame_end - 1;
325
171
            if (!previous_is_nul && outcoming_pos >= partition_start &&
326
171
                outcoming_pos < partition_end) {
327
124
                update_value<false>(place, columns, outcoming_pos);
328
124
            }
329
171
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
330
134
                update_value<true>(place, columns, incoming_pos);
331
134
            }
332
171
        } else {
333
19
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
334
19
                                         place, columns, arena, use_null_result,
335
19
                                         could_use_previous_result);
336
19
        }
337
190
    }
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
151
                                           UInt8* could_use_previous_result) const override {
316
151
        int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start);
317
151
        int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end);
318
151
        if (current_frame_start >= current_frame_end) {
319
0
            *use_null_result = true;
320
0
            return;
321
0
        }
322
151
        if (*could_use_previous_result) {
323
132
            auto outcoming_pos = frame_start - 1;
324
132
            auto incoming_pos = frame_end - 1;
325
132
            if (!previous_is_nul && outcoming_pos >= partition_start &&
326
132
                outcoming_pos < partition_end) {
327
92
                update_value<false>(place, columns, outcoming_pos);
328
92
            }
329
132
            if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) {
330
101
                update_value<true>(place, columns, incoming_pos);
331
101
            }
332
132
        } else {
333
19
            this->add_range_single_place(partition_start, partition_end, frame_start, frame_end,
334
19
                                         place, columns, arena, use_null_result,
335
19
                                         could_use_previous_result);
336
19
        }
337
151
    }
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
570
                                UInt8* could_use_previous_result) const override {
343
570
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
570
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
570
        if (current_frame_start >= current_frame_end) {
346
24
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
546
        } else {
350
2.86k
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
2.32k
                update_value<true>(place, columns, row_num);
352
2.32k
            }
353
546
            *use_null_result = false;
354
546
            *could_use_previous_result = true;
355
546
        }
356
570
    }
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.77k
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
1.69k
                update_value<true>(place, columns, row_num);
352
1.69k
            }
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
283
                                UInt8* could_use_previous_result) const override {
343
283
        auto current_frame_start = std::max<int64_t>(frame_start, partition_start);
344
283
        auto current_frame_end = std::min<int64_t>(frame_end, partition_end);
345
283
        if (current_frame_start >= current_frame_end) {
346
24
            if (!*could_use_previous_result) {
347
0
                *use_null_result = true;
348
0
            }
349
259
        } else {
350
609
            for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) {
351
350
                update_value<true>(place, columns, row_num);
352
350
            }
353
259
            *use_null_result = false;
354
259
            *could_use_previous_result = true;
355
259
        }
356
283
    }
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