/root/doris/be/src/pipeline/dependency.cpp
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 | | #include "dependency.h" |
19 | | |
20 | | #include <memory> |
21 | | #include <mutex> |
22 | | |
23 | | #include "common/logging.h" |
24 | | #include "exec/rowid_fetcher.h" |
25 | | #include "pipeline/exec/multi_cast_data_streamer.h" |
26 | | #include "pipeline/pipeline_fragment_context.h" |
27 | | #include "pipeline/pipeline_task.h" |
28 | | #include "runtime/exec_env.h" |
29 | | #include "runtime/memory/mem_tracker.h" |
30 | | #include "runtime_filter/runtime_filter_consumer.h" |
31 | | #include "util/brpc_client_cache.h" |
32 | | #include "vec/exec/scan/file_scanner.h" |
33 | | #include "vec/exprs/vectorized_agg_fn.h" |
34 | | #include "vec/exprs/vslot_ref.h" |
35 | | #include "vec/spill/spill_stream_manager.h" |
36 | | #include "vec/utils/util.hpp" |
37 | | |
38 | | namespace doris::pipeline { |
39 | | #include "common/compile_check_begin.h" |
40 | | |
41 | | Dependency* BasicSharedState::create_source_dependency(int operator_id, int node_id, |
42 | 397k | const std::string& name) { |
43 | 397k | source_deps.push_back(std::make_shared<Dependency>(operator_id, node_id, name + "_DEPENDENCY")); |
44 | 397k | source_deps.back()->set_shared_state(this); |
45 | 397k | return source_deps.back().get(); |
46 | 397k | } |
47 | | |
48 | | void BasicSharedState::create_source_dependencies(int num_sources, int operator_id, int node_id, |
49 | 115k | const std::string& name) { |
50 | 115k | source_deps.resize(num_sources, nullptr); |
51 | 764k | for (auto& source_dep : source_deps) { |
52 | 764k | source_dep = std::make_shared<Dependency>(operator_id, node_id, name + "_DEPENDENCY"); |
53 | 764k | source_dep->set_shared_state(this); |
54 | 764k | } |
55 | 115k | } |
56 | | |
57 | | Dependency* BasicSharedState::create_sink_dependency(int dest_id, int node_id, |
58 | 968k | const std::string& name) { |
59 | 968k | sink_deps.push_back(std::make_shared<Dependency>(dest_id, node_id, name + "_DEPENDENCY", true)); |
60 | 968k | sink_deps.back()->set_shared_state(this); |
61 | 968k | return sink_deps.back().get(); |
62 | 968k | } |
63 | | |
64 | 4.28M | void Dependency::_add_block_task(std::shared_ptr<PipelineTask> task) { |
65 | 18.4E | DCHECK(_blocked_task.empty() || _blocked_task[_blocked_task.size() - 1].lock() == nullptr || |
66 | 18.4E | _blocked_task[_blocked_task.size() - 1].lock().get() != task.get()) |
67 | 18.4E | << "Duplicate task: " << task->debug_string(); |
68 | 4.28M | _blocked_task.push_back(task); |
69 | 4.28M | } |
70 | | |
71 | 35.7M | void Dependency::set_ready() { |
72 | 35.7M | if (_ready) { |
73 | 32.8M | return; |
74 | 32.8M | } |
75 | 2.89M | _watcher.stop(); |
76 | 2.89M | std::vector<std::weak_ptr<PipelineTask>> local_block_task {}; |
77 | 2.89M | { |
78 | 2.89M | std::unique_lock<std::mutex> lc(_task_lock); |
79 | 2.89M | if (_ready) { |
80 | 24 | return; |
81 | 24 | } |
82 | 2.89M | _ready = true; |
83 | 2.89M | local_block_task.swap(_blocked_task); |
84 | 2.89M | } |
85 | 4.29M | for (auto task : local_block_task) { |
86 | 4.29M | if (auto t = task.lock()) { |
87 | 4.29M | std::unique_lock<std::mutex> lc(_task_lock); |
88 | 4.29M | THROW_IF_ERROR(t->wake_up(this)); |
89 | 4.29M | } |
90 | 4.29M | } |
91 | 2.89M | } |
92 | | |
93 | 43.2M | Dependency* Dependency::is_blocked_by(std::shared_ptr<PipelineTask> task) { |
94 | 43.2M | std::unique_lock<std::mutex> lc(_task_lock); |
95 | 43.2M | auto ready = _ready.load(); |
96 | 43.2M | if (!ready && task) { |
97 | 4.29M | _add_block_task(task); |
98 | 4.29M | start_watcher(); |
99 | 4.29M | THROW_IF_ERROR(task->blocked(this)); |
100 | 4.29M | } |
101 | 43.2M | return ready ? nullptr : this; |
102 | 43.2M | } |
103 | | |
104 | 201k | std::string Dependency::debug_string(int indentation_level) { |
105 | 201k | fmt::memory_buffer debug_string_buffer; |
106 | 201k | fmt::format_to(debug_string_buffer, "{}{}: id={}, block task = {}, ready={}, _always_ready={}", |
107 | 201k | std::string(indentation_level * 2, ' '), _name, _node_id, _blocked_task.size(), |
108 | 201k | _ready, _always_ready); |
109 | 201k | return fmt::to_string(debug_string_buffer); |
110 | 201k | } |
111 | | |
112 | 0 | std::string CountedFinishDependency::debug_string(int indentation_level) { |
113 | 0 | fmt::memory_buffer debug_string_buffer; |
114 | 0 | fmt::format_to(debug_string_buffer, |
115 | 0 | "{}{}: id={}, block_task={}, ready={}, _always_ready={}, count={}", |
116 | 0 | std::string(indentation_level * 2, ' '), _name, _node_id, _blocked_task.size(), |
117 | 0 | _ready, _always_ready, _counter); |
118 | 0 | return fmt::to_string(debug_string_buffer); |
119 | 0 | } |
120 | | |
121 | 674 | void RuntimeFilterTimer::call_timeout() { |
122 | 674 | _parent->set_ready(); |
123 | 674 | } |
124 | | |
125 | 14.5k | void RuntimeFilterTimer::call_ready() { |
126 | 14.5k | _parent->set_ready(); |
127 | 14.5k | } |
128 | | |
129 | | // should check rf timeout in two case: |
130 | | // 1. the rf is ready just remove the wait queue |
131 | | // 2. if the rf have local dependency, the rf should start wait when all local dependency is ready |
132 | 482k | bool RuntimeFilterTimer::should_be_check_timeout() { |
133 | 482k | if (!_parent->ready() && !_local_runtime_filter_dependencies.empty()) { |
134 | 4.19k | bool all_ready = true; |
135 | 4.19k | for (auto& dep : _local_runtime_filter_dependencies) { |
136 | 4.19k | if (!dep->ready()) { |
137 | 4.19k | all_ready = false; |
138 | 4.19k | break; |
139 | 4.19k | } |
140 | 4.19k | } |
141 | 4.19k | if (all_ready) { |
142 | 4 | _local_runtime_filter_dependencies.clear(); |
143 | 4 | _registration_time = MonotonicMillis(); |
144 | 4 | } |
145 | 4.19k | return all_ready; |
146 | 4.19k | } |
147 | 477k | return true; |
148 | 482k | } |
149 | | |
150 | 8 | void RuntimeFilterTimerQueue::start() { |
151 | 67.5k | while (!_stop) { |
152 | 67.5k | std::unique_lock<std::mutex> lk(cv_m); |
153 | | |
154 | 70.9k | while (_que.empty() && !_stop) { |
155 | 6.72k | cv.wait_for(lk, std::chrono::seconds(3), [this] { return !_que.empty() || _stop; }); |
156 | 3.36k | } |
157 | 67.5k | if (_stop) { |
158 | 3 | break; |
159 | 3 | } |
160 | 67.5k | { |
161 | 67.5k | std::unique_lock<std::mutex> lc(_que_lock); |
162 | 67.5k | std::list<std::shared_ptr<pipeline::RuntimeFilterTimer>> new_que; |
163 | 482k | for (auto& it : _que) { |
164 | 482k | if (it.use_count() == 1) { |
165 | | // `use_count == 1` means this runtime filter has been released |
166 | 482k | } else if (it->should_be_check_timeout()) { |
167 | 477k | if (it->force_wait_timeout() || it->_parent->is_blocked_by()) { |
168 | | // This means runtime filter is not ready, so we call timeout or continue to poll this timer. |
169 | 463k | int64_t ms_since_registration = MonotonicMillis() - it->registration_time(); |
170 | 463k | if (ms_since_registration > it->wait_time_ms()) { |
171 | 674 | it->call_timeout(); |
172 | 463k | } else { |
173 | 463k | new_que.push_back(std::move(it)); |
174 | 463k | } |
175 | 463k | } |
176 | 477k | } else { |
177 | 4.19k | new_que.push_back(std::move(it)); |
178 | 4.19k | } |
179 | 482k | } |
180 | 67.5k | new_que.swap(_que); |
181 | 67.5k | } |
182 | 67.5k | std::this_thread::sleep_for(std::chrono::milliseconds(interval)); |
183 | 67.5k | } |
184 | 8 | _shutdown = true; |
185 | 8 | } |
186 | | |
187 | 340k | void LocalExchangeSharedState::sub_running_sink_operators() { |
188 | 340k | std::unique_lock<std::mutex> lc(le_lock); |
189 | 340k | if (exchanger->_running_sink_operators.fetch_sub(1) == 1) { |
190 | 112k | _set_always_ready(); |
191 | 112k | } |
192 | 340k | } |
193 | | |
194 | 750k | void LocalExchangeSharedState::sub_running_source_operators() { |
195 | 750k | std::unique_lock<std::mutex> lc(le_lock); |
196 | 750k | if (exchanger->_running_source_operators.fetch_sub(1) == 1) { |
197 | 112k | _set_always_ready(); |
198 | 112k | exchanger->finalize(); |
199 | 112k | } |
200 | 750k | } |
201 | | |
202 | 112k | LocalExchangeSharedState::LocalExchangeSharedState(int num_instances) { |
203 | 112k | source_deps.resize(num_instances, nullptr); |
204 | 112k | mem_counters.resize(num_instances, nullptr); |
205 | 112k | } |
206 | | |
207 | 78 | vectorized::MutableColumns AggSharedState::_get_keys_hash_table() { |
208 | 78 | return std::visit( |
209 | 78 | vectorized::Overload { |
210 | 78 | [&](std::monostate& arg) { |
211 | 0 | throw doris::Exception(ErrorCode::INTERNAL_ERROR, "uninited hash table"); |
212 | 0 | return vectorized::MutableColumns(); |
213 | 0 | }, |
214 | 78 | [&](auto&& agg_method) -> vectorized::MutableColumns { |
215 | 78 | vectorized::MutableColumns key_columns; |
216 | 240 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { |
217 | 162 | key_columns.emplace_back( |
218 | 162 | probe_expr_ctxs[i]->root()->data_type()->create_column()); |
219 | 162 | } |
220 | 78 | auto& data = *agg_method.hash_table; |
221 | 78 | bool has_null_key = data.has_null_key_data(); |
222 | 78 | const auto size = data.size() - has_null_key; |
223 | 78 | using KeyType = std::decay_t<decltype(agg_method)>::Key; |
224 | 78 | std::vector<KeyType> keys(size); |
225 | | |
226 | 78 | uint32_t num_rows = 0; |
227 | 78 | auto iter = aggregate_data_container->begin(); |
228 | 78 | { |
229 | 10.1k | while (iter != aggregate_data_container->end()) { |
230 | 10.0k | keys[num_rows] = iter.get_key<KeyType>(); |
231 | 10.0k | ++iter; |
232 | 10.0k | ++num_rows; |
233 | 10.0k | } |
234 | 78 | } |
235 | 78 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); |
236 | 78 | if (has_null_key) { |
237 | 2 | key_columns[0]->insert_data(nullptr, 0); |
238 | 2 | } |
239 | 78 | return key_columns; |
240 | 78 | }}, dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized16MethodSerializedI9PHHashMapINS_9StringRefEPc11DefaultHashIS7_vEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_ Line | Count | Source | 214 | 6 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 6 | vectorized::MutableColumns key_columns; | 216 | 30 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 24 | key_columns.emplace_back( | 218 | 24 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 24 | } | 220 | 6 | auto& data = *agg_method.hash_table; | 221 | 6 | bool has_null_key = data.has_null_key_data(); | 222 | 6 | const auto size = data.size() - has_null_key; | 223 | 6 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 6 | std::vector<KeyType> keys(size); | 225 | | | 226 | 6 | uint32_t num_rows = 0; | 227 | 6 | auto iter = aggregate_data_container->begin(); | 228 | 6 | { | 229 | 3.20k | while (iter != aggregate_data_container->end()) { | 230 | 3.19k | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 3.19k | ++iter; | 232 | 3.19k | ++num_rows; | 233 | 3.19k | } | 234 | 6 | } | 235 | 6 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 6 | if (has_null_key) { | 237 | 0 | key_columns[0]->insert_data(nullptr, 0); | 238 | 0 | } | 239 | 6 | return key_columns; | 240 | 6 | }}, |
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIh9PHHashMapIhPc9HashCRC32IhEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIt9PHHashMapItPc9HashCRC32ItEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_ dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIj9PHHashMapIjPc9HashCRC32IjEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_ Line | Count | Source | 214 | 2 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 2 | vectorized::MutableColumns key_columns; | 216 | 4 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 2 | key_columns.emplace_back( | 218 | 2 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 2 | } | 220 | 2 | auto& data = *agg_method.hash_table; | 221 | 2 | bool has_null_key = data.has_null_key_data(); | 222 | 2 | const auto size = data.size() - has_null_key; | 223 | 2 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 2 | std::vector<KeyType> keys(size); | 225 | | | 226 | 2 | uint32_t num_rows = 0; | 227 | 2 | auto iter = aggregate_data_container->begin(); | 228 | 2 | { | 229 | 6 | while (iter != aggregate_data_container->end()) { | 230 | 4 | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 4 | ++iter; | 232 | 4 | ++num_rows; | 233 | 4 | } | 234 | 2 | } | 235 | 2 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 2 | if (has_null_key) { | 237 | 0 | key_columns[0]->insert_data(nullptr, 0); | 238 | 0 | } | 239 | 2 | return key_columns; | 240 | 2 | }}, |
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIm9PHHashMapImPc9HashCRC32ImEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized19MethodStringNoCacheINS_13StringHashMapIPcNS_9AllocatorILb1ELb1ELb0ENS_22DefaultMemoryAllocatorELb1EEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc9HashCRC32IS8_EEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIN4wide7integerILm256EjEE9PHHashMapIS8_Pc9HashCRC32IS8_EEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_ dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIj9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISH_EESaISK_EEOT_ Line | Count | Source | 214 | 2 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 2 | vectorized::MutableColumns key_columns; | 216 | 4 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 2 | key_columns.emplace_back( | 218 | 2 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 2 | } | 220 | 2 | auto& data = *agg_method.hash_table; | 221 | 2 | bool has_null_key = data.has_null_key_data(); | 222 | 2 | const auto size = data.size() - has_null_key; | 223 | 2 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 2 | std::vector<KeyType> keys(size); | 225 | | | 226 | 2 | uint32_t num_rows = 0; | 227 | 2 | auto iter = aggregate_data_container->begin(); | 228 | 2 | { | 229 | 4 | while (iter != aggregate_data_container->end()) { | 230 | 2 | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 2 | ++iter; | 232 | 2 | ++num_rows; | 233 | 2 | } | 234 | 2 | } | 235 | 2 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 2 | if (has_null_key) { | 237 | 0 | key_columns[0]->insert_data(nullptr, 0); | 238 | 0 | } | 239 | 2 | return key_columns; | 240 | 2 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIm9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISH_EESaISK_EEOT_ Line | Count | Source | 214 | 8 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 8 | vectorized::MutableColumns key_columns; | 216 | 16 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 8 | key_columns.emplace_back( | 218 | 8 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 8 | } | 220 | 8 | auto& data = *agg_method.hash_table; | 221 | 8 | bool has_null_key = data.has_null_key_data(); | 222 | 8 | const auto size = data.size() - has_null_key; | 223 | 8 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 8 | std::vector<KeyType> keys(size); | 225 | | | 226 | 8 | uint32_t num_rows = 0; | 227 | 8 | auto iter = aggregate_data_container->begin(); | 228 | 8 | { | 229 | 36 | while (iter != aggregate_data_container->end()) { | 230 | 28 | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 28 | ++iter; | 232 | 28 | ++num_rows; | 233 | 28 | } | 234 | 8 | } | 235 | 8 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 8 | if (has_null_key) { | 237 | 0 | key_columns[0]->insert_data(nullptr, 0); | 238 | 0 | } | 239 | 8 | return key_columns; | 240 | 8 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIhNS4_15DataWithNullKeyI9PHHashMapIhPc9HashCRC32IhEEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISJ_EESaISM_EEOT_ Line | Count | Source | 214 | 2 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 2 | vectorized::MutableColumns key_columns; | 216 | 4 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 2 | key_columns.emplace_back( | 218 | 2 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 2 | } | 220 | 2 | auto& data = *agg_method.hash_table; | 221 | 2 | bool has_null_key = data.has_null_key_data(); | 222 | 2 | const auto size = data.size() - has_null_key; | 223 | 2 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 2 | std::vector<KeyType> keys(size); | 225 | | | 226 | 2 | uint32_t num_rows = 0; | 227 | 2 | auto iter = aggregate_data_container->begin(); | 228 | 2 | { | 229 | 8 | while (iter != aggregate_data_container->end()) { | 230 | 6 | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 6 | ++iter; | 232 | 6 | ++num_rows; | 233 | 6 | } | 234 | 2 | } | 235 | 2 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 2 | if (has_null_key) { | 237 | 0 | key_columns[0]->insert_data(nullptr, 0); | 238 | 0 | } | 239 | 2 | return key_columns; | 240 | 2 | }}, |
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberItNS4_15DataWithNullKeyI9PHHashMapItPc9HashCRC32ItEEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISJ_EESaISM_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc9HashCRC32IjEEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISJ_EESaISM_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc9HashCRC32ImEEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISJ_EESaISM_EEOT_ dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEEEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISL_EESaISO_EEOT_ Line | Count | Source | 214 | 9 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 9 | vectorized::MutableColumns key_columns; | 216 | 18 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 9 | key_columns.emplace_back( | 218 | 9 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 9 | } | 220 | 9 | auto& data = *agg_method.hash_table; | 221 | 9 | bool has_null_key = data.has_null_key_data(); | 222 | 9 | const auto size = data.size() - has_null_key; | 223 | 9 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 9 | std::vector<KeyType> keys(size); | 225 | | | 226 | 9 | uint32_t num_rows = 0; | 227 | 9 | auto iter = aggregate_data_container->begin(); | 228 | 9 | { | 229 | 1.79k | while (iter != aggregate_data_container->end()) { | 230 | 1.78k | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 1.78k | ++iter; | 232 | 1.78k | ++num_rows; | 233 | 1.78k | } | 234 | 9 | } | 235 | 9 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 9 | if (has_null_key) { | 237 | 1 | key_columns[0]->insert_data(nullptr, 0); | 238 | 1 | } | 239 | 9 | return key_columns; | 240 | 9 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEEEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISL_EESaISO_EEOT_ Line | Count | Source | 214 | 12 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 12 | vectorized::MutableColumns key_columns; | 216 | 24 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 12 | key_columns.emplace_back( | 218 | 12 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 12 | } | 220 | 12 | auto& data = *agg_method.hash_table; | 221 | 12 | bool has_null_key = data.has_null_key_data(); | 222 | 12 | const auto size = data.size() - has_null_key; | 223 | 12 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 12 | std::vector<KeyType> keys(size); | 225 | | | 226 | 12 | uint32_t num_rows = 0; | 227 | 12 | auto iter = aggregate_data_container->begin(); | 228 | 12 | { | 229 | 2.82k | while (iter != aggregate_data_container->end()) { | 230 | 2.81k | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 2.81k | ++iter; | 232 | 2.81k | ++num_rows; | 233 | 2.81k | } | 234 | 12 | } | 235 | 12 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 12 | if (has_null_key) { | 237 | 1 | key_columns[0]->insert_data(nullptr, 0); | 238 | 1 | } | 239 | 12 | return key_columns; | 240 | 12 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_EEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISM_EESaISP_EEOT_ Line | Count | Source | 214 | 1 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 1 | vectorized::MutableColumns key_columns; | 216 | 2 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 1 | key_columns.emplace_back( | 218 | 1 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 1 | } | 220 | 1 | auto& data = *agg_method.hash_table; | 221 | 1 | bool has_null_key = data.has_null_key_data(); | 222 | 1 | const auto size = data.size() - has_null_key; | 223 | 1 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 1 | std::vector<KeyType> keys(size); | 225 | | | 226 | 1 | uint32_t num_rows = 0; | 227 | 1 | auto iter = aggregate_data_container->begin(); | 228 | 1 | { | 229 | 4 | while (iter != aggregate_data_container->end()) { | 230 | 3 | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 3 | ++iter; | 232 | 3 | ++num_rows; | 233 | 3 | } | 234 | 1 | } | 235 | 1 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 1 | if (has_null_key) { | 237 | 0 | key_columns[0]->insert_data(nullptr, 0); | 238 | 0 | } | 239 | 1 | return key_columns; | 240 | 1 | }}, |
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm256EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_EEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISM_EESaISP_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_19MethodStringNoCacheINS4_15DataWithNullKeyINS_13StringHashMapIPcNS_9AllocatorILb1ELb1ELb0ENS_22DefaultMemoryAllocatorELb1EEEEEEEEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISK_EESaISN_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImEEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_6UInt72EPc9HashCRC32IS7_EEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_6UInt96EPc9HashCRC32IS7_EEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt104EPc9HashCRC32IS7_EEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_EEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_EEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_ dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_EEEEEESt6vectorINS_3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_ Line | Count | Source | 214 | 36 | [&](auto&& agg_method) -> vectorized::MutableColumns { | 215 | 36 | vectorized::MutableColumns key_columns; | 216 | 138 | for (int i = 0; i < probe_expr_ctxs.size(); ++i) { | 217 | 102 | key_columns.emplace_back( | 218 | 102 | probe_expr_ctxs[i]->root()->data_type()->create_column()); | 219 | 102 | } | 220 | 36 | auto& data = *agg_method.hash_table; | 221 | 36 | bool has_null_key = data.has_null_key_data(); | 222 | 36 | const auto size = data.size() - has_null_key; | 223 | 36 | using KeyType = std::decay_t<decltype(agg_method)>::Key; | 224 | 36 | std::vector<KeyType> keys(size); | 225 | | | 226 | 36 | uint32_t num_rows = 0; | 227 | 36 | auto iter = aggregate_data_container->begin(); | 228 | 36 | { | 229 | 2.27k | while (iter != aggregate_data_container->end()) { | 230 | 2.23k | keys[num_rows] = iter.get_key<KeyType>(); | 231 | 2.23k | ++iter; | 232 | 2.23k | ++num_rows; | 233 | 2.23k | } | 234 | 36 | } | 235 | 36 | agg_method.insert_keys_into_columns(keys, key_columns, num_rows); | 236 | 36 | if (has_null_key) { | 237 | 0 | key_columns[0]->insert_data(nullptr, 0); | 238 | 0 | } | 239 | 36 | return key_columns; | 240 | 36 | }}, |
|
241 | 78 | agg_data->method_variant); |
242 | 78 | } |
243 | | |
244 | 78 | void AggSharedState::build_limit_heap(size_t hash_table_size) { |
245 | 78 | limit_columns = _get_keys_hash_table(); |
246 | 9.97k | for (size_t i = 0; i < hash_table_size; ++i) { |
247 | 9.89k | limit_heap.emplace(i, limit_columns, order_directions, null_directions); |
248 | 9.89k | } |
249 | 9.91k | while (hash_table_size > limit) { |
250 | 9.84k | limit_heap.pop(); |
251 | 9.84k | hash_table_size--; |
252 | 9.84k | } |
253 | 78 | limit_columns_min = limit_heap.top()._row_id; |
254 | 78 | } |
255 | | |
256 | | bool AggSharedState::do_limit_filter(vectorized::Block* block, size_t num_rows, |
257 | 323 | const std::vector<int>* key_locs) { |
258 | 323 | if (num_rows) { |
259 | 323 | cmp_res.resize(num_rows); |
260 | 323 | need_computes.resize(num_rows); |
261 | 323 | memset(need_computes.data(), 0, need_computes.size()); |
262 | 323 | memset(cmp_res.data(), 0, cmp_res.size()); |
263 | | |
264 | 323 | const auto key_size = null_directions.size(); |
265 | 1.06k | for (int i = 0; i < key_size; i++) { |
266 | 737 | block->get_by_position(key_locs ? key_locs->operator[](i) : i) |
267 | 737 | .column->compare_internal(limit_columns_min, *limit_columns[i], |
268 | 737 | null_directions[i], order_directions[i], cmp_res, |
269 | 737 | need_computes.data()); |
270 | 737 | } |
271 | | |
272 | 323 | auto set_computes_arr = [](auto* __restrict res, auto* __restrict computes, size_t rows) { |
273 | 85.2k | for (size_t i = 0; i < rows; ++i) { |
274 | 84.8k | computes[i] = computes[i] == res[i]; |
275 | 84.8k | } |
276 | 323 | }; |
277 | 323 | set_computes_arr(cmp_res.data(), need_computes.data(), num_rows); |
278 | | |
279 | 323 | return std::find(need_computes.begin(), need_computes.end(), 0) != need_computes.end(); |
280 | 323 | } |
281 | | |
282 | 0 | return false; |
283 | 323 | } |
284 | | |
285 | 3.39k | Status AggSharedState::reset_hash_table() { |
286 | 3.39k | return std::visit( |
287 | 3.39k | vectorized::Overload { |
288 | 3.39k | [&](std::monostate& arg) -> Status { |
289 | 0 | return Status::InternalError("Uninited hash table"); |
290 | 0 | }, |
291 | 3.39k | [&](auto& agg_method) { |
292 | 3.39k | auto& hash_table = *agg_method.hash_table; |
293 | 3.39k | using HashTableType = std::decay_t<decltype(hash_table)>; |
294 | | |
295 | 3.39k | agg_method.arena.clear(); |
296 | 3.39k | agg_method.inited_iterator = false; |
297 | | |
298 | 1.05M | hash_table.for_each_mapped([&](auto& mapped) { |
299 | 1.05M | if (mapped) { |
300 | 1.05M | static_cast<void>(_destroy_agg_status(mapped)); |
301 | 1.05M | mapped = nullptr; |
302 | 1.05M | } |
303 | 1.05M | }); Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized16MethodSerializedI9PHHashMapINS_9StringRefEPc11DefaultHashIS7_vEEEEEEDaRT_ENKUlSE_E_clIS8_EEDaSE_ dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIh9PHHashMapIhPc9HashCRC32IhEEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_ Line | Count | Source | 298 | 326 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 326 | if (mapped) { | 300 | 326 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 326 | mapped = nullptr; | 302 | 326 | } | 303 | 326 | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIt9PHHashMapItPc9HashCRC32ItEEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_ Line | Count | Source | 298 | 322 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 322 | if (mapped) { | 300 | 322 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 322 | mapped = nullptr; | 302 | 322 | } | 303 | 322 | }); |
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIj9PHHashMapIjPc9HashCRC32IjEEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_ dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIm9PHHashMapImPc9HashCRC32ImEEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_ Line | Count | Source | 298 | 356 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 356 | if (mapped) { | 300 | 356 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 356 | mapped = nullptr; | 302 | 356 | } | 303 | 356 | }); |
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized19MethodStringNoCacheINS_13StringHashMapIPcNS_9AllocatorILb1ELb1ELb0ENS_22DefaultMemoryAllocatorELb1EEEEEEEEEDaRT_ENKUlSE_E_clIS7_EEDaSE_ dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc9HashCRC32IS8_EEEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_ Line | Count | Source | 298 | 516 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 516 | if (mapped) { | 300 | 516 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 516 | mapped = nullptr; | 302 | 516 | } | 303 | 516 | }); |
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIN4wide7integerILm256EjEE9PHHashMapIS8_Pc9HashCRC32IS8_EEEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_ dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIj9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEEEEEEEDaRT_ENKUlSF_E_clIS7_EEDaSF_ Line | Count | Source | 298 | 1.04M | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 1.04M | if (mapped) { | 300 | 1.04M | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 1.04M | mapped = nullptr; | 302 | 1.04M | } | 303 | 1.04M | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIm9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEEEEEEEDaRT_ENKUlSF_E_clIS7_EEDaSF_ Line | Count | Source | 298 | 1.42k | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 1.42k | if (mapped) { | 300 | 1.42k | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 1.42k | mapped = nullptr; | 302 | 1.42k | } | 303 | 1.42k | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIhNS4_15DataWithNullKeyI9PHHashMapIhPc9HashCRC32IhEEEEEEEEEEDaRT_ENKUlSH_E_clIS9_EEDaSH_ Line | Count | Source | 298 | 144 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 144 | if (mapped) { | 300 | 144 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 144 | mapped = nullptr; | 302 | 144 | } | 303 | 144 | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberItNS4_15DataWithNullKeyI9PHHashMapItPc9HashCRC32ItEEEEEEEEEEDaRT_ENKUlSH_E_clIS9_EEDaSH_ Line | Count | Source | 298 | 270 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 270 | if (mapped) { | 300 | 270 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 270 | mapped = nullptr; | 302 | 270 | } | 303 | 270 | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc9HashCRC32IjEEEEEEEEEEDaRT_ENKUlSH_E_clIS9_EEDaSH_ Line | Count | Source | 298 | 790 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 790 | if (mapped) { | 300 | 790 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 790 | mapped = nullptr; | 302 | 790 | } | 303 | 790 | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc9HashCRC32ImEEEEEEEEEEDaRT_ENKUlSH_E_clIS9_EEDaSH_ Line | Count | Source | 298 | 1.61k | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 1.61k | if (mapped) { | 300 | 1.61k | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 1.61k | mapped = nullptr; | 302 | 1.61k | } | 303 | 1.61k | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEEEEEEEEEEEDaRT_ENKUlSJ_E_clIS9_EEDaSJ_ Line | Count | Source | 298 | 1.20k | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 1.20k | if (mapped) { | 300 | 1.20k | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 1.20k | mapped = nullptr; | 302 | 1.20k | } | 303 | 1.20k | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEEEEEEEEEEEDaRT_ENKUlSJ_E_clIS9_EEDaSJ_ Line | Count | Source | 298 | 1.55k | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 1.55k | if (mapped) { | 300 | 1.55k | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 1.55k | mapped = nullptr; | 302 | 1.55k | } | 303 | 1.55k | }); |
dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_EEEEEEEEEEDaRT_ENKUlSK_E_clISC_EEDaSK_ Line | Count | Source | 298 | 766 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 766 | if (mapped) { | 300 | 766 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 766 | mapped = nullptr; | 302 | 766 | } | 303 | 766 | }); |
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm256EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_EEEEEEEEEEDaRT_ENKUlSK_E_clISC_EEDaSK_ Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_19MethodStringNoCacheINS4_15DataWithNullKeyINS_13StringHashMapIPcNS_9AllocatorILb1ELb1ELb0ENS_22DefaultMemoryAllocatorELb1EEEEEEEEEEEEEDaRT_ENKUlSI_E_clIS9_EEDaSI_ Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImEEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_ Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_6UInt72EPc9HashCRC32IS7_EEEEEEDaRT_ENKUlSE_E_clIS8_EEDaSE_ Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_6UInt96EPc9HashCRC32IS7_EEEEEEDaRT_ENKUlSE_E_clIS8_EEDaSE_ Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt104EPc9HashCRC32IS7_EEEEEEDaRT_ENKUlSE_E_clIS8_EEDaSE_ Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_EEEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_ Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_EEEEEEDaRT_ENKUlSE_E_clIS8_EEDaSE_ Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_EEEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_ |
304 | | |
305 | 3.39k | if (hash_table.has_null_key_data()) { |
306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< |
307 | 0 | vectorized::AggregateDataPtr>()); |
308 | 0 | RETURN_IF_ERROR(st); |
309 | 0 | } |
310 | | |
311 | 3.39k | aggregate_data_container.reset(new AggregateDataContainer( |
312 | 3.39k | sizeof(typename HashTableType::key_type), |
313 | 3.39k | ((total_size_of_aggregate_states + align_aggregate_states - 1) / |
314 | 3.39k | align_aggregate_states) * |
315 | 3.39k | align_aggregate_states)); |
316 | 3.39k | agg_method.hash_table.reset(new HashTableType()); |
317 | 3.39k | return Status::OK(); |
318 | 3.39k | }}, Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized16MethodSerializedI9PHHashMapINS_9StringRefEPc11DefaultHashIS7_vEEEEEEDaRT_ dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIh9PHHashMapIhPc9HashCRC32IhEEEEEEDaRT_ Line | Count | Source | 291 | 118 | [&](auto& agg_method) { | 292 | 118 | auto& hash_table = *agg_method.hash_table; | 293 | 118 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 118 | agg_method.arena.clear(); | 296 | 118 | agg_method.inited_iterator = false; | 297 | | | 298 | 118 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 118 | if (mapped) { | 300 | 118 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 118 | mapped = nullptr; | 302 | 118 | } | 303 | 118 | }); | 304 | | | 305 | 118 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 118 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 118 | sizeof(typename HashTableType::key_type), | 313 | 118 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 118 | align_aggregate_states) * | 315 | 118 | align_aggregate_states)); | 316 | 118 | agg_method.hash_table.reset(new HashTableType()); | 317 | 118 | return Status::OK(); | 318 | 118 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIt9PHHashMapItPc9HashCRC32ItEEEEEEDaRT_ Line | Count | Source | 291 | 70 | [&](auto& agg_method) { | 292 | 70 | auto& hash_table = *agg_method.hash_table; | 293 | 70 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 70 | agg_method.arena.clear(); | 296 | 70 | agg_method.inited_iterator = false; | 297 | | | 298 | 70 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 70 | if (mapped) { | 300 | 70 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 70 | mapped = nullptr; | 302 | 70 | } | 303 | 70 | }); | 304 | | | 305 | 70 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 70 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 70 | sizeof(typename HashTableType::key_type), | 313 | 70 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 70 | align_aggregate_states) * | 315 | 70 | align_aggregate_states)); | 316 | 70 | agg_method.hash_table.reset(new HashTableType()); | 317 | 70 | return Status::OK(); | 318 | 70 | }}, |
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIj9PHHashMapIjPc9HashCRC32IjEEEEEEDaRT_ dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIm9PHHashMapImPc9HashCRC32ImEEEEEEDaRT_ Line | Count | Source | 291 | 107 | [&](auto& agg_method) { | 292 | 107 | auto& hash_table = *agg_method.hash_table; | 293 | 107 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 107 | agg_method.arena.clear(); | 296 | 107 | agg_method.inited_iterator = false; | 297 | | | 298 | 107 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 107 | if (mapped) { | 300 | 107 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 107 | mapped = nullptr; | 302 | 107 | } | 303 | 107 | }); | 304 | | | 305 | 107 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 107 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 107 | sizeof(typename HashTableType::key_type), | 313 | 107 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 107 | align_aggregate_states) * | 315 | 107 | align_aggregate_states)); | 316 | 107 | agg_method.hash_table.reset(new HashTableType()); | 317 | 107 | return Status::OK(); | 318 | 107 | }}, |
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized19MethodStringNoCacheINS_13StringHashMapIPcNS_9AllocatorILb1ELb1ELb0ENS_22DefaultMemoryAllocatorELb1EEEEEEEEEDaRT_ dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc9HashCRC32IS8_EEEEEEDaRT_ Line | Count | Source | 291 | 146 | [&](auto& agg_method) { | 292 | 146 | auto& hash_table = *agg_method.hash_table; | 293 | 146 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 146 | agg_method.arena.clear(); | 296 | 146 | agg_method.inited_iterator = false; | 297 | | | 298 | 146 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 146 | if (mapped) { | 300 | 146 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 146 | mapped = nullptr; | 302 | 146 | } | 303 | 146 | }); | 304 | | | 305 | 146 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 146 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 146 | sizeof(typename HashTableType::key_type), | 313 | 146 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 146 | align_aggregate_states) * | 315 | 146 | align_aggregate_states)); | 316 | 146 | agg_method.hash_table.reset(new HashTableType()); | 317 | 146 | return Status::OK(); | 318 | 146 | }}, |
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIN4wide7integerILm256EjEE9PHHashMapIS8_Pc9HashCRC32IS8_EEEEEEDaRT_ dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIj9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEEEEEEEDaRT_ Line | Count | Source | 291 | 239 | [&](auto& agg_method) { | 292 | 239 | auto& hash_table = *agg_method.hash_table; | 293 | 239 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 239 | agg_method.arena.clear(); | 296 | 239 | agg_method.inited_iterator = false; | 297 | | | 298 | 239 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 239 | if (mapped) { | 300 | 239 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 239 | mapped = nullptr; | 302 | 239 | } | 303 | 239 | }); | 304 | | | 305 | 239 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 239 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 239 | sizeof(typename HashTableType::key_type), | 313 | 239 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 239 | align_aggregate_states) * | 315 | 239 | align_aggregate_states)); | 316 | 239 | agg_method.hash_table.reset(new HashTableType()); | 317 | 239 | return Status::OK(); | 318 | 239 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIm9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEEEEEEEDaRT_ Line | Count | Source | 291 | 485 | [&](auto& agg_method) { | 292 | 485 | auto& hash_table = *agg_method.hash_table; | 293 | 485 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 485 | agg_method.arena.clear(); | 296 | 485 | agg_method.inited_iterator = false; | 297 | | | 298 | 485 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 485 | if (mapped) { | 300 | 485 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 485 | mapped = nullptr; | 302 | 485 | } | 303 | 485 | }); | 304 | | | 305 | 485 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 485 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 485 | sizeof(typename HashTableType::key_type), | 313 | 485 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 485 | align_aggregate_states) * | 315 | 485 | align_aggregate_states)); | 316 | 485 | agg_method.hash_table.reset(new HashTableType()); | 317 | 485 | return Status::OK(); | 318 | 485 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIhNS4_15DataWithNullKeyI9PHHashMapIhPc9HashCRC32IhEEEEEEEEEEDaRT_ Line | Count | Source | 291 | 50 | [&](auto& agg_method) { | 292 | 50 | auto& hash_table = *agg_method.hash_table; | 293 | 50 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 50 | agg_method.arena.clear(); | 296 | 50 | agg_method.inited_iterator = false; | 297 | | | 298 | 50 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 50 | if (mapped) { | 300 | 50 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 50 | mapped = nullptr; | 302 | 50 | } | 303 | 50 | }); | 304 | | | 305 | 50 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 50 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 50 | sizeof(typename HashTableType::key_type), | 313 | 50 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 50 | align_aggregate_states) * | 315 | 50 | align_aggregate_states)); | 316 | 50 | agg_method.hash_table.reset(new HashTableType()); | 317 | 50 | return Status::OK(); | 318 | 50 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberItNS4_15DataWithNullKeyI9PHHashMapItPc9HashCRC32ItEEEEEEEEEEDaRT_ Line | Count | Source | 291 | 58 | [&](auto& agg_method) { | 292 | 58 | auto& hash_table = *agg_method.hash_table; | 293 | 58 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 58 | agg_method.arena.clear(); | 296 | 58 | agg_method.inited_iterator = false; | 297 | | | 298 | 58 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 58 | if (mapped) { | 300 | 58 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 58 | mapped = nullptr; | 302 | 58 | } | 303 | 58 | }); | 304 | | | 305 | 58 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 58 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 58 | sizeof(typename HashTableType::key_type), | 313 | 58 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 58 | align_aggregate_states) * | 315 | 58 | align_aggregate_states)); | 316 | 58 | agg_method.hash_table.reset(new HashTableType()); | 317 | 58 | return Status::OK(); | 318 | 58 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc9HashCRC32IjEEEEEEEEEEDaRT_ Line | Count | Source | 291 | 202 | [&](auto& agg_method) { | 292 | 202 | auto& hash_table = *agg_method.hash_table; | 293 | 202 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 202 | agg_method.arena.clear(); | 296 | 202 | agg_method.inited_iterator = false; | 297 | | | 298 | 202 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 202 | if (mapped) { | 300 | 202 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 202 | mapped = nullptr; | 302 | 202 | } | 303 | 202 | }); | 304 | | | 305 | 202 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 202 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 202 | sizeof(typename HashTableType::key_type), | 313 | 202 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 202 | align_aggregate_states) * | 315 | 202 | align_aggregate_states)); | 316 | 202 | agg_method.hash_table.reset(new HashTableType()); | 317 | 202 | return Status::OK(); | 318 | 202 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc9HashCRC32ImEEEEEEEEEEDaRT_ Line | Count | Source | 291 | 472 | [&](auto& agg_method) { | 292 | 472 | auto& hash_table = *agg_method.hash_table; | 293 | 472 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 472 | agg_method.arena.clear(); | 296 | 472 | agg_method.inited_iterator = false; | 297 | | | 298 | 472 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 472 | if (mapped) { | 300 | 472 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 472 | mapped = nullptr; | 302 | 472 | } | 303 | 472 | }); | 304 | | | 305 | 472 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 472 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 472 | sizeof(typename HashTableType::key_type), | 313 | 472 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 472 | align_aggregate_states) * | 315 | 472 | align_aggregate_states)); | 316 | 472 | agg_method.hash_table.reset(new HashTableType()); | 317 | 472 | return Status::OK(); | 318 | 472 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEEEEEEEEEEEDaRT_ Line | Count | Source | 291 | 446 | [&](auto& agg_method) { | 292 | 446 | auto& hash_table = *agg_method.hash_table; | 293 | 446 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 446 | agg_method.arena.clear(); | 296 | 446 | agg_method.inited_iterator = false; | 297 | | | 298 | 446 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 446 | if (mapped) { | 300 | 446 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 446 | mapped = nullptr; | 302 | 446 | } | 303 | 446 | }); | 304 | | | 305 | 446 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 446 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 446 | sizeof(typename HashTableType::key_type), | 313 | 446 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 446 | align_aggregate_states) * | 315 | 446 | align_aggregate_states)); | 316 | 446 | agg_method.hash_table.reset(new HashTableType()); | 317 | 446 | return Status::OK(); | 318 | 446 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEEEEEEEEEEEDaRT_ Line | Count | Source | 291 | 791 | [&](auto& agg_method) { | 292 | 791 | auto& hash_table = *agg_method.hash_table; | 293 | 791 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 791 | agg_method.arena.clear(); | 296 | 791 | agg_method.inited_iterator = false; | 297 | | | 298 | 791 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 791 | if (mapped) { | 300 | 791 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 791 | mapped = nullptr; | 302 | 791 | } | 303 | 791 | }); | 304 | | | 305 | 791 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 791 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 791 | sizeof(typename HashTableType::key_type), | 313 | 791 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 791 | align_aggregate_states) * | 315 | 791 | align_aggregate_states)); | 316 | 791 | agg_method.hash_table.reset(new HashTableType()); | 317 | 791 | return Status::OK(); | 318 | 791 | }}, |
dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_EEEEEEEEEEDaRT_ Line | Count | Source | 291 | 214 | [&](auto& agg_method) { | 292 | 214 | auto& hash_table = *agg_method.hash_table; | 293 | 214 | using HashTableType = std::decay_t<decltype(hash_table)>; | 294 | | | 295 | 214 | agg_method.arena.clear(); | 296 | 214 | agg_method.inited_iterator = false; | 297 | | | 298 | 214 | hash_table.for_each_mapped([&](auto& mapped) { | 299 | 214 | if (mapped) { | 300 | 214 | static_cast<void>(_destroy_agg_status(mapped)); | 301 | 214 | mapped = nullptr; | 302 | 214 | } | 303 | 214 | }); | 304 | | | 305 | 214 | if (hash_table.has_null_key_data()) { | 306 | 0 | auto st = _destroy_agg_status(hash_table.template get_null_key_data< | 307 | 0 | vectorized::AggregateDataPtr>()); | 308 | 0 | RETURN_IF_ERROR(st); | 309 | 0 | } | 310 | | | 311 | 214 | aggregate_data_container.reset(new AggregateDataContainer( | 312 | 214 | sizeof(typename HashTableType::key_type), | 313 | 214 | ((total_size_of_aggregate_states + align_aggregate_states - 1) / | 314 | 214 | align_aggregate_states) * | 315 | 214 | align_aggregate_states)); | 316 | 214 | agg_method.hash_table.reset(new HashTableType()); | 317 | 214 | return Status::OK(); | 318 | 214 | }}, |
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm256EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_EEEEEEEEEEDaRT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_19MethodStringNoCacheINS4_15DataWithNullKeyINS_13StringHashMapIPcNS_9AllocatorILb1ELb1ELb0ENS_22DefaultMemoryAllocatorELb1EEEEEEEEEEEEEDaRT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImEEEEEEDaRT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_6UInt72EPc9HashCRC32IS7_EEEEEEDaRT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_6UInt96EPc9HashCRC32IS7_EEEEEEDaRT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt104EPc9HashCRC32IS7_EEEEEEDaRT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_EEEEEEDaRT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_EEEEEEDaRT_ Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_EEEEEEDaRT_ |
319 | 3.39k | agg_data->method_variant); |
320 | 3.39k | } |
321 | | |
322 | 279 | void PartitionedAggSharedState::init_spill_params(size_t spill_partition_count) { |
323 | 279 | partition_count = spill_partition_count; |
324 | 279 | max_partition_index = partition_count - 1; |
325 | | |
326 | 9.20k | for (int i = 0; i < partition_count; ++i) { |
327 | 8.92k | spill_partitions.emplace_back(std::make_shared<AggSpillPartition>()); |
328 | 8.92k | } |
329 | 279 | } |
330 | | |
331 | 267 | void PartitionedAggSharedState::update_spill_stream_profiles(RuntimeProfile* source_profile) { |
332 | 8.54k | for (auto& partition : spill_partitions) { |
333 | 8.54k | if (partition->spilling_stream_) { |
334 | 0 | partition->spilling_stream_->update_shared_profiles(source_profile); |
335 | 0 | } |
336 | 8.54k | for (auto& stream : partition->spill_streams_) { |
337 | 2.30k | if (stream) { |
338 | 2.30k | stream->update_shared_profiles(source_profile); |
339 | 2.30k | } |
340 | 2.30k | } |
341 | 8.54k | } |
342 | 267 | } |
343 | | |
344 | | Status AggSpillPartition::get_spill_stream(RuntimeState* state, int node_id, |
345 | | RuntimeProfile* profile, |
346 | 4.89k | vectorized::SpillStreamSPtr& spill_stream) { |
347 | 4.89k | if (spilling_stream_) { |
348 | 2.53k | spill_stream = spilling_stream_; |
349 | 2.53k | return Status::OK(); |
350 | 2.53k | } |
351 | 2.36k | RETURN_IF_ERROR(ExecEnv::GetInstance()->spill_stream_mgr()->register_spill_stream( |
352 | 2.36k | state, spilling_stream_, print_id(state->query_id()), "agg", node_id, |
353 | 2.36k | std::numeric_limits<int32_t>::max(), std::numeric_limits<size_t>::max(), profile)); |
354 | 2.36k | spill_streams_.emplace_back(spilling_stream_); |
355 | 2.36k | spill_stream = spilling_stream_; |
356 | 2.36k | return Status::OK(); |
357 | 2.36k | } |
358 | 5.48k | void AggSpillPartition::close() { |
359 | 5.48k | if (spilling_stream_) { |
360 | 1 | spilling_stream_.reset(); |
361 | 1 | } |
362 | 5.48k | for (auto& stream : spill_streams_) { |
363 | 5 | (void)ExecEnv::GetInstance()->spill_stream_mgr()->delete_spill_stream(stream); |
364 | 5 | } |
365 | 5.48k | spill_streams_.clear(); |
366 | 5.48k | } |
367 | | |
368 | 316 | void PartitionedAggSharedState::close() { |
369 | | // need to use CAS instead of only `if (!is_closed)` statement, |
370 | | // to avoid concurrent entry of close() both pass the if statement |
371 | 316 | bool false_close = false; |
372 | 316 | if (!is_closed.compare_exchange_strong(false_close, true)) { |
373 | 45 | return; |
374 | 45 | } |
375 | 316 | DCHECK(!false_close && is_closed); |
376 | 5.48k | for (auto partition : spill_partitions) { |
377 | 5.48k | partition->close(); |
378 | 5.48k | } |
379 | 271 | spill_partitions.clear(); |
380 | 271 | } |
381 | | |
382 | 19 | void SpillSortSharedState::update_spill_stream_profiles(RuntimeProfile* source_profile) { |
383 | 28 | for (auto& stream : sorted_streams) { |
384 | 28 | if (stream) { |
385 | 28 | stream->update_shared_profiles(source_profile); |
386 | 28 | } |
387 | 28 | } |
388 | 19 | } |
389 | | |
390 | 21 | void SpillSortSharedState::close() { |
391 | | // need to use CAS instead of only `if (!is_closed)` statement, |
392 | | // to avoid concurrent entry of close() both pass the if statement |
393 | 21 | bool false_close = false; |
394 | 21 | if (!is_closed.compare_exchange_strong(false_close, true)) { |
395 | 1 | return; |
396 | 1 | } |
397 | 21 | DCHECK(!false_close && is_closed); |
398 | 20 | for (auto& stream : sorted_streams) { |
399 | 1 | (void)ExecEnv::GetInstance()->spill_stream_mgr()->delete_spill_stream(stream); |
400 | 1 | } |
401 | 20 | sorted_streams.clear(); |
402 | 20 | } |
403 | | |
404 | | MultiCastSharedState::MultiCastSharedState(ObjectPool* pool, int cast_sender_count, int node_id) |
405 | 1.82k | : multi_cast_data_streamer(std::make_unique<pipeline::MultiCastDataStreamer>( |
406 | 1.82k | pool, cast_sender_count, node_id)) {} |
407 | | |
408 | 0 | void MultiCastSharedState::update_spill_stream_profiles(RuntimeProfile* source_profile) {} |
409 | | |
410 | 106k | int AggSharedState::get_slot_column_id(const vectorized::AggFnEvaluator* evaluator) { |
411 | 106k | auto ctxs = evaluator->input_exprs_ctxs(); |
412 | 18.4E | CHECK(ctxs.size() == 1 && ctxs[0]->root()->is_slot_ref()) |
413 | 18.4E | << "input_exprs_ctxs is invalid, input_exprs_ctx[0]=" |
414 | 18.4E | << ctxs[0]->root()->debug_string(); |
415 | 106k | return ((vectorized::VSlotRef*)ctxs[0]->root().get())->column_id(); |
416 | 106k | } |
417 | | |
418 | 2.31M | Status AggSharedState::_destroy_agg_status(vectorized::AggregateDataPtr data) { |
419 | 4.88M | for (int i = 0; i < aggregate_evaluators.size(); ++i) { |
420 | 2.56M | aggregate_evaluators[i]->function()->destroy(data + offsets_of_aggregate_states[i]); |
421 | 2.56M | } |
422 | 2.31M | return Status::OK(); |
423 | 2.31M | } |
424 | | |
425 | 112k | LocalExchangeSharedState::~LocalExchangeSharedState() = default; |
426 | | |
427 | 12.0k | Status SetSharedState::update_build_not_ignore_null(const vectorized::VExprContextSPtrs& ctxs) { |
428 | 12.0k | if (ctxs.size() > build_not_ignore_null.size()) { |
429 | 0 | return Status::InternalError("build_not_ignore_null not initialized"); |
430 | 0 | } |
431 | | |
432 | 99.8k | for (int i = 0; i < ctxs.size(); ++i) { |
433 | 87.7k | build_not_ignore_null[i] = build_not_ignore_null[i] || ctxs[i]->root()->is_nullable(); |
434 | 87.7k | } |
435 | | |
436 | 12.0k | return Status::OK(); |
437 | 12.0k | } |
438 | | |
439 | 19.2k | size_t SetSharedState::get_hash_table_size() const { |
440 | 19.2k | size_t hash_table_size = 0; |
441 | 19.2k | std::visit( |
442 | 19.3k | [&](auto&& arg) { |
443 | 19.3k | using HashTableCtxType = std::decay_t<decltype(arg)>; |
444 | 19.3k | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { |
445 | 19.3k | hash_table_size = arg.hash_table->size(); |
446 | 19.3k | } |
447 | 19.3k | }, Unexecuted instantiation: dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRSt9monostateEEDaOT_ dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized16MethodSerializedI9PHHashMapINS_9StringRefENS_14RowRefWithFlagE11DefaultHashIS7_vEEEEEEDaOT_ Line | Count | Source | 442 | 18.1k | [&](auto&& arg) { | 443 | 18.1k | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 18.1k | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 18.1k | hash_table_size = arg.hash_table->size(); | 446 | 18.1k | } | 447 | 18.1k | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized19MethodStringNoCacheI9PHHashMapINS_9StringRefENS_14RowRefWithFlagE11DefaultHashIS7_vEEEEEEDaOT_ Line | Count | Source | 442 | 316 | [&](auto&& arg) { | 443 | 316 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 316 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 316 | hash_table_size = arg.hash_table->size(); | 446 | 316 | } | 447 | 316 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized26MethodSingleNullableColumnINS4_19MethodStringNoCacheINS4_15DataWithNullKeyI9PHHashMapINS_9StringRefENS_14RowRefWithFlagE11DefaultHashIS9_vEEEEEEEEEEDaOT_ Line | Count | Source | 442 | 73 | [&](auto&& arg) { | 443 | 73 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 73 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 73 | hash_table_size = arg.hash_table->size(); | 446 | 73 | } | 447 | 73 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIhNS4_15DataWithNullKeyI9PHHashMapIhNS_14RowRefWithFlagE9HashCRC32IhEEEEEEEEEEDaOT_ Line | Count | Source | 442 | 75 | [&](auto&& arg) { | 443 | 75 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 75 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 75 | hash_table_size = arg.hash_table->size(); | 446 | 75 | } | 447 | 75 | }, |
Unexecuted instantiation: dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberItNS4_15DataWithNullKeyI9PHHashMapItNS_14RowRefWithFlagE9HashCRC32ItEEEEEEEEEEDaOT_ dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjNS_14RowRefWithFlagE9HashCRC32IjEEEEEEEEEEDaOT_ Line | Count | Source | 442 | 208 | [&](auto&& arg) { | 443 | 208 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 208 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 208 | hash_table_size = arg.hash_table->size(); | 446 | 208 | } | 447 | 208 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImNS_14RowRefWithFlagE9HashCRC32ImEEEEEEEEEEDaOT_ Line | Count | Source | 442 | 115 | [&](auto&& arg) { | 443 | 115 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 115 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 115 | hash_table_size = arg.hash_table->size(); | 446 | 115 | } | 447 | 115 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_NS_14RowRefWithFlagE9HashCRC32IS9_EEEEEEEEEEDaOT_ Line | Count | Source | 442 | 84 | [&](auto&& arg) { | 443 | 84 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 84 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 84 | hash_table_size = arg.hash_table->size(); | 446 | 84 | } | 447 | 84 | }, |
Unexecuted instantiation: dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm256EjEENS4_15DataWithNullKeyI9PHHashMapIS9_NS_14RowRefWithFlagE9HashCRC32IS9_EEEEEEEEEEDaOT_ Unexecuted instantiation: dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodOneNumberIh9PHHashMapIhNS_14RowRefWithFlagE9HashCRC32IhEEEEEEDaOT_ Unexecuted instantiation: dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodOneNumberIt9PHHashMapItNS_14RowRefWithFlagE9HashCRC32ItEEEEEEDaOT_ dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodOneNumberIj9PHHashMapIjNS_14RowRefWithFlagE9HashCRC32IjEEEEEEDaOT_ Line | Count | Source | 442 | 36 | [&](auto&& arg) { | 443 | 36 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 36 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 36 | hash_table_size = arg.hash_table->size(); | 446 | 36 | } | 447 | 36 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodOneNumberIm9PHHashMapImNS_14RowRefWithFlagE9HashCRC32ImEEEEEEDaOT_ Line | Count | Source | 442 | 16 | [&](auto&& arg) { | 443 | 16 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 16 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 16 | hash_table_size = arg.hash_table->size(); | 446 | 16 | } | 447 | 16 | }, |
Unexecuted instantiation: dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_NS_14RowRefWithFlagE9HashCRC32IS8_EEEEEEDaOT_ Unexecuted instantiation: dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodOneNumberIN4wide7integerILm256EjEE9PHHashMapIS8_NS_14RowRefWithFlagE9HashCRC32IS8_EEEEEEDaOT_ dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodKeysFixedI9PHHashMapImNS_14RowRefWithFlagE9HashCRC32ImEEEEEEDaOT_ Line | Count | Source | 442 | 27 | [&](auto&& arg) { | 443 | 27 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 27 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 27 | hash_table_size = arg.hash_table->size(); | 446 | 27 | } | 447 | 27 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_6UInt72ENS_14RowRefWithFlagE9HashCRC32IS7_EEEEEEDaOT_ Line | Count | Source | 442 | 36 | [&](auto&& arg) { | 443 | 36 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 36 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 36 | hash_table_size = arg.hash_table->size(); | 446 | 36 | } | 447 | 36 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_6UInt96ENS_14RowRefWithFlagE9HashCRC32IS7_EEEEEEDaOT_ Line | Count | Source | 442 | 36 | [&](auto&& arg) { | 443 | 36 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 36 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 36 | hash_table_size = arg.hash_table->size(); | 446 | 36 | } | 447 | 36 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt104ENS_14RowRefWithFlagE9HashCRC32IS7_EEEEEEDaOT_ Line | Count | Source | 442 | 45 | [&](auto&& arg) { | 443 | 45 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 45 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 45 | hash_table_size = arg.hash_table->size(); | 446 | 45 | } | 447 | 45 | }, |
Unexecuted instantiation: dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEENS_14RowRefWithFlagE9HashCRC32IS9_EEEEEEDaOT_ dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEENS_14RowRefWithFlagE9HashCRC32IS9_EEEEEEDaOT_ Line | Count | Source | 442 | 4 | [&](auto&& arg) { | 443 | 4 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 4 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 4 | hash_table_size = arg.hash_table->size(); | 446 | 4 | } | 447 | 4 | }, |
dependency.cpp:_ZZNK5doris8pipeline14SetSharedState19get_hash_table_sizeEvENK3$_0clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136ENS_14RowRefWithFlagE9HashCRC32IS7_EEEEEEDaOT_ Line | Count | Source | 442 | 86 | [&](auto&& arg) { | 443 | 86 | using HashTableCtxType = std::decay_t<decltype(arg)>; | 444 | 86 | if constexpr (!std::is_same_v<HashTableCtxType, std::monostate>) { | 445 | 86 | hash_table_size = arg.hash_table->size(); | 446 | 86 | } | 447 | 86 | }, |
|
448 | 19.2k | hash_table_variants->method_variant); |
449 | 19.2k | return hash_table_size; |
450 | 19.2k | } |
451 | | |
452 | 4.96k | Status SetSharedState::hash_table_init() { |
453 | 4.96k | std::vector<vectorized::DataTypePtr> data_types; |
454 | 40.2k | for (size_t i = 0; i != child_exprs_lists[0].size(); ++i) { |
455 | 35.2k | auto& ctx = child_exprs_lists[0][i]; |
456 | 35.2k | auto data_type = ctx->root()->data_type(); |
457 | 35.2k | if (build_not_ignore_null[i]) { |
458 | 35.0k | data_type = vectorized::make_nullable(data_type); |
459 | 35.0k | } |
460 | 35.2k | data_types.emplace_back(std::move(data_type)); |
461 | 35.2k | } |
462 | 4.96k | return init_hash_method<SetDataVariants>(hash_table_variants.get(), data_types, true); |
463 | 4.96k | } |
464 | | |
465 | | void AggSharedState::refresh_top_limit(size_t row_id, |
466 | 2.94k | const vectorized::ColumnRawPtrs& key_columns) { |
467 | 6.04k | for (int j = 0; j < key_columns.size(); ++j) { |
468 | 3.09k | limit_columns[j]->insert_from(*key_columns[j], row_id); |
469 | 3.09k | } |
470 | 2.94k | limit_heap.emplace(limit_columns[0]->size() - 1, limit_columns, order_directions, |
471 | 2.94k | null_directions); |
472 | | |
473 | 2.94k | limit_heap.pop(); |
474 | 2.94k | limit_columns_min = limit_heap.top()._row_id; |
475 | 2.94k | } |
476 | | |
477 | | } // namespace doris::pipeline |