be/src/exprs/aggregate/aggregate_function_avg.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/AggregateFunctions/AggregateFunctionAvg.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <glog/logging.h> |
24 | | #include <string.h> |
25 | | |
26 | | #include <limits> |
27 | | #include <memory> |
28 | | #include <ostream> |
29 | | #include <type_traits> |
30 | | #include <vector> |
31 | | |
32 | | #include "common/compiler_util.h" |
33 | | #include "core/assert_cast.h" |
34 | | #include "core/column/column.h" |
35 | | #include "core/column/column_fixed_length_object.h" |
36 | | #include "core/data_type/data_type.h" |
37 | | #include "core/data_type/data_type_decimal.h" |
38 | | #include "core/data_type/data_type_fixed_length_object.h" |
39 | | #include "core/data_type/primitive_type.h" |
40 | | #include "core/types.h" |
41 | | #include "core/value/decimalv2_value.h" |
42 | | #include "exprs/aggregate/aggregate_function.h" |
43 | | |
44 | | namespace doris { |
45 | | class Arena; |
46 | | class BufferReadable; |
47 | | class BufferWritable; |
48 | | template <PrimitiveType T> |
49 | | class ColumnDecimal; |
50 | | template <PrimitiveType T> |
51 | | class DataTypeNumber; |
52 | | template <PrimitiveType T> |
53 | | class ColumnVector; |
54 | | |
55 | | // avg() adds up the values in this type and divides only at the end, so integers keep all digits. |
56 | 0 | constexpr PrimitiveType avg_sum_type(PrimitiveType T) { |
57 | 0 | if (T == TYPE_LARGEINT || T == TYPE_BIGINT) { |
58 | 0 | return TYPE_LARGEINT; |
59 | 0 | } else if (is_int_or_bool(T)) { |
60 | 0 | return TYPE_BIGINT; |
61 | 0 | } else if (is_float_or_double(T) || is_time_type(T)) { |
62 | 0 | return TYPE_DOUBLE; |
63 | 0 | } else if (is_decimalv3(T) && T != TYPE_DECIMAL256) { |
64 | 0 | return TYPE_DECIMAL128I; |
65 | 0 | } else { |
66 | 0 | return T; |
67 | 0 | } |
68 | 0 | } |
69 | | |
70 | | template <PrimitiveType T> |
71 | | struct AggregateFunctionAvgData { |
72 | | using ResultType = typename PrimitiveTypeTraits<T>::CppType; |
73 | | static constexpr PrimitiveType ResultPType = T; |
74 | | ResultType sum {}; |
75 | | UInt64 count = 0; |
76 | | |
77 | | AggregateFunctionAvgData& operator=(const AggregateFunctionAvgData<T>& src) = default; |
78 | | |
79 | | template <typename ResultT> |
80 | 56.7k | ResultT result(ResultType multiplier) const { |
81 | 56.7k | if (!count) { |
82 | | // null is handled in AggregationNode::_get_without_key_result |
83 | 1 | return static_cast<ResultT>(sum); |
84 | 1 | } |
85 | | // DecimalV2 has fixed internal scale=9; its arithmetic operators already |
86 | | // handle scale correctly, so no external multiplier is needed. |
87 | 56.7k | if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) { |
88 | 0 | DecimalV2Value decimal_val_count(count, 0); |
89 | 0 | DecimalV2Value cal_ret = sum / decimal_val_count; |
90 | 0 | return cal_ret; |
91 | 56.7k | } else { |
92 | 56.7k | if constexpr (T == TYPE_DECIMAL256) { |
93 | 185 | return static_cast<ResultT>(sum * multiplier / |
94 | 185 | typename PrimitiveTypeTraits<T>::CppType(count)); |
95 | 56.5k | } else { |
96 | 56.5k | return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count); |
97 | 56.5k | } |
98 | 56.7k | } |
99 | 56.7k | } Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE6resultINS_7DecimalIiEEEET_S5_ Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE6resultINS_7DecimalIlEEEET_S5_ _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE6resultINS_12Decimal128V3EEET_S4_ Line | Count | Source | 80 | 56.5k | ResultT result(ResultType multiplier) const { | 81 | 56.5k | if (!count) { | 82 | | // null is handled in AggregationNode::_get_without_key_result | 83 | 1 | return static_cast<ResultT>(sum); | 84 | 1 | } | 85 | | // DecimalV2 has fixed internal scale=9; its arithmetic operators already | 86 | | // handle scale correctly, so no external multiplier is needed. | 87 | | if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) { | 88 | | DecimalV2Value decimal_val_count(count, 0); | 89 | | DecimalV2Value cal_ret = sum / decimal_val_count; | 90 | | return cal_ret; | 91 | 56.5k | } else { | 92 | | if constexpr (T == TYPE_DECIMAL256) { | 93 | | return static_cast<ResultT>(sum * multiplier / | 94 | | typename PrimitiveTypeTraits<T>::CppType(count)); | 95 | 56.5k | } else { | 96 | 56.5k | return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count); | 97 | 56.5k | } | 98 | 56.5k | } | 99 | 56.5k | } |
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE6resultINS_7DecimalIN4wide7integerILm256EiEEEEEET_S8_ Line | Count | Source | 80 | 185 | ResultT result(ResultType multiplier) const { | 81 | 185 | if (!count) { | 82 | | // null is handled in AggregationNode::_get_without_key_result | 83 | 0 | return static_cast<ResultT>(sum); | 84 | 0 | } | 85 | | // DecimalV2 has fixed internal scale=9; its arithmetic operators already | 86 | | // handle scale correctly, so no external multiplier is needed. | 87 | | if constexpr (T == TYPE_DECIMALV2 && IsDecimalV2<ResultT>) { | 88 | | DecimalV2Value decimal_val_count(count, 0); | 89 | | DecimalV2Value cal_ret = sum / decimal_val_count; | 90 | | return cal_ret; | 91 | 185 | } else { | 92 | 185 | if constexpr (T == TYPE_DECIMAL256) { | 93 | 185 | return static_cast<ResultT>(sum * multiplier / | 94 | 185 | typename PrimitiveTypeTraits<T>::CppType(count)); | 95 | | } else { | 96 | | return static_cast<ResultT>(sum * multiplier) / static_cast<ResultT>(count); | 97 | | } | 98 | 185 | } | 99 | 185 | } |
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE6resultINS_14DecimalV2ValueEEET_S4_ |
100 | | |
101 | | template <typename ResultT> |
102 | 2.14k | ResultT result() const { |
103 | 2.14k | if constexpr (std::is_floating_point_v<ResultT>) { |
104 | 2.14k | if constexpr (std::numeric_limits<ResultT>::is_iec559) { |
105 | 2.14k | return static_cast<ResultT>(sum) / |
106 | 2.14k | static_cast<ResultT>(count); /// allow division by zero |
107 | 2.14k | } |
108 | 2.14k | } |
109 | | |
110 | 2.14k | if (!count) { |
111 | | // null is handled in AggregationNode::_get_without_key_result |
112 | 0 | return static_cast<ResultT>(sum); |
113 | 0 | } |
114 | 2.14k | return static_cast<ResultT>(sum) / static_cast<ResultT>(count); |
115 | 2.14k | } _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE6resultIdEET_v Line | Count | Source | 102 | 971 | ResultT result() const { | 103 | 971 | if constexpr (std::is_floating_point_v<ResultT>) { | 104 | 971 | if constexpr (std::numeric_limits<ResultT>::is_iec559) { | 105 | 971 | return static_cast<ResultT>(sum) / | 106 | 971 | static_cast<ResultT>(count); /// allow division by zero | 107 | 971 | } | 108 | 971 | } | 109 | | | 110 | 971 | if (!count) { | 111 | | // null is handled in AggregationNode::_get_without_key_result | 112 | 0 | return static_cast<ResultT>(sum); | 113 | 0 | } | 114 | 971 | return static_cast<ResultT>(sum) / static_cast<ResultT>(count); | 115 | 971 | } |
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE6resultIdEET_v Line | Count | Source | 102 | 702 | ResultT result() const { | 103 | 702 | if constexpr (std::is_floating_point_v<ResultT>) { | 104 | 702 | if constexpr (std::numeric_limits<ResultT>::is_iec559) { | 105 | 702 | return static_cast<ResultT>(sum) / | 106 | 702 | static_cast<ResultT>(count); /// allow division by zero | 107 | 702 | } | 108 | 702 | } | 109 | | | 110 | 702 | if (!count) { | 111 | | // null is handled in AggregationNode::_get_without_key_result | 112 | 0 | return static_cast<ResultT>(sum); | 113 | 0 | } | 114 | 702 | return static_cast<ResultT>(sum) / static_cast<ResultT>(count); | 115 | 702 | } |
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE6resultIdEET_v Line | Count | Source | 102 | 472 | ResultT result() const { | 103 | 472 | if constexpr (std::is_floating_point_v<ResultT>) { | 104 | 472 | if constexpr (std::numeric_limits<ResultT>::is_iec559) { | 105 | 472 | return static_cast<ResultT>(sum) / | 106 | 472 | static_cast<ResultT>(count); /// allow division by zero | 107 | 472 | } | 108 | 472 | } | 109 | | | 110 | 472 | if (!count) { | 111 | | // null is handled in AggregationNode::_get_without_key_result | 112 | 0 | return static_cast<ResultT>(sum); | 113 | 0 | } | 114 | 472 | return static_cast<ResultT>(sum) / static_cast<ResultT>(count); | 115 | 472 | } |
|
116 | | |
117 | 8.19k | void write(BufferWritable& buf) const { |
118 | 8.19k | buf.write_binary(sum); |
119 | 8.19k | buf.write_binary(count); |
120 | 8.19k | } Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE Line | Count | Source | 117 | 13 | void write(BufferWritable& buf) const { | 118 | 13 | buf.write_binary(sum); | 119 | 13 | buf.write_binary(count); | 120 | 13 | } |
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE Line | Count | Source | 117 | 13 | void write(BufferWritable& buf) const { | 118 | 13 | buf.write_binary(sum); | 119 | 13 | buf.write_binary(count); | 120 | 13 | } |
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE Line | Count | Source | 117 | 8.15k | void write(BufferWritable& buf) const { | 118 | 8.15k | buf.write_binary(sum); | 119 | 8.15k | buf.write_binary(count); | 120 | 8.15k | } |
_ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE Line | Count | Source | 117 | 18 | void write(BufferWritable& buf) const { | 118 | 18 | buf.write_binary(sum); | 119 | 18 | buf.write_binary(count); | 120 | 18 | } |
Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE5writeERNS_14BufferWritableE |
121 | | |
122 | 8.21k | void read(BufferReadable& buf) { |
123 | 8.21k | buf.read_binary(sum); |
124 | 8.21k | buf.read_binary(count); |
125 | 8.21k | } Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE Line | Count | Source | 122 | 13 | void read(BufferReadable& buf) { | 123 | 13 | buf.read_binary(sum); | 124 | 13 | buf.read_binary(count); | 125 | 13 | } |
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE Line | Count | Source | 122 | 13 | void read(BufferReadable& buf) { | 123 | 13 | buf.read_binary(sum); | 124 | 13 | buf.read_binary(count); | 125 | 13 | } |
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE Line | Count | Source | 122 | 8.15k | void read(BufferReadable& buf) { | 123 | 8.15k | buf.read_binary(sum); | 124 | 8.15k | buf.read_binary(count); | 125 | 8.15k | } |
_ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE Line | Count | Source | 122 | 30 | void read(BufferReadable& buf) { | 123 | 30 | buf.read_binary(sum); | 124 | 30 | buf.read_binary(count); | 125 | 30 | } |
Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE9EE4readERNS_14BufferReadableE Unexecuted instantiation: _ZN5doris24AggregateFunctionAvgDataILNS_13PrimitiveTypeE20EE4readERNS_14BufferReadableE |
126 | | }; |
127 | | |
128 | | template <PrimitiveType T, PrimitiveType TResult, typename Data> |
129 | | class AggregateFunctionAvg; |
130 | | |
131 | | template <PrimitiveType T, PrimitiveType TResult> |
132 | | constexpr static bool is_valid_avg_types = |
133 | | (is_same_or_wider_decimalv3(T, TResult) || (is_decimalv2(T) && is_decimalv2(TResult)) || |
134 | | (is_float_or_double(T) && is_float_or_double(TResult)) || |
135 | | (is_int_or_bool(T) && (is_double(TResult) || is_int(TResult)))); |
136 | | /// Calculates arithmetic mean of numbers. |
137 | | template <PrimitiveType T, PrimitiveType TResult, typename Data> |
138 | | requires(is_valid_avg_types<T, TResult>) |
139 | | class AggregateFunctionAvg<T, TResult, Data> final |
140 | | : public IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>, |
141 | | UnaryExpression, |
142 | | NullableAggregateFunction { |
143 | | public: |
144 | | using ResultType = typename PrimitiveTypeTraits<TResult>::CppType; |
145 | | using ResultDataType = typename PrimitiveTypeTraits<TResult>::DataType; |
146 | | using ColVecType = typename PrimitiveTypeTraits<T>::ColumnType; |
147 | | using ColVecResult = typename PrimitiveTypeTraits<TResult>::ColumnType; |
148 | | // The result calculated by PercentileApprox is an approximate value, |
149 | | // so the underlying storage uses float. The following calls will involve |
150 | | // an implicit cast to float. |
151 | | |
152 | | using DataType = typename Data::ResultType; |
153 | | |
154 | | // consistent with fe/fe-common/src/main/java/org/apache/doris/catalog/ScalarType.java |
155 | | static constexpr uint32_t DEFAULT_MIN_AVG_DECIMAL128_SCALE = 4; |
156 | | |
157 | | /// ctor for native types |
158 | | AggregateFunctionAvg(const DataTypes& argument_types_) |
159 | 2.53k | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( |
160 | 2.53k | argument_types_), |
161 | 2.53k | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, |
162 | 2.53k | get_decimal_scale(*argument_types_[0]))) { |
163 | 2.53k | if constexpr (is_decimal(T)) { |
164 | 739 | multiplier = ResultType(ResultDataType::get_scale_multiplier( |
165 | 739 | output_scale - get_decimal_scale(*argument_types_[0]))); |
166 | 739 | } |
167 | 2.53k | } Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 41 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 41 | argument_types_), | 161 | 41 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 41 | get_decimal_scale(*argument_types_[0]))) { | 163 | 41 | if constexpr (is_decimal(T)) { | 164 | 41 | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | 41 | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | 41 | } | 167 | 41 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 8 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 8 | argument_types_), | 161 | 8 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 8 | get_decimal_scale(*argument_types_[0]))) { | 163 | 8 | if constexpr (is_decimal(T)) { | 164 | 8 | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | 8 | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | 8 | } | 167 | 8 | } |
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 504 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 504 | argument_types_), | 161 | 504 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 504 | get_decimal_scale(*argument_types_[0]))) { | 163 | 504 | if constexpr (is_decimal(T)) { | 164 | 504 | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | 504 | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | 504 | } | 167 | 504 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 9 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 9 | argument_types_), | 161 | 9 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 9 | get_decimal_scale(*argument_types_[0]))) { | 163 | 9 | if constexpr (is_decimal(T)) { | 164 | 9 | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | 9 | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | 9 | } | 167 | 9 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 78 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 78 | argument_types_), | 161 | 78 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 78 | get_decimal_scale(*argument_types_[0]))) { | 163 | 78 | if constexpr (is_decimal(T)) { | 164 | 78 | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | 78 | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | 78 | } | 167 | 78 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 24 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 24 | argument_types_), | 161 | 24 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 24 | get_decimal_scale(*argument_types_[0]))) { | 163 | 24 | if constexpr (is_decimal(T)) { | 164 | 24 | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | 24 | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | 24 | } | 167 | 24 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 75 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 75 | argument_types_), | 161 | 75 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 75 | get_decimal_scale(*argument_types_[0]))) { | 163 | 75 | if constexpr (is_decimal(T)) { | 164 | 75 | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | 75 | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | 75 | } | 167 | 75 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 137 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 137 | argument_types_), | 161 | 137 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 137 | get_decimal_scale(*argument_types_[0]))) { | 163 | | if constexpr (is_decimal(T)) { | 164 | | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | | } | 167 | 137 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 66 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 66 | argument_types_), | 161 | 66 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 66 | get_decimal_scale(*argument_types_[0]))) { | 163 | | if constexpr (is_decimal(T)) { | 164 | | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | | } | 167 | 66 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 1.00k | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 1.00k | argument_types_), | 161 | 1.00k | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 1.00k | get_decimal_scale(*argument_types_[0]))) { | 163 | | if constexpr (is_decimal(T)) { | 164 | | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | | } | 167 | 1.00k | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 288 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 288 | argument_types_), | 161 | 288 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 288 | get_decimal_scale(*argument_types_[0]))) { | 163 | | if constexpr (is_decimal(T)) { | 164 | | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | | } | 167 | 288 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 47 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 47 | argument_types_), | 161 | 47 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 47 | get_decimal_scale(*argument_types_[0]))) { | 163 | | if constexpr (is_decimal(T)) { | 164 | | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | | } | 167 | 47 | } |
_ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 206 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 206 | argument_types_), | 161 | 206 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 206 | get_decimal_scale(*argument_types_[0]))) { | 163 | | if constexpr (is_decimal(T)) { | 164 | | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | | } | 167 | 206 | } |
Unexecuted instantiation: _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE _ZN5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 159 | 42 | : IAggregateFunctionDataHelper<Data, AggregateFunctionAvg<T, TResult, Data>>( | 160 | 42 | argument_types_), | 161 | 42 | output_scale(std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, | 162 | 42 | get_decimal_scale(*argument_types_[0]))) { | 163 | | if constexpr (is_decimal(T)) { | 164 | | multiplier = ResultType(ResultDataType::get_scale_multiplier( | 165 | | output_scale - get_decimal_scale(*argument_types_[0]))); | 166 | | } | 167 | 42 | } |
|
168 | | |
169 | 332 | String get_name() const override { return "avg"; }Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE8get_nameB5cxx11Ev _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE8get_nameB5cxx11Ev Line | Count | Source | 169 | 40 | String get_name() const override { return "avg"; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE8get_nameB5cxx11Ev _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE8get_nameB5cxx11Ev Line | Count | Source | 169 | 10 | String get_name() const override { return "avg"; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE8get_nameB5cxx11Ev Line | Count | Source | 169 | 3 | String get_name() const override { return "avg"; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE8get_nameB5cxx11Ev Line | Count | Source | 169 | 2 | String get_name() const override { return "avg"; } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev Line | Count | Source | 169 | 1 | String get_name() const override { return "avg"; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev Line | Count | Source | 169 | 132 | String get_name() const override { return "avg"; } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev Line | Count | Source | 169 | 105 | String get_name() const override { return "avg"; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE8get_nameB5cxx11Ev _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev Line | Count | Source | 169 | 39 | String get_name() const override { return "avg"; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE8get_nameB5cxx11Ev |
170 | | |
171 | 8.74k | DataTypePtr get_return_type() const override { |
172 | 8.74k | if constexpr (is_decimal(T)) { |
173 | 3.39k | return std::make_shared<ResultDataType>( |
174 | 3.39k | ResultDataType::max_precision(), |
175 | 3.39k | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); |
176 | 5.34k | } else { |
177 | 5.34k | return std::make_shared<ResultDataType>(); |
178 | 5.34k | } |
179 | 8.74k | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE15get_return_typeEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv Line | Count | Source | 171 | 256 | DataTypePtr get_return_type() const override { | 172 | 256 | if constexpr (is_decimal(T)) { | 173 | 256 | return std::make_shared<ResultDataType>( | 174 | 256 | ResultDataType::max_precision(), | 175 | 256 | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | | } else { | 177 | | return std::make_shared<ResultDataType>(); | 178 | | } | 179 | 256 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv Line | Count | Source | 171 | 18 | DataTypePtr get_return_type() const override { | 172 | 18 | if constexpr (is_decimal(T)) { | 173 | 18 | return std::make_shared<ResultDataType>( | 174 | 18 | ResultDataType::max_precision(), | 175 | 18 | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | | } else { | 177 | | return std::make_shared<ResultDataType>(); | 178 | | } | 179 | 18 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE15get_return_typeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv Line | Count | Source | 171 | 2.33k | DataTypePtr get_return_type() const override { | 172 | 2.33k | if constexpr (is_decimal(T)) { | 173 | 2.33k | return std::make_shared<ResultDataType>( | 174 | 2.33k | ResultDataType::max_precision(), | 175 | 2.33k | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | | } else { | 177 | | return std::make_shared<ResultDataType>(); | 178 | | } | 179 | 2.33k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv Line | Count | Source | 171 | 20 | DataTypePtr get_return_type() const override { | 172 | 20 | if constexpr (is_decimal(T)) { | 173 | 20 | return std::make_shared<ResultDataType>( | 174 | 20 | ResultDataType::max_precision(), | 175 | 20 | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | | } else { | 177 | | return std::make_shared<ResultDataType>(); | 178 | | } | 179 | 20 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE15get_return_typeEv Line | Count | Source | 171 | 385 | DataTypePtr get_return_type() const override { | 172 | 385 | if constexpr (is_decimal(T)) { | 173 | 385 | return std::make_shared<ResultDataType>( | 174 | 385 | ResultDataType::max_precision(), | 175 | 385 | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | | } else { | 177 | | return std::make_shared<ResultDataType>(); | 178 | | } | 179 | 385 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv Line | Count | Source | 171 | 92 | DataTypePtr get_return_type() const override { | 172 | 92 | if constexpr (is_decimal(T)) { | 173 | 92 | return std::make_shared<ResultDataType>( | 174 | 92 | ResultDataType::max_precision(), | 175 | 92 | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | | } else { | 177 | | return std::make_shared<ResultDataType>(); | 178 | | } | 179 | 92 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE15get_return_typeEv Line | Count | Source | 171 | 295 | DataTypePtr get_return_type() const override { | 172 | 295 | if constexpr (is_decimal(T)) { | 173 | 295 | return std::make_shared<ResultDataType>( | 174 | 295 | ResultDataType::max_precision(), | 175 | 295 | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | | } else { | 177 | | return std::make_shared<ResultDataType>(); | 178 | | } | 179 | 295 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv Line | Count | Source | 171 | 380 | DataTypePtr get_return_type() const override { | 172 | | if constexpr (is_decimal(T)) { | 173 | | return std::make_shared<ResultDataType>( | 174 | | ResultDataType::max_precision(), | 175 | | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | 380 | } else { | 177 | 380 | return std::make_shared<ResultDataType>(); | 178 | 380 | } | 179 | 380 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv Line | Count | Source | 171 | 187 | DataTypePtr get_return_type() const override { | 172 | | if constexpr (is_decimal(T)) { | 173 | | return std::make_shared<ResultDataType>( | 174 | | ResultDataType::max_precision(), | 175 | | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | 187 | } else { | 177 | 187 | return std::make_shared<ResultDataType>(); | 178 | 187 | } | 179 | 187 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv Line | Count | Source | 171 | 2.31k | DataTypePtr get_return_type() const override { | 172 | | if constexpr (is_decimal(T)) { | 173 | | return std::make_shared<ResultDataType>( | 174 | | ResultDataType::max_precision(), | 175 | | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | 2.31k | } else { | 177 | 2.31k | return std::make_shared<ResultDataType>(); | 178 | 2.31k | } | 179 | 2.31k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv Line | Count | Source | 171 | 1.19k | DataTypePtr get_return_type() const override { | 172 | | if constexpr (is_decimal(T)) { | 173 | | return std::make_shared<ResultDataType>( | 174 | | ResultDataType::max_precision(), | 175 | | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | 1.19k | } else { | 177 | 1.19k | return std::make_shared<ResultDataType>(); | 178 | 1.19k | } | 179 | 1.19k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE15get_return_typeEv Line | Count | Source | 171 | 97 | DataTypePtr get_return_type() const override { | 172 | | if constexpr (is_decimal(T)) { | 173 | | return std::make_shared<ResultDataType>( | 174 | | ResultDataType::max_precision(), | 175 | | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | 97 | } else { | 177 | 97 | return std::make_shared<ResultDataType>(); | 178 | 97 | } | 179 | 97 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv Line | Count | Source | 171 | 1.09k | DataTypePtr get_return_type() const override { | 172 | | if constexpr (is_decimal(T)) { | 173 | | return std::make_shared<ResultDataType>( | 174 | | ResultDataType::max_precision(), | 175 | | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | 1.09k | } else { | 177 | 1.09k | return std::make_shared<ResultDataType>(); | 178 | 1.09k | } | 179 | 1.09k | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE15get_return_typeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE15get_return_typeEv Line | Count | Source | 171 | 72 | DataTypePtr get_return_type() const override { | 172 | | if constexpr (is_decimal(T)) { | 173 | | return std::make_shared<ResultDataType>( | 174 | | ResultDataType::max_precision(), | 175 | | std::max(DEFAULT_MIN_AVG_DECIMAL128_SCALE, output_scale)); | 176 | 72 | } else { | 177 | 72 | return std::make_shared<ResultDataType>(); | 178 | 72 | } | 179 | 72 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE15get_return_typeEv |
180 | | |
181 | 1 | 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 _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv Line | Count | Source | 181 | 1 | bool is_trivial() const override { return true; } |
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_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE10is_trivialEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE10is_trivialEv |
182 | | |
183 | | template <bool is_add> |
184 | | NO_SANITIZE_UNDEFINED void update_value(AggregateDataPtr __restrict place, |
185 | 9.57M | const IColumn** columns, ssize_t row_num) const { |
186 | 9.57M | ALLOW_FP_REASSOCIATION |
187 | 9.57M | const auto& column = |
188 | 9.57M | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); |
189 | 9.57M | if constexpr (is_add) { |
190 | 9.57M | if constexpr (T == TYPE_DECIMALV2) { |
191 | 0 | this->data(place).sum += column.get_data()[row_num]; |
192 | 7.76M | } else if constexpr (is_decimal(T)) { |
193 | 7.76M | this->data(place).sum += column.get_data()[row_num].value; |
194 | 7.76M | } else { |
195 | 1.80M | this->data(place).sum += (DataType)column.get_data()[row_num]; |
196 | 1.80M | } |
197 | 9.57M | ++this->data(place).count; |
198 | 9.57M | } else { |
199 | 120 | if constexpr (T == TYPE_DECIMALV2) { |
200 | 0 | this->data(place).sum += -column.get_data()[row_num]; |
201 | 22 | } else if constexpr (is_decimal(T)) { |
202 | 22 | this->data(place).sum -= column.get_data()[row_num].value; |
203 | 98 | } else { |
204 | 98 | this->data(place).sum -= (DataType)column.get_data()[row_num]; |
205 | 98 | } |
206 | 120 | --this->data(place).count; |
207 | 120 | } |
208 | 9.57M | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 181 | const IColumn** columns, ssize_t row_num) const { | 186 | 181 | ALLOW_FP_REASSOCIATION | 187 | 181 | const auto& column = | 188 | 181 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 181 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | 181 | } else if constexpr (is_decimal(T)) { | 193 | 181 | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | 181 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 181 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 20 | const IColumn** columns, ssize_t row_num) const { | 186 | 20 | ALLOW_FP_REASSOCIATION | 187 | 20 | const auto& column = | 188 | 20 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | | ++this->data(place).count; | 198 | 20 | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | 20 | } else if constexpr (is_decimal(T)) { | 202 | 20 | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | 20 | --this->data(place).count; | 207 | 20 | } | 208 | 20 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 11 | const IColumn** columns, ssize_t row_num) const { | 186 | 11 | ALLOW_FP_REASSOCIATION | 187 | 11 | const auto& column = | 188 | 11 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 11 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | 11 | } else if constexpr (is_decimal(T)) { | 193 | 11 | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | 11 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 11 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 7.76M | const IColumn** columns, ssize_t row_num) const { | 186 | 7.76M | ALLOW_FP_REASSOCIATION | 187 | 7.76M | const auto& column = | 188 | 7.76M | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 7.76M | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | 7.76M | } else if constexpr (is_decimal(T)) { | 193 | 7.76M | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | 7.76M | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 7.76M | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 48 | const IColumn** columns, ssize_t row_num) const { | 186 | 48 | ALLOW_FP_REASSOCIATION | 187 | 48 | const auto& column = | 188 | 48 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 48 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | 48 | } else if constexpr (is_decimal(T)) { | 193 | 48 | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | 48 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 48 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 143 | const IColumn** columns, ssize_t row_num) const { | 186 | 143 | ALLOW_FP_REASSOCIATION | 187 | 143 | const auto& column = | 188 | 143 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 143 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | 143 | } else if constexpr (is_decimal(T)) { | 193 | 143 | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | 143 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 143 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 2 | const IColumn** columns, ssize_t row_num) const { | 186 | 2 | ALLOW_FP_REASSOCIATION | 187 | 2 | const auto& column = | 188 | 2 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | | ++this->data(place).count; | 198 | 2 | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | 2 | } else if constexpr (is_decimal(T)) { | 202 | 2 | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | 2 | --this->data(place).count; | 207 | 2 | } | 208 | 2 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 233 | const IColumn** columns, ssize_t row_num) const { | 186 | 233 | ALLOW_FP_REASSOCIATION | 187 | 233 | const auto& column = | 188 | 233 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 233 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | 233 | } else if constexpr (is_decimal(T)) { | 193 | 233 | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | 233 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 233 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 420 | const IColumn** columns, ssize_t row_num) const { | 186 | 420 | ALLOW_FP_REASSOCIATION | 187 | 420 | const auto& column = | 188 | 420 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 420 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | 420 | } else if constexpr (is_decimal(T)) { | 193 | 420 | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | 420 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 420 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 561 | const IColumn** columns, ssize_t row_num) const { | 186 | 561 | ALLOW_FP_REASSOCIATION | 187 | 561 | const auto& column = | 188 | 561 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 561 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | 561 | } else { | 195 | 561 | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | 561 | } | 197 | 561 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 561 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 483 | const IColumn** columns, ssize_t row_num) const { | 186 | 483 | ALLOW_FP_REASSOCIATION | 187 | 483 | const auto& column = | 188 | 483 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 483 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | 483 | } else { | 195 | 483 | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | 483 | } | 197 | 483 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 483 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 27.5k | const IColumn** columns, ssize_t row_num) const { | 186 | 27.5k | ALLOW_FP_REASSOCIATION | 187 | 27.5k | const auto& column = | 188 | 27.5k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 27.5k | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | 27.5k | } else { | 195 | 27.5k | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | 27.5k | } | 197 | 27.5k | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 27.5k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 12 | const IColumn** columns, ssize_t row_num) const { | 186 | 12 | ALLOW_FP_REASSOCIATION | 187 | 12 | const auto& column = | 188 | 12 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | | ++this->data(place).count; | 198 | 12 | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | 12 | } else { | 204 | 12 | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | 12 | } | 206 | 12 | --this->data(place).count; | 207 | 12 | } | 208 | 12 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 1.25k | const IColumn** columns, ssize_t row_num) const { | 186 | 1.25k | ALLOW_FP_REASSOCIATION | 187 | 1.25k | const auto& column = | 188 | 1.25k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 1.25k | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | 1.25k | } else { | 195 | 1.25k | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | 1.25k | } | 197 | 1.25k | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 1.25k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 86 | const IColumn** columns, ssize_t row_num) const { | 186 | 86 | ALLOW_FP_REASSOCIATION | 187 | 86 | const auto& column = | 188 | 86 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | | } else { | 195 | | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | | } | 197 | | ++this->data(place).count; | 198 | 86 | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | 86 | } else { | 204 | 86 | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | 86 | } | 206 | 86 | --this->data(place).count; | 207 | 86 | } | 208 | 86 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 227 | const IColumn** columns, ssize_t row_num) const { | 186 | 227 | ALLOW_FP_REASSOCIATION | 187 | 227 | const auto& column = | 188 | 227 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 227 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | 227 | } else { | 195 | 227 | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | 227 | } | 197 | 227 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 227 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 1.77M | const IColumn** columns, ssize_t row_num) const { | 186 | 1.77M | ALLOW_FP_REASSOCIATION | 187 | 1.77M | const auto& column = | 188 | 1.77M | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 1.77M | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | 1.77M | } else { | 195 | 1.77M | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | 1.77M | } | 197 | 1.77M | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 1.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_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Line | Count | Source | 185 | 315 | const IColumn** columns, ssize_t row_num) const { | 186 | 315 | ALLOW_FP_REASSOCIATION | 187 | 315 | const auto& column = | 188 | 315 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 189 | 315 | if constexpr (is_add) { | 190 | | if constexpr (T == TYPE_DECIMALV2) { | 191 | | this->data(place).sum += column.get_data()[row_num]; | 192 | | } else if constexpr (is_decimal(T)) { | 193 | | this->data(place).sum += column.get_data()[row_num].value; | 194 | 315 | } else { | 195 | 315 | this->data(place).sum += (DataType)column.get_data()[row_num]; | 196 | 315 | } | 197 | 315 | ++this->data(place).count; | 198 | | } else { | 199 | | if constexpr (T == TYPE_DECIMALV2) { | 200 | | this->data(place).sum += -column.get_data()[row_num]; | 201 | | } else if constexpr (is_decimal(T)) { | 202 | | this->data(place).sum -= column.get_data()[row_num].value; | 203 | | } else { | 204 | | this->data(place).sum -= (DataType)column.get_data()[row_num]; | 205 | | } | 206 | | --this->data(place).count; | 207 | | } | 208 | 315 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb1EEEvPcPPKNS_7IColumnEl Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE12update_valueILb0EEEvPcPPKNS_7IColumnEl |
209 | | |
210 | | void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num, |
211 | 9.54M | Arena&) const override { |
212 | 9.54M | update_value<true>(place, columns, row_num); |
213 | 9.54M | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 153 | Arena&) const override { | 212 | 153 | update_value<true>(place, columns, row_num); | 213 | 153 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 11 | Arena&) const override { | 212 | 11 | update_value<true>(place, columns, row_num); | 213 | 11 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 7.73M | Arena&) const override { | 212 | 7.73M | update_value<true>(place, columns, row_num); | 213 | 7.73M | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 48 | Arena&) const override { | 212 | 48 | update_value<true>(place, columns, row_num); | 213 | 48 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 139 | Arena&) const override { | 212 | 139 | update_value<true>(place, columns, row_num); | 213 | 139 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 233 | Arena&) const override { | 212 | 233 | update_value<true>(place, columns, row_num); | 213 | 233 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 421 | Arena&) const override { | 212 | 421 | update_value<true>(place, columns, row_num); | 213 | 421 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 560 | Arena&) const override { | 212 | 560 | update_value<true>(place, columns, row_num); | 213 | 560 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 483 | Arena&) const override { | 212 | 483 | update_value<true>(place, columns, row_num); | 213 | 483 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 27.4k | Arena&) const override { | 212 | 27.4k | update_value<true>(place, columns, row_num); | 213 | 27.4k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 921 | Arena&) const override { | 212 | 921 | update_value<true>(place, columns, row_num); | 213 | 921 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 227 | Arena&) const override { | 212 | 227 | update_value<true>(place, columns, row_num); | 213 | 227 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 1.77M | Arena&) const override { | 212 | 1.77M | update_value<true>(place, columns, row_num); | 213 | 1.77M | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 211 | 315 | Arena&) const override { | 212 | 315 | update_value<true>(place, columns, row_num); | 213 | 315 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE |
214 | | |
215 | 1.04k | void reset(AggregateDataPtr place) const override { |
216 | 1.04k | this->data(place).sum = {}; |
217 | 1.04k | this->data(place).count = 0; |
218 | 1.04k | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE5resetEPc Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc Line | Count | Source | 215 | 8 | void reset(AggregateDataPtr place) const override { | 216 | 8 | this->data(place).sum = {}; | 217 | 8 | this->data(place).count = 0; | 218 | 8 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc Line | Count | Source | 215 | 4 | void reset(AggregateDataPtr place) const override { | 216 | 4 | this->data(place).sum = {}; | 217 | 4 | this->data(place).count = 0; | 218 | 4 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5resetEPc _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc Line | Count | Source | 215 | 9 | void reset(AggregateDataPtr place) const override { | 216 | 9 | this->data(place).sum = {}; | 217 | 9 | this->data(place).count = 0; | 218 | 9 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc Line | Count | Source | 215 | 17 | void reset(AggregateDataPtr place) const override { | 216 | 17 | this->data(place).sum = {}; | 217 | 17 | this->data(place).count = 0; | 218 | 17 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5resetEPc Line | Count | Source | 215 | 31 | void reset(AggregateDataPtr place) const override { | 216 | 31 | this->data(place).sum = {}; | 217 | 31 | this->data(place).count = 0; | 218 | 31 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc Line | Count | Source | 215 | 20 | void reset(AggregateDataPtr place) const override { | 216 | 20 | this->data(place).sum = {}; | 217 | 20 | this->data(place).count = 0; | 218 | 20 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5resetEPc Line | Count | Source | 215 | 121 | void reset(AggregateDataPtr place) const override { | 216 | 121 | this->data(place).sum = {}; | 217 | 121 | this->data(place).count = 0; | 218 | 121 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc Line | Count | Source | 215 | 74 | void reset(AggregateDataPtr place) const override { | 216 | 74 | this->data(place).sum = {}; | 217 | 74 | this->data(place).count = 0; | 218 | 74 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc Line | Count | Source | 215 | 75 | void reset(AggregateDataPtr place) const override { | 216 | 75 | this->data(place).sum = {}; | 217 | 75 | this->data(place).count = 0; | 218 | 75 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc Line | Count | Source | 215 | 228 | void reset(AggregateDataPtr place) const override { | 216 | 228 | this->data(place).sum = {}; | 217 | 228 | this->data(place).count = 0; | 218 | 228 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc Line | Count | Source | 215 | 183 | void reset(AggregateDataPtr place) const override { | 216 | 183 | this->data(place).sum = {}; | 217 | 183 | this->data(place).count = 0; | 218 | 183 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5resetEPc Line | Count | Source | 215 | 61 | void reset(AggregateDataPtr place) const override { | 216 | 61 | this->data(place).sum = {}; | 217 | 61 | this->data(place).count = 0; | 218 | 61 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc Line | Count | Source | 215 | 143 | void reset(AggregateDataPtr place) const override { | 216 | 143 | this->data(place).sum = {}; | 217 | 143 | this->data(place).count = 0; | 218 | 143 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5resetEPc _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5resetEPc Line | Count | Source | 215 | 68 | void reset(AggregateDataPtr place) const override { | 216 | 68 | this->data(place).sum = {}; | 217 | 68 | this->data(place).count = 0; | 218 | 68 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5resetEPc |
219 | | |
220 | | NO_SANITIZE_UNDEFINED void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs, |
221 | 18.6k | Arena&) const override { |
222 | 18.6k | if constexpr (T == TYPE_DECIMALV2) { |
223 | 0 | this->data(place).sum += this->data(rhs).sum; |
224 | 1.74k | } else if constexpr (is_decimal(T)) { |
225 | 1.74k | this->data(place).sum += this->data(rhs).sum.value; |
226 | 16.8k | } else { |
227 | 16.8k | this->data(place).sum += this->data(rhs).sum; |
228 | 16.8k | } |
229 | 18.6k | this->data(place).count += this->data(rhs).count; |
230 | 18.6k | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5mergeEPcPKcRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 33 | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | 33 | } else if constexpr (is_decimal(T)) { | 225 | 33 | this->data(place).sum += this->data(rhs).sum.value; | 226 | | } else { | 227 | | this->data(place).sum += this->data(rhs).sum; | 228 | | } | 229 | 33 | this->data(place).count += this->data(rhs).count; | 230 | 33 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE5mergeEPcPKcRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 1.62k | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | 1.62k | } else if constexpr (is_decimal(T)) { | 225 | 1.62k | this->data(place).sum += this->data(rhs).sum.value; | 226 | | } else { | 227 | | this->data(place).sum += this->data(rhs).sum; | 228 | | } | 229 | 1.62k | this->data(place).count += this->data(rhs).count; | 230 | 1.62k | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 73 | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | 73 | } else if constexpr (is_decimal(T)) { | 225 | 73 | this->data(place).sum += this->data(rhs).sum.value; | 226 | | } else { | 227 | | this->data(place).sum += this->data(rhs).sum; | 228 | | } | 229 | 73 | this->data(place).count += this->data(rhs).count; | 230 | 73 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 18 | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | 18 | } else if constexpr (is_decimal(T)) { | 225 | 18 | this->data(place).sum += this->data(rhs).sum.value; | 226 | | } else { | 227 | | this->data(place).sum += this->data(rhs).sum; | 228 | | } | 229 | 18 | this->data(place).count += this->data(rhs).count; | 230 | 18 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 43 | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | | } else if constexpr (is_decimal(T)) { | 225 | | this->data(place).sum += this->data(rhs).sum.value; | 226 | 43 | } else { | 227 | 43 | this->data(place).sum += this->data(rhs).sum; | 228 | 43 | } | 229 | 43 | this->data(place).count += this->data(rhs).count; | 230 | 43 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 31 | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | | } else if constexpr (is_decimal(T)) { | 225 | | this->data(place).sum += this->data(rhs).sum.value; | 226 | 31 | } else { | 227 | 31 | this->data(place).sum += this->data(rhs).sum; | 228 | 31 | } | 229 | 31 | this->data(place).count += this->data(rhs).count; | 230 | 31 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 16.6k | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | | } else if constexpr (is_decimal(T)) { | 225 | | this->data(place).sum += this->data(rhs).sum.value; | 226 | 16.6k | } else { | 227 | 16.6k | this->data(place).sum += this->data(rhs).sum; | 228 | 16.6k | } | 229 | 16.6k | this->data(place).count += this->data(rhs).count; | 230 | 16.6k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 95 | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | | } else if constexpr (is_decimal(T)) { | 225 | | this->data(place).sum += this->data(rhs).sum.value; | 226 | 95 | } else { | 227 | 95 | this->data(place).sum += this->data(rhs).sum; | 228 | 95 | } | 229 | 95 | this->data(place).count += this->data(rhs).count; | 230 | 95 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE5mergeEPcPKcRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 221 | 81 | Arena&) const override { | 222 | | if constexpr (T == TYPE_DECIMALV2) { | 223 | | this->data(place).sum += this->data(rhs).sum; | 224 | | } else if constexpr (is_decimal(T)) { | 225 | | this->data(place).sum += this->data(rhs).sum.value; | 226 | 81 | } else { | 227 | 81 | this->data(place).sum += this->data(rhs).sum; | 228 | 81 | } | 229 | 81 | this->data(place).count += this->data(rhs).count; | 230 | 81 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE5mergeEPcPKcRNS_5ArenaE |
231 | | |
232 | 8.19k | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { |
233 | 8.19k | this->data(place).write(buf); |
234 | 8.19k | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE9serializeEPKcRNS_14BufferWritableE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 232 | 3 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 233 | 3 | this->data(place).write(buf); | 234 | 3 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 232 | 10 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 233 | 10 | this->data(place).write(buf); | 234 | 10 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 232 | 13 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 233 | 13 | this->data(place).write(buf); | 234 | 13 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 232 | 8.15k | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 233 | 8.15k | this->data(place).write(buf); | 234 | 8.15k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 232 | 18 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 233 | 18 | this->data(place).write(buf); | 234 | 18 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE9serializeEPKcRNS_14BufferWritableE |
235 | | |
236 | | void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf, |
237 | 8.21k | Arena&) const override { |
238 | 8.21k | this->data(place).read(buf); |
239 | 8.21k | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 237 | 3 | Arena&) const override { | 238 | 3 | this->data(place).read(buf); | 239 | 3 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 237 | 10 | Arena&) const override { | 238 | 10 | this->data(place).read(buf); | 239 | 10 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 237 | 13 | Arena&) const override { | 238 | 13 | this->data(place).read(buf); | 239 | 13 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 237 | 8.15k | Arena&) const override { | 238 | 8.15k | this->data(place).read(buf); | 239 | 8.15k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 237 | 30 | Arena&) const override { | 238 | 30 | this->data(place).read(buf); | 239 | 30 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE |
240 | | |
241 | 59.6k | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { |
242 | 59.6k | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); |
243 | 59.6k | if constexpr (is_decimal(T)) { |
244 | 57.4k | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); |
245 | 57.4k | } else { |
246 | 2.14k | column.get_data().push_back(this->data(place).template result<ResultType>()); |
247 | 2.14k | } |
248 | 59.6k | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE18insert_result_intoEPKcRNS_7IColumnE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE18insert_result_intoEPKcRNS_7IColumnE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 84 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 84 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | 84 | if constexpr (is_decimal(T)) { | 244 | 84 | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | | } else { | 246 | | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | | } | 248 | 84 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 5 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 5 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | 5 | if constexpr (is_decimal(T)) { | 244 | 5 | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | | } else { | 246 | | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | | } | 248 | 5 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE18insert_result_intoEPKcRNS_7IColumnE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 57.1k | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 57.1k | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | 57.1k | if constexpr (is_decimal(T)) { | 244 | 57.1k | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | | } else { | 246 | | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | | } | 248 | 57.1k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 18 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 18 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | 18 | if constexpr (is_decimal(T)) { | 244 | 18 | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | | } else { | 246 | | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | | } | 248 | 18 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 64 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 64 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | 64 | if constexpr (is_decimal(T)) { | 244 | 64 | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | | } else { | 246 | | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | | } | 248 | 64 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 20 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 20 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | 20 | if constexpr (is_decimal(T)) { | 244 | 20 | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | | } else { | 246 | | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | | } | 248 | 20 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 142 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 142 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | 142 | if constexpr (is_decimal(T)) { | 244 | 142 | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | | } else { | 246 | | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | | } | 248 | 142 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 146 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 146 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | | if constexpr (is_decimal(T)) { | 244 | | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | 146 | } else { | 246 | 146 | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | 146 | } | 248 | 146 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 118 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 118 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | | if constexpr (is_decimal(T)) { | 244 | | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | 118 | } else { | 246 | 118 | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | 118 | } | 248 | 118 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 708 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 708 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | | if constexpr (is_decimal(T)) { | 244 | | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | 708 | } else { | 246 | 708 | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | 708 | } | 248 | 708 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 642 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 642 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | | if constexpr (is_decimal(T)) { | 244 | | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | 642 | } else { | 246 | 642 | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | 642 | } | 248 | 642 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 60 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 60 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | | if constexpr (is_decimal(T)) { | 244 | | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | 60 | } else { | 246 | 60 | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | 60 | } | 248 | 60 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 409 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 409 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | | if constexpr (is_decimal(T)) { | 244 | | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | 409 | } else { | 246 | 409 | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | 409 | } | 248 | 409 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE18insert_result_intoEPKcRNS_7IColumnE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 241 | 63 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 242 | 63 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 243 | | if constexpr (is_decimal(T)) { | 244 | | column.get_data().push_back(this->data(place).template result<ResultType>(multiplier)); | 245 | 63 | } else { | 246 | 63 | column.get_data().push_back(this->data(place).template result<ResultType>()); | 247 | 63 | } | 248 | 63 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE18insert_result_intoEPKcRNS_7IColumnE |
249 | | |
250 | | void serialize_to_column(const std::vector<AggregateDataPtr>& places, size_t offset, |
251 | 2.25k | MutableColumnPtr& dst, const size_t num_rows) const override { |
252 | 2.25k | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); |
253 | 2.25k | col.set_item_size(sizeof(Data)); |
254 | 2.25k | col.resize(num_rows); |
255 | 2.25k | auto* data = col.get_data().data(); |
256 | 20.8k | for (size_t i = 0; i != num_rows; ++i) { |
257 | 18.5k | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = |
258 | 18.5k | *reinterpret_cast<Data*>(places[i] + offset); |
259 | 18.5k | } |
260 | 2.25k | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 22 | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 22 | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 22 | col.set_item_size(sizeof(Data)); | 254 | 22 | col.resize(num_rows); | 255 | 22 | auto* data = col.get_data().data(); | 256 | 80 | for (size_t i = 0; i != num_rows; ++i) { | 257 | 58 | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 58 | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 58 | } | 260 | 22 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 1.37k | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 1.37k | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 1.37k | col.set_item_size(sizeof(Data)); | 254 | 1.37k | col.resize(num_rows); | 255 | 1.37k | auto* data = col.get_data().data(); | 256 | 2.99k | for (size_t i = 0; i != num_rows; ++i) { | 257 | 1.61k | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 1.61k | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 1.61k | } | 260 | 1.37k | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 111 | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 111 | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 111 | col.set_item_size(sizeof(Data)); | 254 | 111 | col.resize(num_rows); | 255 | 111 | auto* data = col.get_data().data(); | 256 | 174 | for (size_t i = 0; i != num_rows; ++i) { | 257 | 63 | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 63 | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 63 | } | 260 | 111 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 10 | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 10 | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 10 | col.set_item_size(sizeof(Data)); | 254 | 10 | col.resize(num_rows); | 255 | 10 | auto* data = col.get_data().data(); | 256 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 257 | 2 | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 2 | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 2 | } | 260 | 10 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 38 | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 38 | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 38 | col.set_item_size(sizeof(Data)); | 254 | 38 | col.resize(num_rows); | 255 | 38 | auto* data = col.get_data().data(); | 256 | 109 | for (size_t i = 0; i != num_rows; ++i) { | 257 | 71 | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 71 | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 71 | } | 260 | 38 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 29 | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 29 | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 29 | col.set_item_size(sizeof(Data)); | 254 | 29 | col.resize(num_rows); | 255 | 29 | auto* data = col.get_data().data(); | 256 | 101 | for (size_t i = 0; i != num_rows; ++i) { | 257 | 72 | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 72 | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 72 | } | 260 | 29 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 499 | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 499 | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 499 | col.set_item_size(sizeof(Data)); | 254 | 499 | col.resize(num_rows); | 255 | 499 | auto* data = col.get_data().data(); | 256 | 16.9k | for (size_t i = 0; i != num_rows; ++i) { | 257 | 16.4k | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 16.4k | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 16.4k | } | 260 | 499 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 66 | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 66 | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 66 | col.set_item_size(sizeof(Data)); | 254 | 66 | col.resize(num_rows); | 255 | 66 | auto* data = col.get_data().data(); | 256 | 157 | for (size_t i = 0; i != num_rows; ++i) { | 257 | 91 | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 91 | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 91 | } | 260 | 66 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Line | Count | Source | 251 | 102 | MutableColumnPtr& dst, const size_t num_rows) const override { | 252 | 102 | auto& col = assert_cast<ColumnFixedLengthObject&>(*dst); | 253 | 102 | col.set_item_size(sizeof(Data)); | 254 | 102 | col.resize(num_rows); | 255 | 102 | auto* data = col.get_data().data(); | 256 | 210 | for (size_t i = 0; i != num_rows; ++i) { | 257 | 108 | *reinterpret_cast<Data*>(&data[sizeof(Data) * i]) = | 258 | 108 | *reinterpret_cast<Data*>(places[i] + offset); | 259 | 108 | } | 260 | 102 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19serialize_to_columnERKSt6vectorIPcSaIS6_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISC_EEm |
261 | | |
262 | | void streaming_agg_serialize_to_column(const IColumn** columns, MutableColumnPtr& dst, |
263 | 79 | const size_t num_rows, Arena&) const override { |
264 | 79 | auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data(); |
265 | 79 | auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst); |
266 | 79 | dst_col.set_item_size(sizeof(Data)); |
267 | 79 | dst_col.resize(num_rows); |
268 | 79 | auto* data = dst_col.get_data().data(); |
269 | 12.3k | for (size_t i = 0; i != num_rows; ++i) { |
270 | 12.2k | auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]); |
271 | 12.2k | state.sum = typename Data::ResultType(src_data[i]); |
272 | 12.2k | state.count = 1; |
273 | 12.2k | } |
274 | 79 | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Line | Count | Source | 263 | 1 | const size_t num_rows, Arena&) const override { | 264 | 1 | auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data(); | 265 | 1 | auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst); | 266 | 1 | dst_col.set_item_size(sizeof(Data)); | 267 | 1 | dst_col.resize(num_rows); | 268 | 1 | auto* data = dst_col.get_data().data(); | 269 | 2 | for (size_t i = 0; i != num_rows; ++i) { | 270 | 1 | auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]); | 271 | 1 | state.sum = typename Data::ResultType(src_data[i]); | 272 | 1 | state.count = 1; | 273 | 1 | } | 274 | 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 | 263 | 75 | const size_t num_rows, Arena&) const override { | 264 | 75 | auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data(); | 265 | 75 | auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst); | 266 | 75 | dst_col.set_item_size(sizeof(Data)); | 267 | 75 | dst_col.resize(num_rows); | 268 | 75 | auto* data = dst_col.get_data().data(); | 269 | 12.3k | for (size_t i = 0; i != num_rows; ++i) { | 270 | 12.2k | auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]); | 271 | 12.2k | state.sum = typename Data::ResultType(src_data[i]); | 272 | 12.2k | state.count = 1; | 273 | 12.2k | } | 274 | 75 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Line | Count | Source | 263 | 3 | const size_t num_rows, Arena&) const override { | 264 | 3 | auto* src_data = assert_cast<const ColVecType&>(*columns[0]).get_data().data(); | 265 | 3 | auto& dst_col = assert_cast<ColumnFixedLengthObject&>(*dst); | 266 | 3 | dst_col.set_item_size(sizeof(Data)); | 267 | 3 | dst_col.resize(num_rows); | 268 | 3 | auto* data = dst_col.get_data().data(); | 269 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 270 | 9 | auto& state = *reinterpret_cast<Data*>(&data[sizeof(Data) * i]); | 271 | 9 | state.sum = typename Data::ResultType(src_data[i]); | 272 | 9 | state.count = 1; | 273 | 9 | } | 274 | 3 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS5_E11mutable_ptrIS5_EEmRNS_5ArenaE |
275 | | |
276 | | NO_SANITIZE_UNDEFINED void deserialize_and_merge_from_column_range( |
277 | | AggregateDataPtr __restrict place, const IColumn& column, size_t begin, size_t end, |
278 | 7.89k | Arena&) const override { |
279 | 7.89k | ALLOW_FP_REASSOCIATION |
280 | 18.4E | DCHECK(end <= column.size() && begin <= end) |
281 | 18.4E | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); |
282 | 7.89k | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); |
283 | 7.89k | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); |
284 | 27.7k | for (size_t i = begin; i <= end; ++i) { |
285 | 19.8k | this->data(place).sum += data[i].sum; |
286 | 19.8k | this->data(place).count += data[i].count; |
287 | 19.8k | } |
288 | 7.89k | } 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 | 278 | 36 | Arena&) const override { | 279 | 36 | ALLOW_FP_REASSOCIATION | 280 | 36 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 36 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 36 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 80 | for (size_t i = begin; i <= end; ++i) { | 285 | 44 | this->data(place).sum += data[i].sum; | 286 | 44 | this->data(place).count += data[i].count; | 287 | 44 | } | 288 | 36 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 1 | Arena&) const override { | 279 | 1 | ALLOW_FP_REASSOCIATION | 280 | 1 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 1 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 1 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 2 | for (size_t i = begin; i <= end; ++i) { | 285 | 1 | this->data(place).sum += data[i].sum; | 286 | 1 | this->data(place).count += data[i].count; | 287 | 1 | } | 288 | 1 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 34 | Arena&) const override { | 279 | 34 | ALLOW_FP_REASSOCIATION | 280 | 34 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 34 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 34 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 68 | for (size_t i = begin; i <= end; ++i) { | 285 | 34 | this->data(place).sum += data[i].sum; | 286 | 34 | this->data(place).count += data[i].count; | 287 | 34 | } | 288 | 34 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 1 | Arena&) const override { | 279 | 1 | ALLOW_FP_REASSOCIATION | 280 | 1 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 1 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 1 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 2 | for (size_t i = begin; i <= end; ++i) { | 285 | 1 | this->data(place).sum += data[i].sum; | 286 | 1 | this->data(place).count += data[i].count; | 287 | 1 | } | 288 | 1 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 6 | Arena&) const override { | 279 | 6 | ALLOW_FP_REASSOCIATION | 280 | 6 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 6 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 6 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 12 | for (size_t i = begin; i <= end; ++i) { | 285 | 6 | this->data(place).sum += data[i].sum; | 286 | 6 | this->data(place).count += data[i].count; | 287 | 6 | } | 288 | 6 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 9 | Arena&) const override { | 279 | 9 | ALLOW_FP_REASSOCIATION | 280 | 9 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 9 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 9 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 18 | for (size_t i = begin; i <= end; ++i) { | 285 | 9 | this->data(place).sum += data[i].sum; | 286 | 9 | this->data(place).count += data[i].count; | 287 | 9 | } | 288 | 9 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 54 | Arena&) const override { | 279 | 54 | ALLOW_FP_REASSOCIATION | 280 | 54 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 54 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 54 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 116 | for (size_t i = begin; i <= end; ++i) { | 285 | 62 | this->data(place).sum += data[i].sum; | 286 | 62 | this->data(place).count += data[i].count; | 287 | 62 | } | 288 | 54 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 48 | Arena&) const override { | 279 | 48 | ALLOW_FP_REASSOCIATION | 280 | 48 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 48 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 48 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 104 | for (size_t i = begin; i <= end; ++i) { | 285 | 56 | this->data(place).sum += data[i].sum; | 286 | 56 | this->data(place).count += data[i].count; | 287 | 56 | } | 288 | 48 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 7.57k | Arena&) const override { | 279 | 7.57k | ALLOW_FP_REASSOCIATION | 280 | 18.4E | DCHECK(end <= column.size() && begin <= end) | 281 | 18.4E | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 7.57k | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 7.57k | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 27.0k | for (size_t i = begin; i <= end; ++i) { | 285 | 19.5k | this->data(place).sum += data[i].sum; | 286 | 19.5k | this->data(place).count += data[i].count; | 287 | 19.5k | } | 288 | 7.57k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 47 | Arena&) const override { | 279 | 47 | ALLOW_FP_REASSOCIATION | 280 | 47 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 47 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 47 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 108 | for (size_t i = begin; i <= end; ++i) { | 285 | 61 | this->data(place).sum += data[i].sum; | 286 | 61 | this->data(place).count += data[i].count; | 287 | 61 | } | 288 | 47 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 1 | Arena&) const override { | 279 | 1 | ALLOW_FP_REASSOCIATION | 280 | 1 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 1 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 1 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 2 | for (size_t i = begin; i <= end; ++i) { | 285 | 1 | this->data(place).sum += data[i].sum; | 286 | 1 | this->data(place).count += data[i].count; | 287 | 1 | } | 288 | 1 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 278 | 83 | Arena&) const override { | 279 | 83 | ALLOW_FP_REASSOCIATION | 280 | 83 | DCHECK(end <= column.size() && begin <= end) | 281 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 282 | 83 | auto& col = assert_cast<const ColumnFixedLengthObject&>(column); | 283 | 83 | auto* data = reinterpret_cast<const Data*>(col.get_data().data()); | 284 | 174 | for (size_t i = begin; i <= end; ++i) { | 285 | 91 | this->data(place).sum += data[i].sum; | 286 | 91 | this->data(place).count += data[i].count; | 287 | 91 | } | 288 | 83 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE |
289 | | |
290 | | void deserialize_and_merge_vec(const AggregateDataPtr* places, size_t offset, |
291 | | AggregateDataPtr rhs, const IColumn* column, Arena& arena, |
292 | 866 | const size_t num_rows) const override { |
293 | 866 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); |
294 | 866 | const auto* data = col.get_data().data(); |
295 | 866 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); |
296 | 866 | } 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 | 292 | 12 | const size_t num_rows) const override { | 293 | 12 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 12 | const auto* data = col.get_data().data(); | 295 | 12 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 12 | } |
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 | 292 | 438 | const size_t num_rows) const override { | 293 | 438 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 438 | const auto* data = col.get_data().data(); | 295 | 438 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 438 | } |
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 | 292 | 61 | const size_t num_rows) const override { | 293 | 61 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 61 | const auto* data = col.get_data().data(); | 295 | 61 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 61 | } |
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 | 292 | 2 | const size_t num_rows) const override { | 293 | 2 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 2 | const auto* data = col.get_data().data(); | 295 | 2 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 2 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 292 | 19 | const size_t num_rows) const override { | 293 | 19 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 19 | const auto* data = col.get_data().data(); | 295 | 19 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 19 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 292 | 11 | const size_t num_rows) const override { | 293 | 11 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 11 | const auto* data = col.get_data().data(); | 295 | 11 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 11 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 292 | 247 | const size_t num_rows) const override { | 293 | 247 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 247 | const auto* data = col.get_data().data(); | 295 | 247 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 247 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 292 | 32 | const size_t num_rows) const override { | 293 | 32 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 32 | const auto* data = col.get_data().data(); | 295 | 32 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 32 | } |
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 | 292 | 44 | const size_t num_rows) const override { | 293 | 44 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 294 | 44 | const auto* data = col.get_data().data(); | 295 | 44 | this->merge_vec(places, offset, AggregateDataPtr(data), arena, num_rows); | 296 | 44 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE25deserialize_and_merge_vecEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm |
297 | | |
298 | | void deserialize_and_merge_vec_selected(const AggregateDataPtr* places, size_t offset, |
299 | | AggregateDataPtr rhs, const IColumn* column, |
300 | 1 | Arena& arena, const size_t num_rows) const override { |
301 | 1 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); |
302 | 1 | const auto* data = col.get_data().data(); |
303 | 1 | this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows); |
304 | 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 | 300 | 1 | Arena& arena, const size_t num_rows) const override { | 301 | 1 | const auto& col = assert_cast<const ColumnFixedLengthObject&>(*column); | 302 | 1 | const auto* data = col.get_data().data(); | 303 | 1 | this->merge_vec_selected(places, offset, AggregateDataPtr(data), arena, num_rows); | 304 | 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_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE34deserialize_and_merge_vec_selectedEPKPcmS5_PKNS_7IColumnERNS_5ArenaEm |
305 | | |
306 | | void serialize_without_key_to_column(ConstAggregateDataPtr __restrict place, |
307 | 351 | IColumn& to) const override { |
308 | 351 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); |
309 | 351 | col.set_item_size(sizeof(Data)); |
310 | 351 | size_t old_size = col.size(); |
311 | 351 | col.resize(old_size + 1); |
312 | 351 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); |
313 | 351 | } 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 | 307 | 20 | IColumn& to) const override { | 308 | 20 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 20 | col.set_item_size(sizeof(Data)); | 310 | 20 | size_t old_size = col.size(); | 311 | 20 | col.resize(old_size + 1); | 312 | 20 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 20 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 1 | IColumn& to) const override { | 308 | 1 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 1 | col.set_item_size(sizeof(Data)); | 310 | 1 | size_t old_size = col.size(); | 311 | 1 | col.resize(old_size + 1); | 312 | 1 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 1 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 34 | IColumn& to) const override { | 308 | 34 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 34 | col.set_item_size(sizeof(Data)); | 310 | 34 | size_t old_size = col.size(); | 311 | 34 | col.resize(old_size + 1); | 312 | 34 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 34 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 1 | IColumn& to) const override { | 308 | 1 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 1 | col.set_item_size(sizeof(Data)); | 310 | 1 | size_t old_size = col.size(); | 311 | 1 | col.resize(old_size + 1); | 312 | 1 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 1 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 6 | IColumn& to) const override { | 308 | 6 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 6 | col.set_item_size(sizeof(Data)); | 310 | 6 | size_t old_size = col.size(); | 311 | 6 | col.resize(old_size + 1); | 312 | 6 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 6 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 9 | IColumn& to) const override { | 308 | 9 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 9 | col.set_item_size(sizeof(Data)); | 310 | 9 | size_t old_size = col.size(); | 311 | 9 | col.resize(old_size + 1); | 312 | 9 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 9 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 35 | IColumn& to) const override { | 308 | 35 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 35 | col.set_item_size(sizeof(Data)); | 310 | 35 | size_t old_size = col.size(); | 311 | 35 | col.resize(old_size + 1); | 312 | 35 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 35 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 17 | IColumn& to) const override { | 308 | 17 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 17 | col.set_item_size(sizeof(Data)); | 310 | 17 | size_t old_size = col.size(); | 311 | 17 | col.resize(old_size + 1); | 312 | 17 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 17 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 131 | IColumn& to) const override { | 308 | 131 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 131 | col.set_item_size(sizeof(Data)); | 310 | 131 | size_t old_size = col.size(); | 311 | 131 | col.resize(old_size + 1); | 312 | 131 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 131 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 31 | IColumn& to) const override { | 308 | 31 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 31 | col.set_item_size(sizeof(Data)); | 310 | 31 | size_t old_size = col.size(); | 311 | 31 | col.resize(old_size + 1); | 312 | 31 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 31 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 1 | IColumn& to) const override { | 308 | 1 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 1 | col.set_item_size(sizeof(Data)); | 310 | 1 | size_t old_size = col.size(); | 311 | 1 | col.resize(old_size + 1); | 312 | 1 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 1 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 307 | 65 | IColumn& to) const override { | 308 | 65 | auto& col = assert_cast<ColumnFixedLengthObject&>(to); | 309 | 65 | col.set_item_size(sizeof(Data)); | 310 | 65 | size_t old_size = col.size(); | 311 | 65 | col.resize(old_size + 1); | 312 | 65 | *(reinterpret_cast<Data*>(col.get_data().data()) + old_size) = this->data(place); | 313 | 65 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE |
314 | | |
315 | 2.97k | MutableColumnPtr create_serialize_column() const override { |
316 | 2.97k | return ColumnFixedLengthObject::create(sizeof(Data)); |
317 | 2.97k | } 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 | 315 | 42 | MutableColumnPtr create_serialize_column() const override { | 316 | 42 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 42 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv Line | Count | Source | 315 | 1 | MutableColumnPtr create_serialize_column() const override { | 316 | 1 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 1 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE23create_serialize_columnEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv Line | Count | Source | 315 | 1.39k | MutableColumnPtr create_serialize_column() const override { | 316 | 1.39k | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 1.39k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv Line | Count | Source | 315 | 1 | MutableColumnPtr create_serialize_column() const override { | 316 | 1 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 1 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE23create_serialize_columnEv Line | Count | Source | 315 | 108 | MutableColumnPtr create_serialize_column() const override { | 316 | 108 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 108 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv Line | Count | Source | 315 | 6 | MutableColumnPtr create_serialize_column() const override { | 316 | 6 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 6 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE23create_serialize_columnEv Line | Count | Source | 315 | 19 | MutableColumnPtr create_serialize_column() const override { | 316 | 19 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 19 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv Line | Count | Source | 315 | 78 | MutableColumnPtr create_serialize_column() const override { | 316 | 78 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 78 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv Line | Count | Source | 315 | 47 | MutableColumnPtr create_serialize_column() const override { | 316 | 47 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 47 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv Line | Count | Source | 315 | 1.00k | MutableColumnPtr create_serialize_column() const override { | 316 | 1.00k | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 1.00k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv Line | Count | Source | 315 | 100 | MutableColumnPtr create_serialize_column() const override { | 316 | 100 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 100 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE23create_serialize_columnEv Line | Count | Source | 315 | 1 | MutableColumnPtr create_serialize_column() const override { | 316 | 1 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 1 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv Line | Count | Source | 315 | 167 | MutableColumnPtr create_serialize_column() const override { | 316 | 167 | return ColumnFixedLengthObject::create(sizeof(Data)); | 317 | 167 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE23create_serialize_columnEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE23create_serialize_columnEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE23create_serialize_columnEv |
318 | | |
319 | 3.04k | DataTypePtr get_serialized_type() const override { |
320 | 3.04k | return std::make_shared<DataTypeFixedLengthObject>(); |
321 | 3.04k | } 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 | 319 | 42 | DataTypePtr get_serialized_type() const override { | 320 | 42 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 42 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv Line | Count | Source | 319 | 1 | DataTypePtr get_serialized_type() const override { | 320 | 1 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 1 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE19get_serialized_typeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv Line | Count | Source | 319 | 1.41k | DataTypePtr get_serialized_type() const override { | 320 | 1.41k | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 1.41k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv Line | Count | Source | 319 | 1 | DataTypePtr get_serialized_type() const override { | 320 | 1 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 1 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE19get_serialized_typeEv Line | Count | Source | 319 | 113 | DataTypePtr get_serialized_type() const override { | 320 | 113 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 113 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv Line | Count | Source | 319 | 6 | DataTypePtr get_serialized_type() const override { | 320 | 6 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 6 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE19get_serialized_typeEv Line | Count | Source | 319 | 19 | DataTypePtr get_serialized_type() const override { | 320 | 19 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 19 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv Line | Count | Source | 319 | 78 | DataTypePtr get_serialized_type() const override { | 320 | 78 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 78 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv Line | Count | Source | 319 | 47 | DataTypePtr get_serialized_type() const override { | 320 | 47 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 47 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv Line | Count | Source | 319 | 1.06k | DataTypePtr get_serialized_type() const override { | 320 | 1.06k | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 1.06k | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv Line | Count | Source | 319 | 92 | DataTypePtr get_serialized_type() const override { | 320 | 92 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 92 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE19get_serialized_typeEv Line | Count | Source | 319 | 1 | DataTypePtr get_serialized_type() const override { | 320 | 1 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 1 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv Line | Count | Source | 319 | 166 | DataTypePtr get_serialized_type() const override { | 320 | 166 | return std::make_shared<DataTypeFixedLengthObject>(); | 321 | 166 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE19get_serialized_typeEv |
322 | | |
323 | | // Floating-point accumulation is not exactly invertible: subtracting an outgoing |
324 | | // value cannot restore the rounding lost when it was added, so a value that has |
325 | | // left the frame would still distort later results. Recompute such frames instead. |
326 | 208 | bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; }Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE26supported_incremental_modeEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE26supported_incremental_modeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE26supported_incremental_modeEv Line | Count | Source | 326 | 40 | bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE26supported_incremental_modeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE26supported_incremental_modeEv Line | Count | Source | 326 | 10 | bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE26supported_incremental_modeEv Line | Count | Source | 326 | 1 | bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE26supported_incremental_modeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv Line | Count | Source | 326 | 1 | bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv Line | Count | Source | 326 | 41 | bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv Line | Count | Source | 326 | 75 | bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE26supported_incremental_modeEv _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv Line | Count | Source | 326 | 40 | bool supported_incremental_mode() const override { return !std::is_floating_point_v<DataType>; } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE26supported_incremental_modeEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE26supported_incremental_modeEv Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE26supported_incremental_modeEv |
327 | | |
328 | | void execute_function_with_incremental(int64_t partition_start, int64_t partition_end, |
329 | | int64_t frame_start, int64_t frame_end, |
330 | | AggregateDataPtr place, const IColumn** columns, |
331 | | Arena& arena, bool previous_is_nul, bool end_is_nul, |
332 | | bool has_null, UInt8* use_null_result, |
333 | 186 | UInt8* could_use_previous_result) const override { |
334 | 186 | int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start); |
335 | 186 | int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end); |
336 | 186 | if (current_frame_start >= current_frame_end) { |
337 | 0 | *use_null_result = true; |
338 | 0 | return; |
339 | 0 | } |
340 | 186 | if (*could_use_previous_result) { |
341 | 168 | auto outcoming_pos = frame_start - 1; |
342 | 168 | auto incoming_pos = frame_end - 1; |
343 | 168 | if (!previous_is_nul && outcoming_pos >= partition_start && |
344 | 168 | outcoming_pos < partition_end) { |
345 | 120 | update_value<false>(place, columns, outcoming_pos); |
346 | 120 | } |
347 | 168 | if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) { |
348 | 132 | update_value<true>(place, columns, incoming_pos); |
349 | 132 | } |
350 | 168 | } else { |
351 | 18 | this->add_range_single_place(partition_start, partition_end, frame_start, frame_end, |
352 | 18 | place, columns, arena, use_null_result, |
353 | 18 | could_use_previous_result); |
354 | 18 | } |
355 | 186 | } Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_28ENS_24AggregateFunctionAvgDataILS1_28EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Line | Count | Source | 333 | 24 | UInt8* could_use_previous_result) const override { | 334 | 24 | int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start); | 335 | 24 | int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end); | 336 | 24 | if (current_frame_start >= current_frame_end) { | 337 | 0 | *use_null_result = true; | 338 | 0 | return; | 339 | 0 | } | 340 | 24 | if (*could_use_previous_result) { | 341 | 24 | auto outcoming_pos = frame_start - 1; | 342 | 24 | auto incoming_pos = frame_end - 1; | 343 | 24 | if (!previous_is_nul && outcoming_pos >= partition_start && | 344 | 24 | outcoming_pos < partition_end) { | 345 | 20 | update_value<false>(place, columns, outcoming_pos); | 346 | 20 | } | 347 | 24 | if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) { | 348 | 20 | update_value<true>(place, columns, incoming_pos); | 349 | 20 | } | 350 | 24 | } else { | 351 | 0 | this->add_range_single_place(partition_start, partition_end, frame_start, frame_end, | 352 | 0 | place, columns, arena, use_null_result, | 353 | 0 | could_use_previous_result); | 354 | 0 | } | 355 | 24 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE28ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_29ENS_24AggregateFunctionAvgDataILS1_29EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Line | Count | Source | 333 | 3 | UInt8* could_use_previous_result) const override { | 334 | 3 | int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start); | 335 | 3 | int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end); | 336 | 3 | if (current_frame_start >= current_frame_end) { | 337 | 0 | *use_null_result = true; | 338 | 0 | return; | 339 | 0 | } | 340 | 3 | if (*could_use_previous_result) { | 341 | 3 | auto outcoming_pos = frame_start - 1; | 342 | 3 | auto incoming_pos = frame_end - 1; | 343 | 3 | if (!previous_is_nul && outcoming_pos >= partition_start && | 344 | 3 | outcoming_pos < partition_end) { | 345 | 2 | update_value<false>(place, columns, outcoming_pos); | 346 | 2 | } | 347 | 3 | if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) { | 348 | 3 | update_value<true>(place, columns, incoming_pos); | 349 | 3 | } | 350 | 3 | } else { | 351 | 0 | this->add_range_single_place(partition_start, partition_end, frame_start, frame_end, | 352 | 0 | place, columns, arena, use_null_result, | 353 | 0 | could_use_previous_result); | 354 | 0 | } | 355 | 3 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE4ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE5ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Line | Count | Source | 333 | 15 | UInt8* could_use_previous_result) const override { | 334 | 15 | int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start); | 335 | 15 | int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end); | 336 | 15 | if (current_frame_start >= current_frame_end) { | 337 | 0 | *use_null_result = true; | 338 | 0 | return; | 339 | 0 | } | 340 | 15 | if (*could_use_previous_result) { | 341 | 15 | auto outcoming_pos = frame_start - 1; | 342 | 15 | auto incoming_pos = frame_end - 1; | 343 | 15 | if (!previous_is_nul && outcoming_pos >= partition_start && | 344 | 15 | outcoming_pos < partition_end) { | 345 | 12 | update_value<false>(place, columns, outcoming_pos); | 346 | 12 | } | 347 | 15 | if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) { | 348 | 13 | update_value<true>(place, columns, incoming_pos); | 349 | 13 | } | 350 | 15 | } else { | 351 | 0 | this->add_range_single_place(partition_start, partition_end, frame_start, frame_end, | 352 | 0 | place, columns, arena, use_null_result, | 353 | 0 | could_use_previous_result); | 354 | 0 | } | 355 | 15 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Line | Count | Source | 333 | 144 | UInt8* could_use_previous_result) const override { | 334 | 144 | int64_t current_frame_start = std::max<int64_t>(frame_start, partition_start); | 335 | 144 | int64_t current_frame_end = std::min<int64_t>(frame_end, partition_end); | 336 | 144 | if (current_frame_start >= current_frame_end) { | 337 | 0 | *use_null_result = true; | 338 | 0 | return; | 339 | 0 | } | 340 | 144 | if (*could_use_previous_result) { | 341 | 126 | auto outcoming_pos = frame_start - 1; | 342 | 126 | auto incoming_pos = frame_end - 1; | 343 | 126 | if (!previous_is_nul && outcoming_pos >= partition_start && | 344 | 126 | outcoming_pos < partition_end) { | 345 | 86 | update_value<false>(place, columns, outcoming_pos); | 346 | 86 | } | 347 | 126 | if (!end_is_nul && incoming_pos >= partition_start && incoming_pos < partition_end) { | 348 | 96 | update_value<true>(place, columns, incoming_pos); | 349 | 96 | } | 350 | 126 | } else { | 351 | 18 | this->add_range_single_place(partition_start, partition_end, frame_start, frame_end, | 352 | 18 | place, columns, arena, use_null_result, | 353 | 18 | could_use_previous_result); | 354 | 18 | } | 355 | 144 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE33execute_function_with_incrementalEllllPcPPKNS_7IColumnERNS_5ArenaEbbbPhSC_ |
356 | | |
357 | | void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start, |
358 | | int64_t frame_end, AggregateDataPtr place, const IColumn** columns, |
359 | | Arena& arena, UInt8* use_null_result, |
360 | 453 | UInt8* could_use_previous_result) const override { |
361 | 453 | auto current_frame_start = std::max<int64_t>(frame_start, partition_start); |
362 | 453 | auto current_frame_end = std::min<int64_t>(frame_end, partition_end); |
363 | 453 | if (current_frame_start >= current_frame_end) { |
364 | 16 | if (!*could_use_previous_result) { |
365 | 0 | *use_null_result = true; |
366 | 0 | } |
367 | 437 | } else { |
368 | 1.05k | for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) { |
369 | 615 | update_value<true>(place, columns, row_num); |
370 | 615 | } |
371 | 437 | *use_null_result = false; |
372 | 437 | *could_use_previous_result = true; |
373 | 437 | } |
374 | 453 | } 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 | 360 | 4 | UInt8* could_use_previous_result) const override { | 361 | 4 | auto current_frame_start = std::max<int64_t>(frame_start, partition_start); | 362 | 4 | auto current_frame_end = std::min<int64_t>(frame_end, partition_end); | 363 | 4 | if (current_frame_start >= current_frame_end) { | 364 | 0 | if (!*could_use_previous_result) { | 365 | 0 | *use_null_result = true; | 366 | 0 | } | 367 | 4 | } else { | 368 | 12 | for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) { | 369 | 8 | update_value<true>(place, columns, row_num); | 370 | 8 | } | 371 | 4 | *use_null_result = false; | 372 | 4 | *could_use_previous_result = true; | 373 | 4 | } | 374 | 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 | 360 | 23 | UInt8* could_use_previous_result) const override { | 361 | 23 | auto current_frame_start = std::max<int64_t>(frame_start, partition_start); | 362 | 23 | auto current_frame_end = std::min<int64_t>(frame_end, partition_end); | 363 | 23 | if (current_frame_start >= current_frame_end) { | 364 | 0 | if (!*could_use_previous_result) { | 365 | 0 | *use_null_result = true; | 366 | 0 | } | 367 | 23 | } else { | 368 | 53 | for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) { | 369 | 30 | update_value<true>(place, columns, row_num); | 370 | 30 | } | 371 | 23 | *use_null_result = false; | 372 | 23 | *could_use_previous_result = true; | 373 | 23 | } | 374 | 23 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE29ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_30ENS_24AggregateFunctionAvgDataILS1_30EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ Line | Count | Source | 360 | 1 | UInt8* could_use_previous_result) const override { | 361 | 1 | auto current_frame_start = std::max<int64_t>(frame_start, partition_start); | 362 | 1 | auto current_frame_end = std::min<int64_t>(frame_end, partition_end); | 363 | 1 | if (current_frame_start >= current_frame_end) { | 364 | 0 | if (!*could_use_previous_result) { | 365 | 0 | *use_null_result = true; | 366 | 0 | } | 367 | 1 | } else { | 368 | 2 | for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) { | 369 | 1 | update_value<true>(place, columns, row_num); | 370 | 1 | } | 371 | 1 | *use_null_result = false; | 372 | 1 | *could_use_previous_result = true; | 373 | 1 | } | 374 | 1 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE30ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE35ELS1_35ENS_24AggregateFunctionAvgDataILS1_35EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE3ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ Line | Count | Source | 360 | 1 | UInt8* could_use_previous_result) const override { | 361 | 1 | auto current_frame_start = std::max<int64_t>(frame_start, partition_start); | 362 | 1 | auto current_frame_end = std::min<int64_t>(frame_end, partition_end); | 363 | 1 | if (current_frame_start >= current_frame_end) { | 364 | 0 | if (!*could_use_previous_result) { | 365 | 0 | *use_null_result = true; | 366 | 0 | } | 367 | 1 | } else { | 368 | 2 | for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) { | 369 | 1 | update_value<true>(place, columns, row_num); | 370 | 1 | } | 371 | 1 | *use_null_result = false; | 372 | 1 | *could_use_previous_result = true; | 373 | 1 | } | 374 | 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 | 360 | 89 | UInt8* could_use_previous_result) const override { | 361 | 89 | auto current_frame_start = std::max<int64_t>(frame_start, partition_start); | 362 | 89 | auto current_frame_end = std::min<int64_t>(frame_end, partition_end); | 363 | 89 | if (current_frame_start >= current_frame_end) { | 364 | 0 | if (!*could_use_previous_result) { | 365 | 0 | *use_null_result = true; | 366 | 0 | } | 367 | 89 | } else { | 368 | 241 | for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) { | 369 | 152 | update_value<true>(place, columns, row_num); | 370 | 152 | } | 371 | 89 | *use_null_result = false; | 372 | 89 | *could_use_previous_result = true; | 373 | 89 | } | 374 | 89 | } |
_ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE6ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ Line | Count | Source | 360 | 181 | UInt8* could_use_previous_result) const override { | 361 | 181 | auto current_frame_start = std::max<int64_t>(frame_start, partition_start); | 362 | 181 | auto current_frame_end = std::min<int64_t>(frame_end, partition_end); | 363 | 181 | if (current_frame_start >= current_frame_end) { | 364 | 16 | if (!*could_use_previous_result) { | 365 | 0 | *use_null_result = true; | 366 | 0 | } | 367 | 165 | } else { | 368 | 398 | for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) { | 369 | 233 | update_value<true>(place, columns, row_num); | 370 | 233 | } | 371 | 165 | *use_null_result = false; | 372 | 165 | *could_use_previous_result = true; | 373 | 165 | } | 374 | 181 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE7ELS1_9ENS_24AggregateFunctionAvgDataILS1_7EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE9ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ Line | Count | Source | 360 | 154 | UInt8* could_use_previous_result) const override { | 361 | 154 | auto current_frame_start = std::max<int64_t>(frame_start, partition_start); | 362 | 154 | auto current_frame_end = std::min<int64_t>(frame_end, partition_end); | 363 | 154 | if (current_frame_start >= current_frame_end) { | 364 | 0 | if (!*could_use_previous_result) { | 365 | 0 | *use_null_result = true; | 366 | 0 | } | 367 | 154 | } else { | 368 | 344 | for (size_t row_num = current_frame_start; row_num < current_frame_end; ++row_num) { | 369 | 190 | update_value<true>(place, columns, row_num); | 370 | 190 | } | 371 | 154 | *use_null_result = false; | 372 | 154 | *could_use_previous_result = true; | 373 | 154 | } | 374 | 154 | } |
Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE20ELS1_20ENS_24AggregateFunctionAvgDataILS1_20EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE8ELS1_9ENS_24AggregateFunctionAvgDataILS1_9EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ Unexecuted instantiation: _ZNK5doris20AggregateFunctionAvgILNS_13PrimitiveTypeE2ELS1_9ENS_24AggregateFunctionAvgDataILS1_6EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSC_ |
375 | | |
376 | | private: |
377 | | uint32_t output_scale; |
378 | | ResultType multiplier; |
379 | | }; |
380 | | |
381 | | } // namespace doris |