be/src/exprs/aggregate/aggregate_function_bitmap.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 | | |
18 | | #pragma once |
19 | | |
20 | | #include <stddef.h> |
21 | | |
22 | | #include <algorithm> |
23 | | #include <boost/iterator/iterator_facade.hpp> |
24 | | #include <memory> |
25 | | #include <string> |
26 | | #include <vector> |
27 | | |
28 | | #include "agent/be_exec_version_manager.h" |
29 | | #include "common/compiler_util.h" // IWYU pragma: keep |
30 | | #include "core/assert_cast.h" |
31 | | #include "core/column/column_complex.h" |
32 | | #include "core/column/column_nullable.h" |
33 | | #include "core/column/column_vector.h" |
34 | | #include "core/data_type/data_type_bitmap.h" |
35 | | #include "core/data_type/data_type_number.h" |
36 | | #include "core/types.h" |
37 | | #include "core/value/bitmap_value.h" |
38 | | #include "exprs/aggregate/aggregate_function.h" |
39 | | |
40 | | namespace doris { |
41 | | |
42 | | class Arena; |
43 | | class BufferReadable; |
44 | | class BufferWritable; |
45 | | class IColumn; |
46 | | struct AggregateFunctionBitmapUnionOp { |
47 | | static constexpr auto name = "bitmap_union"; |
48 | | |
49 | | template <typename T> |
50 | 6.08k | static void add(BitmapValue& res, const T& data, bool& is_first) { |
51 | 6.08k | res.add(data); |
52 | 6.08k | is_first = false; |
53 | 6.08k | } _ZN5doris30AggregateFunctionBitmapUnionOp3addIaEEvRNS_11BitmapValueERKT_Rb Line | Count | Source | 50 | 1.52k | static void add(BitmapValue& res, const T& data, bool& is_first) { | 51 | 1.52k | res.add(data); | 52 | 1.52k | is_first = false; | 53 | 1.52k | } |
_ZN5doris30AggregateFunctionBitmapUnionOp3addIsEEvRNS_11BitmapValueERKT_Rb Line | Count | Source | 50 | 1.52k | static void add(BitmapValue& res, const T& data, bool& is_first) { | 51 | 1.52k | res.add(data); | 52 | 1.52k | is_first = false; | 53 | 1.52k | } |
_ZN5doris30AggregateFunctionBitmapUnionOp3addIiEEvRNS_11BitmapValueERKT_Rb Line | Count | Source | 50 | 1.52k | static void add(BitmapValue& res, const T& data, bool& is_first) { | 51 | 1.52k | res.add(data); | 52 | 1.52k | is_first = false; | 53 | 1.52k | } |
_ZN5doris30AggregateFunctionBitmapUnionOp3addIlEEvRNS_11BitmapValueERKT_Rb Line | Count | Source | 50 | 1.52k | static void add(BitmapValue& res, const T& data, bool& is_first) { | 51 | 1.52k | res.add(data); | 52 | 1.52k | is_first = false; | 53 | 1.52k | } |
|
54 | | |
55 | 63 | static void add(BitmapValue& res, const BitmapValue& data, bool& is_first) { |
56 | 63 | if (UNLIKELY(is_first)) { |
57 | 29 | res = data; |
58 | 29 | is_first = false; |
59 | 34 | } else { |
60 | 34 | res |= data; |
61 | 34 | } |
62 | 63 | } |
63 | | |
64 | 3 | static void add_batch(BitmapValue& res, std::vector<const BitmapValue*>& data, bool& is_first) { |
65 | 3 | res.fastunion(data); |
66 | | // after fastunion, res myabe have many datas, so is_first should be false |
67 | | // then call add function will not reset res |
68 | 3 | is_first = false; |
69 | 3 | } |
70 | | |
71 | 1.89k | static void merge(BitmapValue& res, const BitmapValue& data, bool& is_first) { |
72 | 1.89k | if (UNLIKELY(is_first)) { |
73 | 184 | res = data; |
74 | 184 | is_first = false; |
75 | 1.71k | } else { |
76 | 1.71k | res |= data; |
77 | 1.71k | } |
78 | 1.89k | } |
79 | | }; |
80 | | |
81 | | struct AggregateFunctionBitmapIntersectOp { |
82 | | static constexpr auto name = "bitmap_intersect"; |
83 | | |
84 | 2 | static void add(BitmapValue& res, const BitmapValue& data, bool& is_first) { |
85 | 2 | if (UNLIKELY(is_first)) { |
86 | 1 | res = data; |
87 | 1 | is_first = false; |
88 | 1 | } else { |
89 | 1 | res &= data; |
90 | 1 | } |
91 | 2 | } |
92 | | |
93 | 0 | static void merge(BitmapValue& res, const BitmapValue& data, bool& is_first) { |
94 | 0 | if (UNLIKELY(is_first)) { |
95 | 0 | res = data; |
96 | 0 | is_first = false; |
97 | 0 | } else { |
98 | 0 | res &= data; |
99 | 0 | } |
100 | 0 | } |
101 | | }; |
102 | | |
103 | | struct AggregateFunctionGroupBitmapXorOp { |
104 | | static constexpr auto name = "group_bitmap_xor"; |
105 | | |
106 | 3 | static void add(BitmapValue& res, const BitmapValue& data, bool& is_first) { |
107 | 3 | if (UNLIKELY(is_first)) { |
108 | 1 | res = data; |
109 | 1 | is_first = false; |
110 | 2 | } else { |
111 | 2 | res ^= data; |
112 | 2 | } |
113 | 3 | } |
114 | | |
115 | 0 | static void merge(BitmapValue& res, const BitmapValue& data, bool& is_first) { |
116 | 0 | if (UNLIKELY(is_first)) { |
117 | 0 | res = data; |
118 | 0 | is_first = false; |
119 | 0 | } else { |
120 | 0 | res ^= data; |
121 | 0 | } |
122 | 0 | } |
123 | | }; |
124 | | |
125 | | template <typename Op> |
126 | | struct AggregateFunctionBitmapData { |
127 | | BitmapValue value; |
128 | | bool is_first = true; |
129 | | |
130 | | template <typename T> |
131 | 6.15k | void add(const T& data) { |
132 | 6.15k | Op::add(value, data, is_first); |
133 | 6.15k | } _ZN5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE3addINS_11BitmapValueEEEvRKT_ Line | Count | Source | 131 | 63 | void add(const T& data) { | 132 | 63 | Op::add(value, data, is_first); | 133 | 63 | } |
_ZN5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE3addIaEEvRKT_ Line | Count | Source | 131 | 1.52k | void add(const T& data) { | 132 | 1.52k | Op::add(value, data, is_first); | 133 | 1.52k | } |
_ZN5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE3addIsEEvRKT_ Line | Count | Source | 131 | 1.52k | void add(const T& data) { | 132 | 1.52k | Op::add(value, data, is_first); | 133 | 1.52k | } |
_ZN5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE3addIiEEvRKT_ Line | Count | Source | 131 | 1.52k | void add(const T& data) { | 132 | 1.52k | Op::add(value, data, is_first); | 133 | 1.52k | } |
_ZN5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE3addIlEEvRKT_ Line | Count | Source | 131 | 1.52k | void add(const T& data) { | 132 | 1.52k | Op::add(value, data, is_first); | 133 | 1.52k | } |
_ZN5doris27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEE3addINS_11BitmapValueEEEvRKT_ Line | Count | Source | 131 | 2 | void add(const T& data) { | 132 | 2 | Op::add(value, data, is_first); | 133 | 2 | } |
_ZN5doris27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEE3addINS_11BitmapValueEEEvRKT_ Line | Count | Source | 131 | 3 | void add(const T& data) { | 132 | 3 | Op::add(value, data, is_first); | 133 | 3 | } |
|
134 | | |
135 | 3 | void add_batch(std::vector<const BitmapValue*>& data) { Op::add_batch(value, data, is_first); } |
136 | | |
137 | 1.89k | void merge(const BitmapValue& data) { Op::merge(value, data, is_first); }_ZN5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE5mergeERKNS_11BitmapValueE Line | Count | Source | 137 | 1.89k | void merge(const BitmapValue& data) { Op::merge(value, data, is_first); } |
Unexecuted instantiation: _ZN5doris27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEE5mergeERKNS_11BitmapValueE Unexecuted instantiation: _ZN5doris27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEE5mergeERKNS_11BitmapValueE |
138 | | |
139 | 0 | void write(BufferWritable& buf) const { DataTypeBitMap::serialize_as_stream(value, buf); }Unexecuted instantiation: _ZNK5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE5writeERNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEE5writeERNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEE5writeERNS_14BufferWritableE |
140 | | |
141 | 0 | void read(BufferReadable& buf) { DataTypeBitMap::deserialize_as_stream(value, buf); }Unexecuted instantiation: _ZN5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE4readERNS_14BufferReadableE Unexecuted instantiation: _ZN5doris27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEE4readERNS_14BufferReadableE Unexecuted instantiation: _ZN5doris27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEE4readERNS_14BufferReadableE |
142 | | |
143 | 46 | void reset() { |
144 | 46 | is_first = true; |
145 | 46 | value.reset(); // it's better to call reset function by self firstly. |
146 | 46 | } _ZN5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE5resetEv Line | Count | Source | 143 | 46 | void reset() { | 144 | 46 | is_first = true; | 145 | 46 | value.reset(); // it's better to call reset function by self firstly. | 146 | 46 | } |
Unexecuted instantiation: _ZN5doris27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEE5resetEv Unexecuted instantiation: _ZN5doris27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEE5resetEv |
147 | | |
148 | | BitmapValue& get() { return value; } |
149 | | |
150 | 284 | const BitmapValue& get() const { return value; }_ZNK5doris27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEE3getEv Line | Count | Source | 150 | 282 | const BitmapValue& get() const { return value; } |
_ZNK5doris27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEE3getEv Line | Count | Source | 150 | 1 | const BitmapValue& get() const { return value; } |
_ZNK5doris27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEE3getEv Line | Count | Source | 150 | 1 | const BitmapValue& get() const { return value; } |
|
151 | | }; |
152 | | |
153 | | template <typename Data, typename Derived> |
154 | | class AggregateFunctionBitmapSerializationHelper |
155 | | : public IAggregateFunctionDataHelper<Data, Derived> { |
156 | | public: |
157 | | using BaseHelper = IAggregateFunctionHelper<Derived>; |
158 | | |
159 | | AggregateFunctionBitmapSerializationHelper(const DataTypes& argument_types_) |
160 | 167 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {}_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 1 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 2 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 6 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 6 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 6 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 6 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 6 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 6 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 6 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISE_EE Line | Count | Source | 160 | 6 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISB_EE Line | Count | Source | 160 | 114 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISB_EE Line | Count | Source | 160 | 1 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
_ZN5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISB_EE Line | Count | Source | 160 | 1 | : IAggregateFunctionDataHelper<Data, Derived>(argument_types_) {} |
|
161 | | |
162 | | void streaming_agg_serialize_to_column(const IColumn** columns, MutableColumnPtr& dst, |
163 | 47 | const size_t num_rows, Arena& arena) const override { |
164 | 47 | auto& col = assert_cast<ColumnBitmap&>(*dst); |
165 | 47 | char place[sizeof(Data)]; |
166 | 47 | col.resize(num_rows); |
167 | 47 | auto* data = col.get_data().data(); |
168 | 1.81k | for (size_t i = 0; i != num_rows; ++i) { |
169 | 1.76k | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); |
170 | 1.76k | DEFER({ |
171 | 1.76k | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); |
172 | 1.76k | }); |
173 | 1.76k | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, |
174 | 1.76k | arena); |
175 | 1.76k | data[i] = std::move(this->data(place).value); |
176 | 1.76k | } |
177 | 47 | } _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 1 | const size_t num_rows, Arena& arena) const override { | 164 | 1 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 1 | char place[sizeof(Data)]; | 166 | 1 | col.resize(num_rows); | 167 | 1 | auto* data = col.get_data().data(); | 168 | 4 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 3 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 3 | DEFER({ | 171 | 3 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 3 | }); | 173 | 3 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 3 | arena); | 175 | 3 | data[i] = std::move(this->data(place).value); | 176 | 3 | } | 177 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 1 | const size_t num_rows, Arena& arena) const override { | 164 | 1 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 1 | char place[sizeof(Data)]; | 166 | 1 | col.resize(num_rows); | 167 | 1 | auto* data = col.get_data().data(); | 168 | 3 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 2 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 2 | DEFER({ | 171 | 2 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 2 | }); | 173 | 2 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 2 | arena); | 175 | 2 | data[i] = std::move(this->data(place).value); | 176 | 2 | } | 177 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 6 | const size_t num_rows, Arena& arena) const override { | 164 | 6 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 6 | char place[sizeof(Data)]; | 166 | 6 | col.resize(num_rows); | 167 | 6 | auto* data = col.get_data().data(); | 168 | 228 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 222 | DEFER({ | 171 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 222 | }); | 173 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 222 | arena); | 175 | 222 | data[i] = std::move(this->data(place).value); | 176 | 222 | } | 177 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 6 | const size_t num_rows, Arena& arena) const override { | 164 | 6 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 6 | char place[sizeof(Data)]; | 166 | 6 | col.resize(num_rows); | 167 | 6 | auto* data = col.get_data().data(); | 168 | 228 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 222 | DEFER({ | 171 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 222 | }); | 173 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 222 | arena); | 175 | 222 | data[i] = std::move(this->data(place).value); | 176 | 222 | } | 177 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 6 | const size_t num_rows, Arena& arena) const override { | 164 | 6 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 6 | char place[sizeof(Data)]; | 166 | 6 | col.resize(num_rows); | 167 | 6 | auto* data = col.get_data().data(); | 168 | 228 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 222 | DEFER({ | 171 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 222 | }); | 173 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 222 | arena); | 175 | 222 | data[i] = std::move(this->data(place).value); | 176 | 222 | } | 177 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 6 | const size_t num_rows, Arena& arena) const override { | 164 | 6 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 6 | char place[sizeof(Data)]; | 166 | 6 | col.resize(num_rows); | 167 | 6 | auto* data = col.get_data().data(); | 168 | 228 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 222 | DEFER({ | 171 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 222 | }); | 173 | 222 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 222 | arena); | 175 | 222 | data[i] = std::move(this->data(place).value); | 176 | 222 | } | 177 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 5 | const size_t num_rows, Arena& arena) const override { | 164 | 5 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 5 | char place[sizeof(Data)]; | 166 | 5 | col.resize(num_rows); | 167 | 5 | auto* data = col.get_data().data(); | 168 | 221 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 216 | DEFER({ | 171 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 216 | }); | 173 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 216 | arena); | 175 | 216 | data[i] = std::move(this->data(place).value); | 176 | 216 | } | 177 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 5 | const size_t num_rows, Arena& arena) const override { | 164 | 5 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 5 | char place[sizeof(Data)]; | 166 | 5 | col.resize(num_rows); | 167 | 5 | auto* data = col.get_data().data(); | 168 | 221 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 216 | DEFER({ | 171 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 216 | }); | 173 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 216 | arena); | 175 | 216 | data[i] = std::move(this->data(place).value); | 176 | 216 | } | 177 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 5 | const size_t num_rows, Arena& arena) const override { | 164 | 5 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 5 | char place[sizeof(Data)]; | 166 | 5 | col.resize(num_rows); | 167 | 5 | auto* data = col.get_data().data(); | 168 | 221 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 216 | DEFER({ | 171 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 216 | }); | 173 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 216 | arena); | 175 | 216 | data[i] = std::move(this->data(place).value); | 176 | 216 | } | 177 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWISA_E11mutable_ptrISA_EEmRNS_5ArenaE Line | Count | Source | 163 | 5 | const size_t num_rows, Arena& arena) const override { | 164 | 5 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 5 | char place[sizeof(Data)]; | 166 | 5 | col.resize(num_rows); | 167 | 5 | auto* data = col.get_data().data(); | 168 | 221 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 216 | DEFER({ | 171 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 216 | }); | 173 | 216 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 216 | arena); | 175 | 216 | data[i] = std::move(this->data(place).value); | 176 | 216 | } | 177 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS7_E11mutable_ptrIS7_EEmRNS_5ArenaE Line | Count | Source | 163 | 1 | const size_t num_rows, Arena& arena) const override { | 164 | 1 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 165 | 1 | char place[sizeof(Data)]; | 166 | 1 | col.resize(num_rows); | 167 | 1 | auto* data = col.get_data().data(); | 168 | 11 | for (size_t i = 0; i != num_rows; ++i) { | 169 | 10 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->create(place); | 170 | 10 | DEFER({ | 171 | 10 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->destroy(place); | 172 | 10 | }); | 173 | 10 | assert_cast<const Derived*, TypeCheckOnRelease::DISABLE>(this)->add(place, columns, i, | 174 | 10 | arena); | 175 | 10 | data[i] = std::move(this->data(place).value); | 176 | 10 | } | 177 | 1 | } |
Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS7_E11mutable_ptrIS7_EEmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEE33streaming_agg_serialize_to_columnEPPKNS_7IColumnERNS_3COWIS7_E11mutable_ptrIS7_EEmRNS_5ArenaE |
178 | | |
179 | | void serialize_to_column(const std::vector<AggregateDataPtr>& places, size_t offset, |
180 | 139 | MutableColumnPtr& dst, const size_t num_rows) const override { |
181 | 139 | auto& col = assert_cast<ColumnBitmap&>(*dst); |
182 | 139 | col.resize(num_rows); |
183 | 139 | auto* data = col.get_data().data(); |
184 | 281 | for (size_t i = 0; i != num_rows; ++i) { |
185 | 142 | data[i] = std::move(this->data(places[i] + offset).value); |
186 | 142 | } |
187 | 139 | } _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 3 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 3 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 3 | col.resize(num_rows); | 183 | 3 | auto* data = col.get_data().data(); | 184 | 6 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 3 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 3 | } | 187 | 3 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 3 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 3 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 3 | col.resize(num_rows); | 183 | 3 | auto* data = col.get_data().data(); | 184 | 6 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 3 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 3 | } | 187 | 3 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 18 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 18 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 18 | col.resize(num_rows); | 183 | 18 | auto* data = col.get_data().data(); | 184 | 36 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 18 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 18 | } | 187 | 18 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 18 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 18 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 18 | col.resize(num_rows); | 183 | 18 | auto* data = col.get_data().data(); | 184 | 36 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 18 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 18 | } | 187 | 18 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 18 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 18 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 18 | col.resize(num_rows); | 183 | 18 | auto* data = col.get_data().data(); | 184 | 36 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 18 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 18 | } | 187 | 18 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 18 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 18 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 18 | col.resize(num_rows); | 183 | 18 | auto* data = col.get_data().data(); | 184 | 36 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 18 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 18 | } | 187 | 18 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 15 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 15 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 15 | col.resize(num_rows); | 183 | 15 | auto* data = col.get_data().data(); | 184 | 30 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 15 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 15 | } | 187 | 15 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 15 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 15 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 15 | col.resize(num_rows); | 183 | 15 | auto* data = col.get_data().data(); | 184 | 30 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 15 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 15 | } | 187 | 15 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 15 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 15 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 15 | col.resize(num_rows); | 183 | 15 | auto* data = col.get_data().data(); | 184 | 30 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 15 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 15 | } | 187 | 15 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE19serialize_to_columnERKSt6vectorIPcSaISB_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISH_EEm Line | Count | Source | 180 | 15 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 15 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 15 | col.resize(num_rows); | 183 | 15 | auto* data = col.get_data().data(); | 184 | 30 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 15 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 15 | } | 187 | 15 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEE19serialize_to_columnERKSt6vectorIPcSaIS8_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISE_EEm Line | Count | Source | 180 | 1 | MutableColumnPtr& dst, const size_t num_rows) const override { | 181 | 1 | auto& col = assert_cast<ColumnBitmap&>(*dst); | 182 | 1 | col.resize(num_rows); | 183 | 1 | auto* data = col.get_data().data(); | 184 | 5 | for (size_t i = 0; i != num_rows; ++i) { | 185 | 4 | data[i] = std::move(this->data(places[i] + offset).value); | 186 | 4 | } | 187 | 1 | } |
Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEE19serialize_to_columnERKSt6vectorIPcSaIS8_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISE_EEm Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEE19serialize_to_columnERKSt6vectorIPcSaIS8_EEmRNS_3COWINS_7IColumnEE11mutable_ptrISE_EEm |
188 | | |
189 | | void deserialize_and_merge_from_column_range(AggregateDataPtr __restrict place, |
190 | | const IColumn& column, size_t begin, size_t end, |
191 | 92 | Arena&) const override { |
192 | 92 | DCHECK(end <= column.size() && begin <= end) |
193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); |
194 | 92 | const auto& col = assert_cast<const ColumnBitmap&>(column); |
195 | 92 | const auto* data = col.get_data().data(); |
196 | 1.89k | for (size_t i = begin; i <= end; ++i) { |
197 | 1.80k | this->data(place).merge(data[i]); |
198 | 1.80k | } |
199 | 92 | } _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 2 | Arena&) const override { | 192 | 2 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 2 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 2 | const auto* data = col.get_data().data(); | 196 | 6 | for (size_t i = begin; i <= end; ++i) { | 197 | 4 | this->data(place).merge(data[i]); | 198 | 4 | } | 199 | 2 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 2 | Arena&) const override { | 192 | 2 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 2 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 2 | const auto* data = col.get_data().data(); | 196 | 5 | for (size_t i = begin; i <= end; ++i) { | 197 | 3 | this->data(place).merge(data[i]); | 198 | 3 | } | 199 | 2 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 12 | Arena&) const override { | 192 | 12 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 12 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 12 | const auto* data = col.get_data().data(); | 196 | 240 | for (size_t i = begin; i <= end; ++i) { | 197 | 228 | this->data(place).merge(data[i]); | 198 | 228 | } | 199 | 12 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 12 | Arena&) const override { | 192 | 12 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 12 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 12 | const auto* data = col.get_data().data(); | 196 | 240 | for (size_t i = begin; i <= end; ++i) { | 197 | 228 | this->data(place).merge(data[i]); | 198 | 228 | } | 199 | 12 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 12 | Arena&) const override { | 192 | 12 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 12 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 12 | const auto* data = col.get_data().data(); | 196 | 240 | for (size_t i = begin; i <= end; ++i) { | 197 | 228 | this->data(place).merge(data[i]); | 198 | 228 | } | 199 | 12 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 12 | Arena&) const override { | 192 | 12 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 12 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 12 | const auto* data = col.get_data().data(); | 196 | 240 | for (size_t i = begin; i <= end; ++i) { | 197 | 228 | this->data(place).merge(data[i]); | 198 | 228 | } | 199 | 12 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 10 | Arena&) const override { | 192 | 10 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 10 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 10 | const auto* data = col.get_data().data(); | 196 | 231 | for (size_t i = begin; i <= end; ++i) { | 197 | 221 | this->data(place).merge(data[i]); | 198 | 221 | } | 199 | 10 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 10 | Arena&) const override { | 192 | 10 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 10 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 10 | const auto* data = col.get_data().data(); | 196 | 231 | for (size_t i = begin; i <= end; ++i) { | 197 | 221 | this->data(place).merge(data[i]); | 198 | 221 | } | 199 | 10 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 10 | Arena&) const override { | 192 | 10 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 10 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 10 | const auto* data = col.get_data().data(); | 196 | 231 | for (size_t i = begin; i <= end; ++i) { | 197 | 221 | this->data(place).merge(data[i]); | 198 | 221 | } | 199 | 10 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Line | Count | Source | 191 | 10 | Arena&) const override { | 192 | 10 | DCHECK(end <= column.size() && begin <= end) | 193 | 0 | << ", begin:" << begin << ", end:" << end << ", column.size():" << column.size(); | 194 | 10 | const auto& col = assert_cast<const ColumnBitmap&>(column); | 195 | 10 | const auto* data = col.get_data().data(); | 196 | 231 | for (size_t i = begin; i <= end; ++i) { | 197 | 221 | this->data(place).merge(data[i]); | 198 | 221 | } | 199 | 10 | } |
Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEE39deserialize_and_merge_from_column_rangeEPcRKNS_7IColumnEmmRNS_5ArenaE |
200 | | |
201 | | void deserialize_and_merge_vec(const AggregateDataPtr* places, size_t offset, |
202 | | AggregateDataPtr rhs, const IColumn* column, Arena&, |
203 | 46 | const size_t num_rows) const override { |
204 | 46 | const auto& col = assert_cast<const ColumnBitmap&>(*column); |
205 | 46 | const auto* data = col.get_data().data(); |
206 | 92 | for (size_t i = 0; i != num_rows; ++i) { |
207 | 46 | this->data(places[i] + offset).merge(data[i]); |
208 | 46 | } |
209 | 46 | } _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 1 | const size_t num_rows) const override { | 204 | 1 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 1 | const auto* data = col.get_data().data(); | 206 | 2 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 1 | this->data(places[i] + offset).merge(data[i]); | 208 | 1 | } | 209 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 1 | const size_t num_rows) const override { | 204 | 1 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 1 | const auto* data = col.get_data().data(); | 206 | 2 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 1 | this->data(places[i] + offset).merge(data[i]); | 208 | 1 | } | 209 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 6 | const size_t num_rows) const override { | 204 | 6 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 6 | const auto* data = col.get_data().data(); | 206 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 6 | this->data(places[i] + offset).merge(data[i]); | 208 | 6 | } | 209 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 6 | const size_t num_rows) const override { | 204 | 6 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 6 | const auto* data = col.get_data().data(); | 206 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 6 | this->data(places[i] + offset).merge(data[i]); | 208 | 6 | } | 209 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 6 | const size_t num_rows) const override { | 204 | 6 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 6 | const auto* data = col.get_data().data(); | 206 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 6 | this->data(places[i] + offset).merge(data[i]); | 208 | 6 | } | 209 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 6 | const size_t num_rows) const override { | 204 | 6 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 6 | const auto* data = col.get_data().data(); | 206 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 6 | this->data(places[i] + offset).merge(data[i]); | 208 | 6 | } | 209 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 5 | const size_t num_rows) const override { | 204 | 5 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 5 | const auto* data = col.get_data().data(); | 206 | 10 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 5 | this->data(places[i] + offset).merge(data[i]); | 208 | 5 | } | 209 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 5 | const size_t num_rows) const override { | 204 | 5 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 5 | const auto* data = col.get_data().data(); | 206 | 10 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 5 | this->data(places[i] + offset).merge(data[i]); | 208 | 5 | } | 209 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 5 | const size_t num_rows) const override { | 204 | 5 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 5 | const auto* data = col.get_data().data(); | 206 | 10 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 5 | this->data(places[i] + offset).merge(data[i]); | 208 | 5 | } | 209 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE25deserialize_and_merge_vecEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 203 | 5 | const size_t num_rows) const override { | 204 | 5 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 205 | 5 | const auto* data = col.get_data().data(); | 206 | 10 | for (size_t i = 0; i != num_rows; ++i) { | 207 | 5 | this->data(places[i] + offset).merge(data[i]); | 208 | 5 | } | 209 | 5 | } |
Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEE25deserialize_and_merge_vecEPKPcmS7_PKNS_7IColumnERNS_5ArenaEm Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEE25deserialize_and_merge_vecEPKPcmS7_PKNS_7IColumnERNS_5ArenaEm Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEE25deserialize_and_merge_vecEPKPcmS7_PKNS_7IColumnERNS_5ArenaEm |
210 | | |
211 | | void deserialize_and_merge_vec_selected(const AggregateDataPtr* places, size_t offset, |
212 | | AggregateDataPtr rhs, const IColumn* column, Arena&, |
213 | 46 | const size_t num_rows) const override { |
214 | 46 | const auto& col = assert_cast<const ColumnBitmap&>(*column); |
215 | 46 | const auto* data = col.get_data().data(); |
216 | 92 | for (size_t i = 0; i != num_rows; ++i) { |
217 | 46 | if (places[i]) { |
218 | 46 | this->data(places[i] + offset).merge(data[i]); |
219 | 46 | } |
220 | 46 | } |
221 | 46 | } _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 1 | const size_t num_rows) const override { | 214 | 1 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 1 | const auto* data = col.get_data().data(); | 216 | 2 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 1 | if (places[i]) { | 218 | 1 | this->data(places[i] + offset).merge(data[i]); | 219 | 1 | } | 220 | 1 | } | 221 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 1 | const size_t num_rows) const override { | 214 | 1 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 1 | const auto* data = col.get_data().data(); | 216 | 2 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 1 | if (places[i]) { | 218 | 1 | this->data(places[i] + offset).merge(data[i]); | 219 | 1 | } | 220 | 1 | } | 221 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 6 | const size_t num_rows) const override { | 214 | 6 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 6 | const auto* data = col.get_data().data(); | 216 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 6 | if (places[i]) { | 218 | 6 | this->data(places[i] + offset).merge(data[i]); | 219 | 6 | } | 220 | 6 | } | 221 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 6 | const size_t num_rows) const override { | 214 | 6 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 6 | const auto* data = col.get_data().data(); | 216 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 6 | if (places[i]) { | 218 | 6 | this->data(places[i] + offset).merge(data[i]); | 219 | 6 | } | 220 | 6 | } | 221 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 6 | const size_t num_rows) const override { | 214 | 6 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 6 | const auto* data = col.get_data().data(); | 216 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 6 | if (places[i]) { | 218 | 6 | this->data(places[i] + offset).merge(data[i]); | 219 | 6 | } | 220 | 6 | } | 221 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 6 | const size_t num_rows) const override { | 214 | 6 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 6 | const auto* data = col.get_data().data(); | 216 | 12 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 6 | if (places[i]) { | 218 | 6 | this->data(places[i] + offset).merge(data[i]); | 219 | 6 | } | 220 | 6 | } | 221 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 5 | const size_t num_rows) const override { | 214 | 5 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 5 | const auto* data = col.get_data().data(); | 216 | 10 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 5 | if (places[i]) { | 218 | 5 | this->data(places[i] + offset).merge(data[i]); | 219 | 5 | } | 220 | 5 | } | 221 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 5 | const size_t num_rows) const override { | 214 | 5 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 5 | const auto* data = col.get_data().data(); | 216 | 10 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 5 | if (places[i]) { | 218 | 5 | this->data(places[i] + offset).merge(data[i]); | 219 | 5 | } | 220 | 5 | } | 221 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 5 | const size_t num_rows) const override { | 214 | 5 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 5 | const auto* data = col.get_data().data(); | 216 | 10 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 5 | if (places[i]) { | 218 | 5 | this->data(places[i] + offset).merge(data[i]); | 219 | 5 | } | 220 | 5 | } | 221 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE34deserialize_and_merge_vec_selectedEPKPcmSA_PKNS_7IColumnERNS_5ArenaEm Line | Count | Source | 213 | 5 | const size_t num_rows) const override { | 214 | 5 | const auto& col = assert_cast<const ColumnBitmap&>(*column); | 215 | 5 | const auto* data = col.get_data().data(); | 216 | 10 | for (size_t i = 0; i != num_rows; ++i) { | 217 | 5 | if (places[i]) { | 218 | 5 | this->data(places[i] + offset).merge(data[i]); | 219 | 5 | } | 220 | 5 | } | 221 | 5 | } |
Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEE34deserialize_and_merge_vec_selectedEPKPcmS7_PKNS_7IColumnERNS_5ArenaEm Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEE34deserialize_and_merge_vec_selectedEPKPcmS7_PKNS_7IColumnERNS_5ArenaEm Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEE34deserialize_and_merge_vec_selectedEPKPcmS7_PKNS_7IColumnERNS_5ArenaEm |
222 | | |
223 | | void serialize_without_key_to_column(ConstAggregateDataPtr __restrict place, |
224 | 46 | IColumn& to) const override { |
225 | 46 | auto& col = assert_cast<ColumnBitmap&>(to); |
226 | 46 | size_t old_size = col.size(); |
227 | 46 | col.resize(old_size + 1); |
228 | 46 | col.get_data()[old_size] = std::move(this->data(place).value); |
229 | 46 | } _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 1 | IColumn& to) const override { | 225 | 1 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 1 | size_t old_size = col.size(); | 227 | 1 | col.resize(old_size + 1); | 228 | 1 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 1 | IColumn& to) const override { | 225 | 1 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 1 | size_t old_size = col.size(); | 227 | 1 | col.resize(old_size + 1); | 228 | 1 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 6 | IColumn& to) const override { | 225 | 6 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 6 | size_t old_size = col.size(); | 227 | 6 | col.resize(old_size + 1); | 228 | 6 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 6 | IColumn& to) const override { | 225 | 6 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 6 | size_t old_size = col.size(); | 227 | 6 | col.resize(old_size + 1); | 228 | 6 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 6 | IColumn& to) const override { | 225 | 6 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 6 | size_t old_size = col.size(); | 227 | 6 | col.resize(old_size + 1); | 228 | 6 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 6 | IColumn& to) const override { | 225 | 6 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 6 | size_t old_size = col.size(); | 227 | 6 | col.resize(old_size + 1); | 228 | 6 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 6 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 5 | IColumn& to) const override { | 225 | 5 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 5 | size_t old_size = col.size(); | 227 | 5 | col.resize(old_size + 1); | 228 | 5 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 5 | IColumn& to) const override { | 225 | 5 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 5 | size_t old_size = col.size(); | 227 | 5 | col.resize(old_size + 1); | 228 | 5 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 5 | IColumn& to) const override { | 225 | 5 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 5 | size_t old_size = col.size(); | 227 | 5 | col.resize(old_size + 1); | 228 | 5 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Line | Count | Source | 224 | 5 | IColumn& to) const override { | 225 | 5 | auto& col = assert_cast<ColumnBitmap&>(to); | 226 | 5 | size_t old_size = col.size(); | 227 | 5 | col.resize(old_size + 1); | 228 | 5 | col.get_data()[old_size] = std::move(this->data(place).value); | 229 | 5 | } |
Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEE31serialize_without_key_to_columnEPKcRNS_7IColumnE Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEE31serialize_without_key_to_columnEPKcRNS_7IColumnE |
230 | | |
231 | 250 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { |
232 | 250 | return ColumnBitmap::create(); |
233 | 250 | } _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 5 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 5 | return ColumnBitmap::create(); | 233 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 5 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 5 | return ColumnBitmap::create(); | 233 | 5 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 30 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 30 | return ColumnBitmap::create(); | 233 | 30 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 30 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 30 | return ColumnBitmap::create(); | 233 | 30 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 30 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 30 | return ColumnBitmap::create(); | 233 | 30 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 30 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 30 | return ColumnBitmap::create(); | 233 | 30 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 25 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 25 | return ColumnBitmap::create(); | 233 | 25 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 25 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 25 | return ColumnBitmap::create(); | 233 | 25 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 25 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 25 | return ColumnBitmap::create(); | 233 | 25 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE23create_serialize_columnEv Line | Count | Source | 231 | 25 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 25 | return ColumnBitmap::create(); | 233 | 25 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEE23create_serialize_columnEv Line | Count | Source | 231 | 18 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 18 | return ColumnBitmap::create(); | 233 | 18 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEE23create_serialize_columnEv Line | Count | Source | 231 | 1 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 1 | return ColumnBitmap::create(); | 233 | 1 | } |
_ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEE23create_serialize_columnEv Line | Count | Source | 231 | 1 | [[nodiscard]] MutableColumnPtr create_serialize_column() const override { | 232 | 1 | return ColumnBitmap::create(); | 233 | 1 | } |
|
234 | | |
235 | 113 | [[nodiscard]] DataTypePtr get_serialized_type() const override { |
236 | 113 | return std::make_shared<DataTypeBitMap>(); |
237 | 113 | } Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEEE19get_serialized_typeEv _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_30AggregateFunctionBitmapUnionOpEEENS_25AggregateFunctionBitmapOpIS2_EEE19get_serialized_typeEv Line | Count | Source | 235 | 113 | [[nodiscard]] DataTypePtr get_serialized_type() const override { | 236 | 113 | return std::make_shared<DataTypeBitMap>(); | 237 | 113 | } |
Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_34AggregateFunctionBitmapIntersectOpEEENS_25AggregateFunctionBitmapOpIS2_EEE19get_serialized_typeEv Unexecuted instantiation: _ZNK5doris42AggregateFunctionBitmapSerializationHelperINS_27AggregateFunctionBitmapDataINS_33AggregateFunctionGroupBitmapXorOpEEENS_25AggregateFunctionBitmapOpIS2_EEE19get_serialized_typeEv |
238 | | |
239 | | protected: |
240 | | using IAggregateFunction::version; |
241 | | }; |
242 | | |
243 | | template <typename Op> |
244 | | class AggregateFunctionBitmapOp final |
245 | | : public AggregateFunctionBitmapSerializationHelper<AggregateFunctionBitmapData<Op>, |
246 | | AggregateFunctionBitmapOp<Op>>, |
247 | | UnaryExpression, |
248 | | NullableAggregateFunction { |
249 | | public: |
250 | | using ResultDataType = BitmapValue; |
251 | | using ColVecType = ColumnBitmap; |
252 | | using ColVecResult = ColumnBitmap; |
253 | | |
254 | 0 | String get_name() const override { return Op::name; }Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE8get_nameB5cxx11Ev |
255 | | |
256 | | AggregateFunctionBitmapOp(const DataTypes& argument_types_) |
257 | 116 | : AggregateFunctionBitmapSerializationHelper<AggregateFunctionBitmapData<Op>, |
258 | 116 | AggregateFunctionBitmapOp<Op>>( |
259 | 116 | argument_types_) {}_ZN5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS7_EE Line | Count | Source | 257 | 114 | : AggregateFunctionBitmapSerializationHelper<AggregateFunctionBitmapData<Op>, | 258 | 114 | AggregateFunctionBitmapOp<Op>>( | 259 | 114 | argument_types_) {} |
_ZN5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS7_EE Line | Count | Source | 257 | 1 | : AggregateFunctionBitmapSerializationHelper<AggregateFunctionBitmapData<Op>, | 258 | 1 | AggregateFunctionBitmapOp<Op>>( | 259 | 1 | argument_types_) {} |
_ZN5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS7_EE Line | Count | Source | 257 | 1 | : AggregateFunctionBitmapSerializationHelper<AggregateFunctionBitmapData<Op>, | 258 | 1 | AggregateFunctionBitmapOp<Op>>( | 259 | 1 | argument_types_) {} |
|
260 | | |
261 | 1 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeBitMap>(); }_ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE15get_return_typeEv Line | Count | Source | 261 | 1 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeBitMap>(); } |
Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE15get_return_typeEv Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE15get_return_typeEv |
262 | | |
263 | | void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num, |
264 | 31 | Arena&) const override { |
265 | 31 | const auto& column = |
266 | 31 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); |
267 | 31 | this->data(place).add(column.get_data()[row_num]); |
268 | 31 | } _ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 264 | 26 | Arena&) const override { | 265 | 26 | const auto& column = | 266 | 26 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 267 | 26 | this->data(place).add(column.get_data()[row_num]); | 268 | 26 | } |
_ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 264 | 2 | Arena&) const override { | 265 | 2 | const auto& column = | 266 | 2 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 267 | 2 | this->data(place).add(column.get_data()[row_num]); | 268 | 2 | } |
_ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 264 | 3 | Arena&) const override { | 265 | 3 | const auto& column = | 266 | 3 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 267 | 3 | this->data(place).add(column.get_data()[row_num]); | 268 | 3 | } |
|
269 | | |
270 | | void add_many(AggregateDataPtr __restrict place, const IColumn** columns, |
271 | 3 | std::vector<int>& rows, Arena&) const override { |
272 | | // now this only for bitmap_union function |
273 | 3 | if constexpr (std::is_same_v<Op, AggregateFunctionBitmapUnionOp>) { |
274 | 3 | const auto& column = |
275 | 3 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); |
276 | 3 | std::vector<const BitmapValue*> values; |
277 | 6 | for (auto row : rows) { |
278 | 6 | values.push_back(&(column.get_data()[row])); |
279 | 6 | } |
280 | 3 | this->data(place).add_batch(values); |
281 | 3 | } |
282 | 3 | } _ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Line | Count | Source | 271 | 3 | std::vector<int>& rows, Arena&) const override { | 272 | | // now this only for bitmap_union function | 273 | 3 | if constexpr (std::is_same_v<Op, AggregateFunctionBitmapUnionOp>) { | 274 | 3 | const auto& column = | 275 | 3 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 276 | 3 | std::vector<const BitmapValue*> values; | 277 | 6 | for (auto row : rows) { | 278 | 6 | values.push_back(&(column.get_data()[row])); | 279 | 6 | } | 280 | 3 | this->data(place).add_batch(values); | 281 | 3 | } | 282 | 3 | } |
Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE |
283 | | |
284 | | void add_batch_range(size_t batch_begin, size_t batch_end, AggregateDataPtr place, |
285 | 0 | const IColumn** columns, Arena& arena, bool has_null) override { |
286 | | // now this only for bitmap_union function |
287 | 0 | if constexpr (std::is_same_v<Op, AggregateFunctionBitmapUnionOp>) { |
288 | 0 | const auto& column = |
289 | 0 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); |
290 | 0 | std::vector<const BitmapValue*> values; |
291 | 0 | for (size_t i = batch_begin; i <= batch_end; ++i) { |
292 | 0 | values.push_back(&(column.get_data()[i])); |
293 | 0 | } |
294 | 0 | this->data(place).add_batch(values); |
295 | 0 | } else { |
296 | 0 | for (size_t i = batch_begin; i <= batch_end; ++i) { |
297 | 0 | this->add(place, columns, i, arena); |
298 | 0 | } |
299 | 0 | } |
300 | 0 | } Unexecuted instantiation: _ZN5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE15add_batch_rangeEmmPcPPKNS_7IColumnERNS_5ArenaEb Unexecuted instantiation: _ZN5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE15add_batch_rangeEmmPcPPKNS_7IColumnERNS_5ArenaEb Unexecuted instantiation: _ZN5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE15add_batch_rangeEmmPcPPKNS_7IColumnERNS_5ArenaEb |
301 | | |
302 | | void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs, |
303 | 0 | Arena&) const override { |
304 | 0 | this->data(place).merge(this->data(rhs).get()); |
305 | 0 | } Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE5mergeEPcPKcRNS_5ArenaE |
306 | | |
307 | 0 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { |
308 | 0 | this->data(place).write(buf); |
309 | 0 | } Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE9serializeEPKcRNS_14BufferWritableE |
310 | | |
311 | | void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf, |
312 | 0 | Arena&) const override { |
313 | 0 | this->data(place).read(buf); |
314 | 0 | } Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE |
315 | | |
316 | 3 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { |
317 | 3 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); |
318 | 3 | column.get_data().push_back(this->data(place).get()); |
319 | 3 | } _ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 316 | 1 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 317 | 1 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 318 | 1 | column.get_data().push_back(this->data(place).get()); | 319 | 1 | } |
_ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 316 | 1 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 317 | 1 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 318 | 1 | column.get_data().push_back(this->data(place).get()); | 319 | 1 | } |
_ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 316 | 1 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 317 | 1 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 318 | 1 | column.get_data().push_back(this->data(place).get()); | 319 | 1 | } |
|
320 | | |
321 | 0 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); }Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_30AggregateFunctionBitmapUnionOpEE5resetEPc Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_34AggregateFunctionBitmapIntersectOpEE5resetEPc Unexecuted instantiation: _ZNK5doris25AggregateFunctionBitmapOpINS_33AggregateFunctionGroupBitmapXorOpEE5resetEPc |
322 | | }; |
323 | | |
324 | | template <bool arg_is_nullable, typename ColVecType> |
325 | | class AggregateFunctionBitmapCount final |
326 | | : public AggregateFunctionBitmapSerializationHelper< |
327 | | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, |
328 | | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>, |
329 | | UnaryExpression, |
330 | | NotNullableAggregateFunction { |
331 | | public: |
332 | | // using ColVecType = ColumnBitmap; |
333 | | using ColVecResult = ColumnInt64; |
334 | | using AggFunctionData = AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>; |
335 | | static int constexpr BATCH_HALF_ROWS = 4064 / 2; |
336 | | |
337 | | AggregateFunctionBitmapCount(const DataTypes& argument_types_) |
338 | 51 | : AggregateFunctionBitmapSerializationHelper< |
339 | 51 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, |
340 | 51 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {}_ZN5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 1 | : AggregateFunctionBitmapSerializationHelper< | 339 | 1 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 1 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 2 | : AggregateFunctionBitmapSerializationHelper< | 339 | 2 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 2 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 6 | : AggregateFunctionBitmapSerializationHelper< | 339 | 6 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 6 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 6 | : AggregateFunctionBitmapSerializationHelper< | 339 | 6 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 6 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 6 | : AggregateFunctionBitmapSerializationHelper< | 339 | 6 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 6 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 6 | : AggregateFunctionBitmapSerializationHelper< | 339 | 6 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 6 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 6 | : AggregateFunctionBitmapSerializationHelper< | 339 | 6 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 6 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 6 | : AggregateFunctionBitmapSerializationHelper< | 339 | 6 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 6 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 6 | : AggregateFunctionBitmapSerializationHelper< | 339 | 6 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 6 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
_ZN5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 338 | 6 | : AggregateFunctionBitmapSerializationHelper< | 339 | 6 | AggregateFunctionBitmapData<AggregateFunctionBitmapUnionOp>, | 340 | 6 | AggregateFunctionBitmapCount<arg_is_nullable, ColVecType>>(argument_types_) {} |
|
341 | | |
342 | 46 | String get_name() const override { |
343 | 46 | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { |
344 | 2 | return "bitmap_union_count"; |
345 | 44 | } else { |
346 | 44 | return "bitmap_union_int"; |
347 | 44 | } |
348 | 46 | } _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 1 | String get_name() const override { | 343 | 1 | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | 1 | return "bitmap_union_count"; | 345 | | } else { | 346 | | return "bitmap_union_int"; | 347 | | } | 348 | 1 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 1 | String get_name() const override { | 343 | 1 | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | 1 | return "bitmap_union_count"; | 345 | | } else { | 346 | | return "bitmap_union_int"; | 347 | | } | 348 | 1 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 6 | String get_name() const override { | 343 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | | return "bitmap_union_count"; | 345 | 6 | } else { | 346 | 6 | return "bitmap_union_int"; | 347 | 6 | } | 348 | 6 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 6 | String get_name() const override { | 343 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | | return "bitmap_union_count"; | 345 | 6 | } else { | 346 | 6 | return "bitmap_union_int"; | 347 | 6 | } | 348 | 6 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 6 | String get_name() const override { | 343 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | | return "bitmap_union_count"; | 345 | 6 | } else { | 346 | 6 | return "bitmap_union_int"; | 347 | 6 | } | 348 | 6 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 6 | String get_name() const override { | 343 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | | return "bitmap_union_count"; | 345 | 6 | } else { | 346 | 6 | return "bitmap_union_int"; | 347 | 6 | } | 348 | 6 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 5 | String get_name() const override { | 343 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | | return "bitmap_union_count"; | 345 | 5 | } else { | 346 | 5 | return "bitmap_union_int"; | 347 | 5 | } | 348 | 5 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 5 | String get_name() const override { | 343 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | | return "bitmap_union_count"; | 345 | 5 | } else { | 346 | 5 | return "bitmap_union_int"; | 347 | 5 | } | 348 | 5 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 5 | String get_name() const override { | 343 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | | return "bitmap_union_count"; | 345 | 5 | } else { | 346 | 5 | return "bitmap_union_int"; | 347 | 5 | } | 348 | 5 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE8get_nameB5cxx11Ev Line | Count | Source | 342 | 5 | String get_name() const override { | 343 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 344 | | return "bitmap_union_count"; | 345 | 5 | } else { | 346 | 5 | return "bitmap_union_int"; | 347 | 5 | } | 348 | 5 | } |
|
349 | | |
350 | 322 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); }_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE15get_return_typeEv Line | Count | Source | 350 | 7 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE15get_return_typeEv Line | Count | Source | 350 | 7 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE15get_return_typeEv Line | Count | Source | 350 | 42 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE15get_return_typeEv Line | Count | Source | 350 | 42 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE15get_return_typeEv Line | Count | Source | 350 | 42 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE15get_return_typeEv Line | Count | Source | 350 | 42 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE15get_return_typeEv Line | Count | Source | 350 | 35 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE15get_return_typeEv Line | Count | Source | 350 | 35 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE15get_return_typeEv Line | Count | Source | 350 | 35 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE15get_return_typeEv Line | Count | Source | 350 | 35 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); } |
|
351 | | |
352 | | void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num, |
353 | 12.3k | Arena&) const override { |
354 | 12.3k | const IColumn* data_column = columns[0]; |
355 | 12.3k | if constexpr (arg_is_nullable) { |
356 | 6.23k | const auto& nullable_column = |
357 | 6.23k | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); |
358 | 6.23k | if (nullable_column.is_null_at(row_num)) { |
359 | 175 | return; |
360 | 175 | } |
361 | 6.06k | data_column = &nullable_column.get_nested_column(); |
362 | 6.06k | } |
363 | 0 | const auto& value = |
364 | 12.3k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) |
365 | 12.3k | .get_data()[row_num]; |
366 | 12.3k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { |
367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. |
368 | 12.3k | if (value < 0) { |
369 | 6.04k | return; |
370 | 6.04k | } |
371 | 12.3k | } |
372 | 6.25k | this->data(place).add(value); |
373 | 12.3k | } _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 21 | Arena&) const override { | 354 | 21 | const IColumn* data_column = columns[0]; | 355 | 21 | if constexpr (arg_is_nullable) { | 356 | 21 | const auto& nullable_column = | 357 | 21 | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | 21 | if (nullable_column.is_null_at(row_num)) { | 359 | 7 | return; | 360 | 7 | } | 361 | 14 | data_column = &nullable_column.get_nested_column(); | 362 | 14 | } | 363 | 0 | const auto& value = | 364 | 21 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 21 | .get_data()[row_num]; | 366 | | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | | if (value < 0) { | 369 | | return; | 370 | | } | 371 | | } | 372 | 21 | this->data(place).add(value); | 373 | 21 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 23 | Arena&) const override { | 354 | 23 | const IColumn* data_column = columns[0]; | 355 | | if constexpr (arg_is_nullable) { | 356 | | const auto& nullable_column = | 357 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | | if (nullable_column.is_null_at(row_num)) { | 359 | | return; | 360 | | } | 361 | | data_column = &nullable_column.get_nested_column(); | 362 | | } | 363 | 23 | const auto& value = | 364 | 23 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 23 | .get_data()[row_num]; | 366 | | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | | if (value < 0) { | 369 | | return; | 370 | | } | 371 | | } | 372 | 23 | this->data(place).add(value); | 373 | 23 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 1.55k | Arena&) const override { | 354 | 1.55k | const IColumn* data_column = columns[0]; | 355 | 1.55k | if constexpr (arg_is_nullable) { | 356 | 1.55k | const auto& nullable_column = | 357 | 1.55k | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | 1.55k | if (nullable_column.is_null_at(row_num)) { | 359 | 42 | return; | 360 | 42 | } | 361 | 1.51k | data_column = &nullable_column.get_nested_column(); | 362 | 1.51k | } | 363 | 0 | const auto& value = | 364 | 1.55k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 1.55k | .get_data()[row_num]; | 366 | 1.55k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | 1.55k | if (value < 0) { | 369 | 756 | return; | 370 | 756 | } | 371 | 1.55k | } | 372 | 798 | this->data(place).add(value); | 373 | 1.55k | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 1.55k | Arena&) const override { | 354 | 1.55k | const IColumn* data_column = columns[0]; | 355 | 1.55k | if constexpr (arg_is_nullable) { | 356 | 1.55k | const auto& nullable_column = | 357 | 1.55k | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | 1.55k | if (nullable_column.is_null_at(row_num)) { | 359 | 42 | return; | 360 | 42 | } | 361 | 1.51k | data_column = &nullable_column.get_nested_column(); | 362 | 1.51k | } | 363 | 0 | const auto& value = | 364 | 1.55k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 1.55k | .get_data()[row_num]; | 366 | 1.55k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | 1.55k | if (value < 0) { | 369 | 756 | return; | 370 | 756 | } | 371 | 1.55k | } | 372 | 798 | this->data(place).add(value); | 373 | 1.55k | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 1.55k | Arena&) const override { | 354 | 1.55k | const IColumn* data_column = columns[0]; | 355 | 1.55k | if constexpr (arg_is_nullable) { | 356 | 1.55k | const auto& nullable_column = | 357 | 1.55k | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | 1.55k | if (nullable_column.is_null_at(row_num)) { | 359 | 42 | return; | 360 | 42 | } | 361 | 1.51k | data_column = &nullable_column.get_nested_column(); | 362 | 1.51k | } | 363 | 0 | const auto& value = | 364 | 1.55k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 1.55k | .get_data()[row_num]; | 366 | 1.55k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | 1.55k | if (value < 0) { | 369 | 756 | return; | 370 | 756 | } | 371 | 1.55k | } | 372 | 798 | this->data(place).add(value); | 373 | 1.55k | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 1.55k | Arena&) const override { | 354 | 1.55k | const IColumn* data_column = columns[0]; | 355 | 1.55k | if constexpr (arg_is_nullable) { | 356 | 1.55k | const auto& nullable_column = | 357 | 1.55k | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | 1.55k | if (nullable_column.is_null_at(row_num)) { | 359 | 42 | return; | 360 | 42 | } | 361 | 1.51k | data_column = &nullable_column.get_nested_column(); | 362 | 1.51k | } | 363 | 0 | const auto& value = | 364 | 1.55k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 1.55k | .get_data()[row_num]; | 366 | 1.55k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | 1.55k | if (value < 0) { | 369 | 756 | return; | 370 | 756 | } | 371 | 1.55k | } | 372 | 798 | this->data(place).add(value); | 373 | 1.55k | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 1.52k | Arena&) const override { | 354 | 1.52k | const IColumn* data_column = columns[0]; | 355 | | if constexpr (arg_is_nullable) { | 356 | | const auto& nullable_column = | 357 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | | if (nullable_column.is_null_at(row_num)) { | 359 | | return; | 360 | | } | 361 | | data_column = &nullable_column.get_nested_column(); | 362 | | } | 363 | 1.52k | const auto& value = | 364 | 1.52k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 1.52k | .get_data()[row_num]; | 366 | 1.52k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | 1.52k | if (value < 0) { | 369 | 756 | return; | 370 | 756 | } | 371 | 1.52k | } | 372 | 765 | this->data(place).add(value); | 373 | 1.52k | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 1.52k | Arena&) const override { | 354 | 1.52k | const IColumn* data_column = columns[0]; | 355 | | if constexpr (arg_is_nullable) { | 356 | | const auto& nullable_column = | 357 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | | if (nullable_column.is_null_at(row_num)) { | 359 | | return; | 360 | | } | 361 | | data_column = &nullable_column.get_nested_column(); | 362 | | } | 363 | 1.52k | const auto& value = | 364 | 1.52k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 1.52k | .get_data()[row_num]; | 366 | 1.52k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | 1.52k | if (value < 0) { | 369 | 756 | return; | 370 | 756 | } | 371 | 1.52k | } | 372 | 765 | this->data(place).add(value); | 373 | 1.52k | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 1.52k | Arena&) const override { | 354 | 1.52k | const IColumn* data_column = columns[0]; | 355 | | if constexpr (arg_is_nullable) { | 356 | | const auto& nullable_column = | 357 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | | if (nullable_column.is_null_at(row_num)) { | 359 | | return; | 360 | | } | 361 | | data_column = &nullable_column.get_nested_column(); | 362 | | } | 363 | 1.52k | const auto& value = | 364 | 1.52k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 1.52k | .get_data()[row_num]; | 366 | 1.52k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | 1.52k | if (value < 0) { | 369 | 756 | return; | 370 | 756 | } | 371 | 1.52k | } | 372 | 765 | this->data(place).add(value); | 373 | 1.52k | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 353 | 1.52k | Arena&) const override { | 354 | 1.52k | const IColumn* data_column = columns[0]; | 355 | | if constexpr (arg_is_nullable) { | 356 | | const auto& nullable_column = | 357 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); | 358 | | if (nullable_column.is_null_at(row_num)) { | 359 | | return; | 360 | | } | 361 | | data_column = &nullable_column.get_nested_column(); | 362 | | } | 363 | 1.52k | const auto& value = | 364 | 1.52k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*data_column) | 365 | 1.52k | .get_data()[row_num]; | 366 | 1.52k | if constexpr (!std::is_same_v<ColVecType, ColumnBitmap>) { | 367 | | // Match bitmap_agg and to_bitmap before conversion to uint64_t. | 368 | 1.52k | if (value < 0) { | 369 | 756 | return; | 370 | 756 | } | 371 | 1.52k | } | 372 | 765 | this->data(place).add(value); | 373 | 1.52k | } |
|
374 | | |
375 | | void add_many(AggregateDataPtr __restrict place, const IColumn** columns, |
376 | 0 | std::vector<int>& rows, Arena&) const override { |
377 | | // now this only for bitmap_union_count function |
378 | 0 | if constexpr (arg_is_nullable && std::is_same_v<ColVecType, ColumnBitmap>) { |
379 | 0 | const auto& nullable_column = |
380 | 0 | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(*columns[0]); |
381 | 0 | const auto& column = assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>( |
382 | 0 | nullable_column.get_nested_column()); |
383 | 0 | std::vector<const BitmapValue*> values; |
384 | 0 | for (auto row : rows) { |
385 | 0 | if (!nullable_column.is_null_at(row)) { |
386 | 0 | values.push_back(&(column.get_data()[row])); |
387 | 0 | } |
388 | 0 | } |
389 | 0 | this->data(place).add_batch(values); |
390 | 0 | } else if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { |
391 | 0 | const auto& column = |
392 | 0 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]); |
393 | 0 | std::vector<const BitmapValue*> values; |
394 | 0 | for (auto row : rows) { |
395 | 0 | values.push_back(&(column.get_data()[row])); |
396 | 0 | } |
397 | 0 | this->data(place).add_batch(values); |
398 | 0 | } |
399 | 0 | } Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE8add_manyEPcPPKNS_7IColumnERSt6vectorIiSaIiEERNS_5ArenaE |
400 | | |
401 | | void add_batch_single_place(size_t batch_size, AggregateDataPtr place, const IColumn** columns, |
402 | 276 | Arena& arena) const override { |
403 | 276 | auto normal_add_lambda = [&]() { |
404 | 10.8k | for (size_t i = 0; i < batch_size; ++i) { |
405 | 10.5k | this->add(place, columns, i, arena); |
406 | 10.5k | } |
407 | 276 | }; _ZZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 6 | auto normal_add_lambda = [&]() { | 404 | 24 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 18 | this->add(place, columns, i, arena); | 406 | 18 | } | 407 | 6 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 6 | auto normal_add_lambda = [&]() { | 404 | 18 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 12 | this->add(place, columns, i, arena); | 406 | 12 | } | 407 | 6 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 36 | auto normal_add_lambda = [&]() { | 404 | 1.36k | for (size_t i = 0; i < batch_size; ++i) { | 405 | 1.33k | this->add(place, columns, i, arena); | 406 | 1.33k | } | 407 | 36 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 36 | auto normal_add_lambda = [&]() { | 404 | 1.36k | for (size_t i = 0; i < batch_size; ++i) { | 405 | 1.33k | this->add(place, columns, i, arena); | 406 | 1.33k | } | 407 | 36 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 36 | auto normal_add_lambda = [&]() { | 404 | 1.36k | for (size_t i = 0; i < batch_size; ++i) { | 405 | 1.33k | this->add(place, columns, i, arena); | 406 | 1.33k | } | 407 | 36 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 36 | auto normal_add_lambda = [&]() { | 404 | 1.36k | for (size_t i = 0; i < batch_size; ++i) { | 405 | 1.33k | this->add(place, columns, i, arena); | 406 | 1.33k | } | 407 | 36 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 30 | auto normal_add_lambda = [&]() { | 404 | 1.32k | for (size_t i = 0; i < batch_size; ++i) { | 405 | 1.29k | this->add(place, columns, i, arena); | 406 | 1.29k | } | 407 | 30 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 30 | auto normal_add_lambda = [&]() { | 404 | 1.32k | for (size_t i = 0; i < batch_size; ++i) { | 405 | 1.29k | this->add(place, columns, i, arena); | 406 | 1.29k | } | 407 | 30 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 30 | auto normal_add_lambda = [&]() { | 404 | 1.32k | for (size_t i = 0; i < batch_size; ++i) { | 405 | 1.29k | this->add(place, columns, i, arena); | 406 | 1.29k | } | 407 | 30 | }; |
_ZZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlvE_clEv Line | Count | Source | 403 | 30 | auto normal_add_lambda = [&]() { | 404 | 1.32k | for (size_t i = 0; i < batch_size; ++i) { | 405 | 1.29k | this->add(place, columns, i, arena); | 406 | 1.29k | } | 407 | 30 | }; |
|
408 | | |
409 | | // now this only for bitmap_union_count function |
410 | 276 | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { |
411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add |
412 | 12 | if (batch_size < BATCH_HALF_ROWS) { |
413 | 12 | normal_add_lambda(); |
414 | 12 | return; |
415 | 12 | } |
416 | 0 | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { |
417 | 0 | const auto& column = |
418 | 0 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); |
419 | 0 | std::vector<const BitmapValue*> values; |
420 | 0 | for (size_t i = 0; i < batch_size; ++i) { |
421 | 0 | if constexpr (arg_is_nullable) { |
422 | 0 | if ((*null_map)[i]) { |
423 | 0 | continue; // skip null value |
424 | 0 | } |
425 | 0 | } |
426 | 0 | values.push_back(&(column.get_data()[i])); |
427 | 0 | } |
428 | 0 | this->data(place).add_batch(values); |
429 | 0 | }; Unexecuted instantiation: _ZZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlRS7_PKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEE_clESC_SJ_ Unexecuted instantiation: _ZZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaEENKUlRS7_PKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEE_clESC_SJ_ |
430 | |
|
431 | 0 | if constexpr (arg_is_nullable) { |
432 | 0 | const auto& nullable_column = |
433 | 0 | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( |
434 | 0 | *columns[0]); |
435 | 0 | add_batch_lambda(nullable_column.get_nested_column(), |
436 | 0 | &(nullable_column.get_null_map_data())); |
437 | 0 | } else { |
438 | 0 | add_batch_lambda(*columns[0], nullptr); |
439 | 0 | } |
440 | 264 | } else { |
441 | 264 | normal_add_lambda(); |
442 | 264 | } |
443 | 276 | } _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 6 | Arena& arena) const override { | 403 | 6 | auto normal_add_lambda = [&]() { | 404 | 6 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 6 | this->add(place, columns, i, arena); | 406 | 6 | } | 407 | 6 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | 6 | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | 6 | if (batch_size < BATCH_HALF_ROWS) { | 413 | 6 | normal_add_lambda(); | 414 | 6 | return; | 415 | 6 | } | 416 | 0 | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | 0 | const auto& column = | 418 | 0 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | 0 | std::vector<const BitmapValue*> values; | 420 | 0 | for (size_t i = 0; i < batch_size; ++i) { | 421 | 0 | if constexpr (arg_is_nullable) { | 422 | 0 | if ((*null_map)[i]) { | 423 | 0 | continue; // skip null value | 424 | 0 | } | 425 | 0 | } | 426 | 0 | values.push_back(&(column.get_data()[i])); | 427 | 0 | } | 428 | 0 | this->data(place).add_batch(values); | 429 | 0 | }; | 430 | |
| 431 | 0 | if constexpr (arg_is_nullable) { | 432 | 0 | const auto& nullable_column = | 433 | 0 | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | 0 | *columns[0]); | 435 | 0 | add_batch_lambda(nullable_column.get_nested_column(), | 436 | 0 | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | | } else { | 441 | | normal_add_lambda(); | 442 | | } | 443 | 6 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 6 | Arena& arena) const override { | 403 | 6 | auto normal_add_lambda = [&]() { | 404 | 6 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 6 | this->add(place, columns, i, arena); | 406 | 6 | } | 407 | 6 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | 6 | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | 6 | if (batch_size < BATCH_HALF_ROWS) { | 413 | 6 | normal_add_lambda(); | 414 | 6 | return; | 415 | 6 | } | 416 | 0 | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | 0 | const auto& column = | 418 | 0 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | 0 | std::vector<const BitmapValue*> values; | 420 | 0 | for (size_t i = 0; i < batch_size; ++i) { | 421 | 0 | if constexpr (arg_is_nullable) { | 422 | 0 | if ((*null_map)[i]) { | 423 | 0 | continue; // skip null value | 424 | 0 | } | 425 | 0 | } | 426 | 0 | values.push_back(&(column.get_data()[i])); | 427 | 0 | } | 428 | 0 | this->data(place).add_batch(values); | 429 | 0 | }; | 430 | |
| 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | 0 | } else { | 438 | 0 | add_batch_lambda(*columns[0], nullptr); | 439 | 0 | } | 440 | | } else { | 441 | | normal_add_lambda(); | 442 | | } | 443 | 6 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 36 | Arena& arena) const override { | 403 | 36 | auto normal_add_lambda = [&]() { | 404 | 36 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 36 | this->add(place, columns, i, arena); | 406 | 36 | } | 407 | 36 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | | if (batch_size < BATCH_HALF_ROWS) { | 413 | | normal_add_lambda(); | 414 | | return; | 415 | | } | 416 | | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | | const auto& column = | 418 | | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | | std::vector<const BitmapValue*> values; | 420 | | for (size_t i = 0; i < batch_size; ++i) { | 421 | | if constexpr (arg_is_nullable) { | 422 | | if ((*null_map)[i]) { | 423 | | continue; // skip null value | 424 | | } | 425 | | } | 426 | | values.push_back(&(column.get_data()[i])); | 427 | | } | 428 | | this->data(place).add_batch(values); | 429 | | }; | 430 | | | 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | 36 | } else { | 441 | 36 | normal_add_lambda(); | 442 | 36 | } | 443 | 36 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 36 | Arena& arena) const override { | 403 | 36 | auto normal_add_lambda = [&]() { | 404 | 36 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 36 | this->add(place, columns, i, arena); | 406 | 36 | } | 407 | 36 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | | if (batch_size < BATCH_HALF_ROWS) { | 413 | | normal_add_lambda(); | 414 | | return; | 415 | | } | 416 | | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | | const auto& column = | 418 | | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | | std::vector<const BitmapValue*> values; | 420 | | for (size_t i = 0; i < batch_size; ++i) { | 421 | | if constexpr (arg_is_nullable) { | 422 | | if ((*null_map)[i]) { | 423 | | continue; // skip null value | 424 | | } | 425 | | } | 426 | | values.push_back(&(column.get_data()[i])); | 427 | | } | 428 | | this->data(place).add_batch(values); | 429 | | }; | 430 | | | 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | 36 | } else { | 441 | 36 | normal_add_lambda(); | 442 | 36 | } | 443 | 36 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 36 | Arena& arena) const override { | 403 | 36 | auto normal_add_lambda = [&]() { | 404 | 36 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 36 | this->add(place, columns, i, arena); | 406 | 36 | } | 407 | 36 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | | if (batch_size < BATCH_HALF_ROWS) { | 413 | | normal_add_lambda(); | 414 | | return; | 415 | | } | 416 | | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | | const auto& column = | 418 | | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | | std::vector<const BitmapValue*> values; | 420 | | for (size_t i = 0; i < batch_size; ++i) { | 421 | | if constexpr (arg_is_nullable) { | 422 | | if ((*null_map)[i]) { | 423 | | continue; // skip null value | 424 | | } | 425 | | } | 426 | | values.push_back(&(column.get_data()[i])); | 427 | | } | 428 | | this->data(place).add_batch(values); | 429 | | }; | 430 | | | 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | 36 | } else { | 441 | 36 | normal_add_lambda(); | 442 | 36 | } | 443 | 36 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 36 | Arena& arena) const override { | 403 | 36 | auto normal_add_lambda = [&]() { | 404 | 36 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 36 | this->add(place, columns, i, arena); | 406 | 36 | } | 407 | 36 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | | if (batch_size < BATCH_HALF_ROWS) { | 413 | | normal_add_lambda(); | 414 | | return; | 415 | | } | 416 | | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | | const auto& column = | 418 | | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | | std::vector<const BitmapValue*> values; | 420 | | for (size_t i = 0; i < batch_size; ++i) { | 421 | | if constexpr (arg_is_nullable) { | 422 | | if ((*null_map)[i]) { | 423 | | continue; // skip null value | 424 | | } | 425 | | } | 426 | | values.push_back(&(column.get_data()[i])); | 427 | | } | 428 | | this->data(place).add_batch(values); | 429 | | }; | 430 | | | 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | 36 | } else { | 441 | 36 | normal_add_lambda(); | 442 | 36 | } | 443 | 36 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 30 | Arena& arena) const override { | 403 | 30 | auto normal_add_lambda = [&]() { | 404 | 30 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 30 | this->add(place, columns, i, arena); | 406 | 30 | } | 407 | 30 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | | if (batch_size < BATCH_HALF_ROWS) { | 413 | | normal_add_lambda(); | 414 | | return; | 415 | | } | 416 | | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | | const auto& column = | 418 | | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | | std::vector<const BitmapValue*> values; | 420 | | for (size_t i = 0; i < batch_size; ++i) { | 421 | | if constexpr (arg_is_nullable) { | 422 | | if ((*null_map)[i]) { | 423 | | continue; // skip null value | 424 | | } | 425 | | } | 426 | | values.push_back(&(column.get_data()[i])); | 427 | | } | 428 | | this->data(place).add_batch(values); | 429 | | }; | 430 | | | 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | 30 | } else { | 441 | 30 | normal_add_lambda(); | 442 | 30 | } | 443 | 30 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 30 | Arena& arena) const override { | 403 | 30 | auto normal_add_lambda = [&]() { | 404 | 30 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 30 | this->add(place, columns, i, arena); | 406 | 30 | } | 407 | 30 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | | if (batch_size < BATCH_HALF_ROWS) { | 413 | | normal_add_lambda(); | 414 | | return; | 415 | | } | 416 | | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | | const auto& column = | 418 | | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | | std::vector<const BitmapValue*> values; | 420 | | for (size_t i = 0; i < batch_size; ++i) { | 421 | | if constexpr (arg_is_nullable) { | 422 | | if ((*null_map)[i]) { | 423 | | continue; // skip null value | 424 | | } | 425 | | } | 426 | | values.push_back(&(column.get_data()[i])); | 427 | | } | 428 | | this->data(place).add_batch(values); | 429 | | }; | 430 | | | 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | 30 | } else { | 441 | 30 | normal_add_lambda(); | 442 | 30 | } | 443 | 30 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 30 | Arena& arena) const override { | 403 | 30 | auto normal_add_lambda = [&]() { | 404 | 30 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 30 | this->add(place, columns, i, arena); | 406 | 30 | } | 407 | 30 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | | if (batch_size < BATCH_HALF_ROWS) { | 413 | | normal_add_lambda(); | 414 | | return; | 415 | | } | 416 | | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | | const auto& column = | 418 | | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | | std::vector<const BitmapValue*> values; | 420 | | for (size_t i = 0; i < batch_size; ++i) { | 421 | | if constexpr (arg_is_nullable) { | 422 | | if ((*null_map)[i]) { | 423 | | continue; // skip null value | 424 | | } | 425 | | } | 426 | | values.push_back(&(column.get_data()[i])); | 427 | | } | 428 | | this->data(place).add_batch(values); | 429 | | }; | 430 | | | 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | 30 | } else { | 441 | 30 | normal_add_lambda(); | 442 | 30 | } | 443 | 30 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE22add_batch_single_placeEmPcPPKNS_7IColumnERNS_5ArenaE Line | Count | Source | 402 | 30 | Arena& arena) const override { | 403 | 30 | auto normal_add_lambda = [&]() { | 404 | 30 | for (size_t i = 0; i < batch_size; ++i) { | 405 | 30 | this->add(place, columns, i, arena); | 406 | 30 | } | 407 | 30 | }; | 408 | | | 409 | | // now this only for bitmap_union_count function | 410 | | if constexpr (std::is_same_v<ColVecType, ColumnBitmap>) { | 411 | | // if batch_size is small, the add_batch of fast union seems to be slower than normal add | 412 | | if (batch_size < BATCH_HALF_ROWS) { | 413 | | normal_add_lambda(); | 414 | | return; | 415 | | } | 416 | | auto add_batch_lambda = [&](const IColumn& data_column, const NullMap* null_map) { | 417 | | const auto& column = | 418 | | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(data_column); | 419 | | std::vector<const BitmapValue*> values; | 420 | | for (size_t i = 0; i < batch_size; ++i) { | 421 | | if constexpr (arg_is_nullable) { | 422 | | if ((*null_map)[i]) { | 423 | | continue; // skip null value | 424 | | } | 425 | | } | 426 | | values.push_back(&(column.get_data()[i])); | 427 | | } | 428 | | this->data(place).add_batch(values); | 429 | | }; | 430 | | | 431 | | if constexpr (arg_is_nullable) { | 432 | | const auto& nullable_column = | 433 | | assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>( | 434 | | *columns[0]); | 435 | | add_batch_lambda(nullable_column.get_nested_column(), | 436 | | &(nullable_column.get_null_map_data())); | 437 | | } else { | 438 | | add_batch_lambda(*columns[0], nullptr); | 439 | | } | 440 | 30 | } else { | 441 | 30 | normal_add_lambda(); | 442 | 30 | } | 443 | 30 | } |
|
444 | | |
445 | | void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs, |
446 | 0 | Arena&) const override { |
447 | 0 | this->data(place).merge(this->data(rhs).get()); |
448 | 0 | } Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE5mergeEPcPKcRNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE5mergeEPcPKcRNS_5ArenaE |
449 | | |
450 | 0 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { |
451 | 0 | this->data(place).write(buf); |
452 | 0 | } Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE9serializeEPKcRNS_14BufferWritableE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE9serializeEPKcRNS_14BufferWritableE |
453 | | |
454 | | void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf, |
455 | 0 | Arena&) const override { |
456 | 0 | this->data(place).read(buf); |
457 | 0 | } Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Unexecuted instantiation: _ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE |
458 | | |
459 | 281 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { |
460 | 281 | auto& value_data = this->data(place).get(); |
461 | 281 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); |
462 | 281 | column.get_data().push_back(value_data.cardinality()); |
463 | 281 | } _ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 6 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 6 | auto& value_data = this->data(place).get(); | 461 | 6 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 6 | column.get_data().push_back(value_data.cardinality()); | 463 | 6 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 7 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 7 | auto& value_data = this->data(place).get(); | 461 | 7 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 7 | column.get_data().push_back(value_data.cardinality()); | 463 | 7 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 36 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 36 | auto& value_data = this->data(place).get(); | 461 | 36 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 36 | column.get_data().push_back(value_data.cardinality()); | 463 | 36 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 36 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 36 | auto& value_data = this->data(place).get(); | 461 | 36 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 36 | column.get_data().push_back(value_data.cardinality()); | 463 | 36 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 36 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 36 | auto& value_data = this->data(place).get(); | 461 | 36 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 36 | column.get_data().push_back(value_data.cardinality()); | 463 | 36 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 36 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 36 | auto& value_data = this->data(place).get(); | 461 | 36 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 36 | column.get_data().push_back(value_data.cardinality()); | 463 | 36 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 31 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 31 | auto& value_data = this->data(place).get(); | 461 | 31 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 31 | column.get_data().push_back(value_data.cardinality()); | 463 | 31 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 31 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 31 | auto& value_data = this->data(place).get(); | 461 | 31 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 31 | column.get_data().push_back(value_data.cardinality()); | 463 | 31 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 31 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 31 | auto& value_data = this->data(place).get(); | 461 | 31 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 31 | column.get_data().push_back(value_data.cardinality()); | 463 | 31 | } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 459 | 31 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 460 | 31 | auto& value_data = this->data(place).get(); | 461 | 31 | auto& column = assert_cast<ColVecResult&, TypeCheckOnRelease::DISABLE>(to); | 462 | 31 | column.get_data().push_back(value_data.cardinality()); | 463 | 31 | } |
|
464 | | |
465 | 46 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); }_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE5resetEPc Line | Count | Source | 465 | 1 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_17ColumnComplexTypeILNS_13PrimitiveTypeE22EEEE5resetEPc Line | Count | Source | 465 | 1 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE5resetEPc Line | Count | Source | 465 | 6 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE5resetEPc Line | Count | Source | 465 | 6 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE5resetEPc Line | Count | Source | 465 | 6 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb1ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE5resetEPc Line | Count | Source | 465 | 6 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE3EEEE5resetEPc Line | Count | Source | 465 | 5 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE4EEEE5resetEPc Line | Count | Source | 465 | 5 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE5EEEE5resetEPc Line | Count | Source | 465 | 5 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
_ZNK5doris28AggregateFunctionBitmapCountILb0ENS_12ColumnVectorILNS_13PrimitiveTypeE6EEEE5resetEPc Line | Count | Source | 465 | 5 | void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); } |
|
466 | | }; |
467 | | |
468 | | AggregateFunctionPtr create_aggregate_function_bitmap_union(const std::string& name, |
469 | | const DataTypes& argument_types, |
470 | | const bool result_is_nullable); |
471 | | |
472 | | } // namespace doris |