Coverage Report

Created: 2025-09-11 19:59

/root/doris/be/src/pipeline/dependency.cpp
Line
Count
Source (jump to first uncovered line)
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 "exprs/runtime_filter.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 "vec/exprs/vectorized_agg_fn.h"
31
#include "vec/exprs/vslot_ref.h"
32
#include "vec/spill/spill_stream_manager.h"
33
34
namespace doris::pipeline {
35
36
Dependency* BasicSharedState::create_source_dependency(int operator_id, int node_id,
37
0
                                                       std::string name) {
38
0
    source_deps.push_back(std::make_shared<Dependency>(operator_id, node_id, name + "_DEPENDENCY"));
39
0
    source_deps.back()->set_shared_state(this);
40
0
    return source_deps.back().get();
41
0
}
42
43
0
Dependency* BasicSharedState::create_sink_dependency(int dest_id, int node_id, std::string name) {
44
0
    sink_deps.push_back(std::make_shared<Dependency>(dest_id, node_id, name + "_DEPENDENCY", true));
45
0
    sink_deps.back()->set_shared_state(this);
46
0
    return sink_deps.back().get();
47
0
}
48
49
0
void Dependency::_add_block_task(std::shared_ptr<PipelineTask> task) {
50
0
    DCHECK(_blocked_task.empty() || _blocked_task[_blocked_task.size() - 1].lock() == nullptr ||
51
0
           _blocked_task[_blocked_task.size() - 1].lock().get() != task.get())
52
0
            << "Duplicate task: " << task->debug_string();
53
0
    _blocked_task.push_back(task);
54
0
}
55
56
0
void Dependency::set_ready() {
57
0
    if (_ready) {
  Branch (57:9): [True: 0, False: 0]
58
0
        return;
59
0
    }
60
0
    _watcher.stop();
61
0
    std::vector<std::weak_ptr<PipelineTask>> local_block_task {};
62
0
    {
63
0
        std::unique_lock<std::mutex> lc(_task_lock);
64
0
        if (_ready) {
  Branch (64:13): [True: 0, False: 0]
65
0
            return;
66
0
        }
67
0
        _ready = true;
68
0
        local_block_task.swap(_blocked_task);
69
0
    }
70
0
    for (auto task : local_block_task) {
  Branch (70:20): [True: 0, False: 0]
71
0
        if (auto t = task.lock()) {
  Branch (71:18): [True: 0, False: 0]
72
0
            std::unique_lock<std::mutex> lc(_task_lock);
73
0
            t->wake_up();
74
0
        }
75
0
    }
76
0
}
77
78
0
Dependency* Dependency::is_blocked_by(std::shared_ptr<PipelineTask> task) {
79
0
    std::unique_lock<std::mutex> lc(_task_lock);
80
0
    auto ready = _ready.load();
81
0
    if (!ready && task) {
  Branch (81:9): [True: 0, False: 0]
  Branch (81:19): [True: 0, False: 0]
82
0
        _add_block_task(task);
83
0
    }
84
0
    return ready ? nullptr : this;
  Branch (84:12): [True: 0, False: 0]
85
0
}
86
87
0
std::string Dependency::debug_string(int indentation_level) {
88
0
    fmt::memory_buffer debug_string_buffer;
89
0
    fmt::format_to(debug_string_buffer,
90
0
                   "{}this={}, {}: id={}, block task = {}, ready={}, _always_ready={}",
91
0
                   std::string(indentation_level * 2, ' '), (void*)this, _name, _node_id,
92
0
                   _blocked_task.size(), _ready, _always_ready);
93
0
    return fmt::to_string(debug_string_buffer);
94
0
}
95
96
0
std::string CountedFinishDependency::debug_string(int indentation_level) {
97
0
    fmt::memory_buffer debug_string_buffer;
98
0
    fmt::format_to(debug_string_buffer,
99
0
                   "{}{}: id={}, block_task={}, ready={}, _always_ready={}, count={}",
100
0
                   std::string(indentation_level * 2, ' '), _name, _node_id, _blocked_task.size(),
101
0
                   _ready, _always_ready, _counter);
102
0
    return fmt::to_string(debug_string_buffer);
103
0
}
104
105
0
std::string RuntimeFilterDependency::debug_string(int indentation_level) {
106
0
    fmt::memory_buffer debug_string_buffer;
107
0
    fmt::format_to(debug_string_buffer, "{}, runtime filter: {}",
108
0
                   Dependency::debug_string(indentation_level), _runtime_filter->formatted_state());
109
0
    return fmt::to_string(debug_string_buffer);
110
0
}
111
112
0
Dependency* RuntimeFilterDependency::is_blocked_by(std::shared_ptr<PipelineTask> task) {
113
0
    std::unique_lock<std::mutex> lc(_task_lock);
114
0
    auto ready = _ready.load();
115
0
    if (!ready && task) {
  Branch (115:9): [True: 0, False: 0]
  Branch (115:19): [True: 0, False: 0]
116
0
        _add_block_task(task);
117
0
        task->_blocked_dep = this;
118
0
    }
119
0
    return ready ? nullptr : this;
  Branch (119:12): [True: 0, False: 0]
120
0
}
121
122
0
void RuntimeFilterTimer::call_timeout() {
123
0
    _parent->set_ready();
124
0
}
125
126
0
void RuntimeFilterTimer::call_ready() {
127
0
    _parent->set_ready();
128
0
}
129
130
// should check rf timeout in two case:
131
// 1. the rf is ready just remove the wait queue
132
// 2. if the rf have local dependency, the rf should start wait when all local dependency is ready
133
0
bool RuntimeFilterTimer::should_be_check_timeout() {
134
0
    if (!_parent->ready() && !_local_runtime_filter_dependencies.empty()) {
  Branch (134:9): [True: 0, False: 0]
  Branch (134:30): [True: 0, False: 0]
135
0
        bool all_ready = true;
136
0
        for (auto& dep : _local_runtime_filter_dependencies) {
  Branch (136:24): [True: 0, False: 0]
137
0
            if (!dep->ready()) {
  Branch (137:17): [True: 0, False: 0]
138
0
                all_ready = false;
139
0
                break;
140
0
            }
141
0
        }
142
0
        if (all_ready) {
  Branch (142:13): [True: 0, False: 0]
143
0
            _local_runtime_filter_dependencies.clear();
144
0
            _registration_time = MonotonicMillis();
145
0
        }
146
0
        return all_ready;
147
0
    }
148
0
    return true;
149
0
}
150
151
0
void RuntimeFilterTimerQueue::start() {
152
0
    while (!_stop) {
  Branch (152:12): [True: 0, False: 0]
153
0
        std::unique_lock<std::mutex> lk(cv_m);
154
155
0
        while (_que.empty() && !_stop) {
  Branch (155:16): [True: 0, False: 0]
  Branch (155:32): [True: 0, False: 0]
156
0
            cv.wait_for(lk, std::chrono::seconds(3), [this] { return !_que.empty() || _stop; });
  Branch (156:70): [True: 0, False: 0]
  Branch (156:87): [True: 0, False: 0]
157
0
        }
158
0
        if (_stop) {
  Branch (158:13): [True: 0, False: 0]
159
0
            break;
160
0
        }
161
0
        {
162
0
            std::unique_lock<std::mutex> lc(_que_lock);
163
0
            std::list<std::shared_ptr<pipeline::RuntimeFilterTimer>> new_que;
164
0
            for (auto& it : _que) {
  Branch (164:27): [True: 0, False: 0]
165
0
                if (it.use_count() == 1) {
  Branch (165:21): [True: 0, False: 0]
166
                    // `use_count == 1` means this runtime filter has been released
167
0
                } else if (it->should_be_check_timeout()) {
  Branch (167:28): [True: 0, False: 0]
168
0
                    if (it->force_wait_timeout() || it->_parent->is_blocked_by(nullptr)) {
  Branch (168:25): [True: 0, False: 0]
  Branch (168:25): [True: 0, False: 0]
  Branch (168:53): [True: 0, False: 0]
169
                        // This means runtime filter is not ready, so we call timeout or continue to poll this timer.
170
0
                        int64_t ms_since_registration = MonotonicMillis() - it->registration_time();
171
0
                        if (ms_since_registration > it->wait_time_ms()) {
  Branch (171:29): [True: 0, False: 0]
172
0
                            it->call_timeout();
173
0
                        } else {
174
0
                            new_que.push_back(std::move(it));
175
0
                        }
176
0
                    }
177
0
                } else {
178
0
                    new_que.push_back(std::move(it));
179
0
                }
180
0
            }
181
0
            new_que.swap(_que);
182
0
        }
183
0
        std::this_thread::sleep_for(std::chrono::milliseconds(interval));
184
0
    }
185
0
    _shutdown = true;
186
0
}
187
188
0
void LocalExchangeSharedState::sub_running_sink_operators() {
189
0
    std::unique_lock<std::mutex> lc(le_lock);
190
0
    if (exchanger->_running_sink_operators.fetch_sub(1) == 1) {
  Branch (190:9): [True: 0, False: 0]
191
0
        _set_always_ready();
192
0
    }
193
0
}
194
195
void LocalExchangeSharedState::sub_running_source_operators(
196
0
        LocalExchangeSourceLocalState& local_state) {
197
0
    std::unique_lock<std::mutex> lc(le_lock);
198
0
    if (exchanger->_running_source_operators.fetch_sub(1) == 1) {
  Branch (198:9): [True: 0, False: 0]
199
0
        _set_always_ready();
200
0
        exchanger->finalize(local_state);
201
0
    }
202
0
}
203
204
0
LocalExchangeSharedState::LocalExchangeSharedState(int num_instances) {
205
0
    source_deps.resize(num_instances, nullptr);
206
0
    mem_counters.resize(num_instances, nullptr);
207
0
}
208
209
0
vectorized::MutableColumns AggSharedState::_get_keys_hash_table() {
210
0
    return std::visit(
211
0
            vectorized::Overload {
212
0
                    [&](std::monostate& arg) {
213
0
                        throw doris::Exception(ErrorCode::INTERNAL_ERROR, "uninited hash table");
214
0
                        return vectorized::MutableColumns();
215
0
                    },
216
0
                    [&](auto&& agg_method) -> vectorized::MutableColumns {
217
0
                        vectorized::MutableColumns key_columns;
218
0
                        for (int i = 0; i < probe_expr_ctxs.size(); ++i) {
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
  Branch (218:41): [True: 0, False: 0]
219
0
                            key_columns.emplace_back(
220
0
                                    probe_expr_ctxs[i]->root()->data_type()->create_column());
221
0
                        }
222
0
                        auto& data = *agg_method.hash_table;
223
0
                        bool has_null_key = data.has_null_key_data();
224
0
                        const auto size = data.size() - has_null_key;
225
0
                        using KeyType = std::decay_t<decltype(agg_method.iterator->get_first())>;
226
0
                        std::vector<KeyType> keys(size);
227
228
0
                        size_t num_rows = 0;
229
0
                        auto iter = aggregate_data_container->begin();
230
0
                        {
231
0
                            while (iter != aggregate_data_container->end()) {
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
  Branch (231:36): [True: 0, False: 0]
232
0
                                keys[num_rows] = iter.get_key<KeyType>();
233
0
                                ++iter;
234
0
                                ++num_rows;
235
0
                            }
236
0
                        }
237
0
                        agg_method.insert_keys_into_columns(keys, key_columns, num_rows);
238
0
                        if (has_null_key) {
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
  Branch (238:29): [True: 0, False: 0]
239
0
                            key_columns[0]->insert_data(nullptr, 0);
240
0
                        }
241
0
                        return key_columns;
242
0
                    }},
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized16MethodSerializedI9PHHashMapINS_9StringRefEPc11DefaultHashIS7_vELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIh9PHHashMapIhPc11DefaultHashIhvELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIt9PHHashMapItPc11DefaultHashItvELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIj9PHHashMapIjPc9HashCRC32IjELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIm9PHHashMapImPc9HashCRC32ImELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized19MethodStringNoCacheINS_13StringHashMapIPc9AllocatorILb1ELb1ELb0E22DefaultMemoryAllocatorEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc9HashCRC32IS8_ELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIj9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISH_EESaISK_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIm9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISH_EESaISK_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc14HashMixWrapperIS8_9HashCRC32IS8_EELb0EEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISK_EESaISN_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIhNS4_15DataWithNullKeyI9PHHashMapIhPc11DefaultHashIhvELb0EEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISJ_EESaISM_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberItNS4_15DataWithNullKeyI9PHHashMapItPc11DefaultHashItvELb0EEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISJ_EESaISM_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc9HashCRC32IjELb0EEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISJ_EESaISM_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc9HashCRC32ImELb0EEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISJ_EESaISM_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEELb0EEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISL_EESaISO_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISL_EESaISO_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_ELb0EEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISM_EESaISP_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISO_EESaISR_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized26MethodSingleNullableColumnINS4_19MethodStringNoCacheINS4_15DataWithNullKeyINS_13StringHashMapIPc9AllocatorILb1ELb1ELb0E22DefaultMemoryAllocatorEEEEEEEEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISK_EESaISN_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImELb0EELb0EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImELb0EELb1EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISF_EESaISI_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_ELb0EELb0EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_ELb0EELb1EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_ELb0EELb0EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_ELb0EELb1EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_ELb0EELb0EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_ELb0EELb1EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISG_EESaISJ_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EELb0EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISH_EESaISK_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EELb1EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISH_EESaISK_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb0EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISK_EESaISN_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb1EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISK_EESaISN_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb0EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISK_EESaISN_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb1EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISK_EESaISN_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc14HashMixWrapperIS7_9HashCRC32IS7_EELb0EELb0EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState20_get_keys_hash_tableEvENK3$_1clIRNS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc14HashMixWrapperIS7_9HashCRC32IS7_EELb0EELb1EEEEESt6vectorIN3COWINS4_7IColumnEE11mutable_ptrISI_EESaISL_EEOT_
243
0
            agg_data->method_variant);
244
0
}
245
246
0
void AggSharedState::build_limit_heap(size_t hash_table_size) {
247
0
    limit_columns = _get_keys_hash_table();
248
0
    for (size_t i = 0; i < hash_table_size; ++i) {
  Branch (248:24): [True: 0, False: 0]
249
0
        limit_heap.emplace(i, limit_columns, order_directions, null_directions);
250
0
    }
251
0
    while (hash_table_size > limit) {
  Branch (251:12): [True: 0, False: 0]
252
0
        limit_heap.pop();
253
0
        hash_table_size--;
254
0
    }
255
0
    limit_columns_min = limit_heap.top()._row_id;
256
0
}
257
258
bool AggSharedState::do_limit_filter(vectorized::Block* block, size_t num_rows,
259
0
                                     const std::vector<int>* key_locs) {
260
0
    if (num_rows) {
  Branch (260:9): [True: 0, False: 0]
261
0
        cmp_res.resize(num_rows);
262
0
        need_computes.resize(num_rows);
263
0
        memset(need_computes.data(), 0, need_computes.size());
264
0
        memset(cmp_res.data(), 0, cmp_res.size());
265
266
0
        const auto key_size = null_directions.size();
267
0
        for (int i = 0; i < key_size; i++) {
  Branch (267:25): [True: 0, False: 0]
268
0
            block->get_by_position(key_locs ? key_locs->operator[](i) : i)
  Branch (268:36): [True: 0, False: 0]
269
0
                    .column->compare_internal(limit_columns_min, *limit_columns[i],
270
0
                                              null_directions[i], order_directions[i], cmp_res,
271
0
                                              need_computes.data());
272
0
        }
273
274
0
        auto set_computes_arr = [](auto* __restrict res, auto* __restrict computes, int rows) {
275
0
            for (int i = 0; i < rows; ++i) {
  Branch (275:29): [True: 0, False: 0]
276
0
                computes[i] = computes[i] == res[i];
277
0
            }
278
0
        };
279
0
        set_computes_arr(cmp_res.data(), need_computes.data(), num_rows);
280
281
0
        return std::find(need_computes.begin(), need_computes.end(), 0) != need_computes.end();
282
0
    }
283
284
0
    return false;
285
0
}
286
287
0
Status AggSharedState::reset_hash_table() {
288
0
    return std::visit(
289
0
            vectorized::Overload {
290
0
                    [&](std::monostate& arg) -> Status {
291
0
                        return Status::InternalError("Uninited hash table");
292
0
                    },
293
0
                    [&](auto& agg_method) {
294
0
                        auto& hash_table = *agg_method.hash_table;
295
0
                        using HashTableType = std::decay_t<decltype(hash_table)>;
296
297
0
                        agg_method.reset();
298
299
0
                        hash_table.for_each_mapped([&](auto& mapped) {
300
0
                            if (mapped) {
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
  Branch (300:33): [True: 0, False: 0]
301
0
                                static_cast<void>(_destroy_agg_status(mapped));
302
0
                                mapped = nullptr;
303
0
                            }
304
0
                        });
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized16MethodSerializedI9PHHashMapINS_9StringRefEPc11DefaultHashIS7_vELb0EEEEEEDaRT_ENKUlSE_E_clIS8_EEDaSE_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIh9PHHashMapIhPc11DefaultHashIhvELb0EEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIt9PHHashMapItPc11DefaultHashItvELb0EEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIj9PHHashMapIjPc9HashCRC32IjELb0EEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIm9PHHashMapImPc9HashCRC32ImELb0EEEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized19MethodStringNoCacheINS_13StringHashMapIPc9AllocatorILb1ELb1ELb0E22DefaultMemoryAllocatorEEEEEEEDaRT_ENKUlSE_E_clIS7_EEDaSE_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc9HashCRC32IS8_ELb0EEEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIj9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEELb0EEEEEEDaRT_ENKUlSF_E_clIS7_EEDaSF_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIm9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EEEEEEDaRT_ENKUlSF_E_clIS7_EEDaSF_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc14HashMixWrapperIS8_9HashCRC32IS8_EELb0EEEEEEDaRT_ENKUlSI_E_clISA_EEDaSI_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIhNS4_15DataWithNullKeyI9PHHashMapIhPc11DefaultHashIhvELb0EEEEEEEEEEDaRT_ENKUlSH_E_clIS9_EEDaSH_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberItNS4_15DataWithNullKeyI9PHHashMapItPc11DefaultHashItvELb0EEEEEEEEEEDaRT_ENKUlSH_E_clIS9_EEDaSH_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc9HashCRC32IjELb0EEEEEEEEEEDaRT_ENKUlSH_E_clIS9_EEDaSH_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc9HashCRC32ImELb0EEEEEEEEEEDaRT_ENKUlSH_E_clIS9_EEDaSH_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEELb0EEEEEEEEEEDaRT_ENKUlSJ_E_clIS9_EEDaSJ_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EEEEEEEEEEDaRT_ENKUlSJ_E_clIS9_EEDaSJ_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_ELb0EEEEEEEEEEDaRT_ENKUlSK_E_clISC_EEDaSK_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EEEEEEEEEEDaRT_ENKUlSM_E_clISC_EEDaSM_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_19MethodStringNoCacheINS4_15DataWithNullKeyINS_13StringHashMapIPc9AllocatorILb1ELb1ELb0E22DefaultMemoryAllocatorEEEEEEEEEEEDaRT_ENKUlSI_E_clIS9_EEDaSI_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImELb0EELb0EEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImELb0EELb1EEEEEDaRT_ENKUlSD_E_clIS7_EEDaSD_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_ELb0EELb0EEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_ELb0EELb1EEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_ELb0EELb0EEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_ELb0EELb1EEEEEDaRT_ENKUlSG_E_clISA_EEDaSG_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_ELb0EELb0EEEEEDaRT_ENKUlSE_E_clIS8_EEDaSE_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_ELb0EELb1EEEEEDaRT_ENKUlSE_E_clIS8_EEDaSE_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EELb0EEEEEDaRT_ENKUlSF_E_clIS7_EEDaSF_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EELb1EEEEEDaRT_ENKUlSF_E_clIS7_EEDaSF_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb0EEEEEDaRT_ENKUlSI_E_clISA_EEDaSI_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb1EEEEEDaRT_ENKUlSI_E_clISA_EEDaSI_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb0EEEEEDaRT_ENKUlSI_E_clISA_EEDaSI_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb1EEEEEDaRT_ENKUlSI_E_clISA_EEDaSI_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc14HashMixWrapperIS7_9HashCRC32IS7_EELb0EELb0EEEEEDaRT_ENKUlSG_E_clIS8_EEDaSG_
Unexecuted instantiation: dependency.cpp:_ZZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc14HashMixWrapperIS7_9HashCRC32IS7_EELb0EELb1EEEEEDaRT_ENKUlSG_E_clIS8_EEDaSG_
305
306
0
                        if (hash_table.has_null_key_data()) {
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
  Branch (306:29): [True: 0, False: 0]
307
0
                            auto st = _destroy_agg_status(hash_table.template get_null_key_data<
308
0
                                                          vectorized::AggregateDataPtr>());
309
0
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
                            RETURN_IF_ERROR(st);
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
310
0
                        }
311
312
0
                        aggregate_data_container.reset(new AggregateDataContainer(
313
0
                                sizeof(typename HashTableType::key_type),
314
0
                                ((total_size_of_aggregate_states + align_aggregate_states - 1) /
315
0
                                 align_aggregate_states) *
316
0
                                        align_aggregate_states));
317
0
                        agg_method.hash_table.reset(new HashTableType());
318
0
                        agg_arena_pool.reset(new vectorized::Arena);
319
0
                        return Status::OK();
320
0
                    }},
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized16MethodSerializedI9PHHashMapINS_9StringRefEPc11DefaultHashIS7_vELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIh9PHHashMapIhPc11DefaultHashIhvELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIt9PHHashMapItPc11DefaultHashItvELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIj9PHHashMapIjPc9HashCRC32IjELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIm9PHHashMapImPc9HashCRC32ImELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized19MethodStringNoCacheINS_13StringHashMapIPc9AllocatorILb1ELb1ELb0E22DefaultMemoryAllocatorEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc9HashCRC32IS8_ELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIj9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIm9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodOneNumberIN4wide7integerILm128EjEE9PHHashMapIS8_Pc14HashMixWrapperIS8_9HashCRC32IS8_EELb0EEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIhNS4_15DataWithNullKeyI9PHHashMapIhPc11DefaultHashIhvELb0EEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberItNS4_15DataWithNullKeyI9PHHashMapItPc11DefaultHashItvELb0EEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc9HashCRC32IjELb0EEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc9HashCRC32ImELb0EEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIjNS4_15DataWithNullKeyI9PHHashMapIjPc14HashMixWrapperIj9HashCRC32IjEELb0EEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberImNS4_15DataWithNullKeyI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc9HashCRC32IS9_ELb0EEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_15MethodOneNumberIN4wide7integerILm128EjEENS4_15DataWithNullKeyI9PHHashMapIS9_Pc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized26MethodSingleNullableColumnINS4_19MethodStringNoCacheINS4_15DataWithNullKeyINS_13StringHashMapIPc9AllocatorILb1ELb1ELb0E22DefaultMemoryAllocatorEEEEEEEEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImELb0EELb0EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc9HashCRC32ImELb0EELb1EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_ELb0EELb0EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc9HashCRC32IS9_ELb0EELb1EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_ELb0EELb0EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc9HashCRC32IS9_ELb0EELb1EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_ELb0EELb0EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc9HashCRC32IS7_ELb0EELb1EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EELb0EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapImPc14HashMixWrapperIm9HashCRC32ImEELb0EELb1EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb0EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm128EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb1EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb0EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapIN4wide7integerILm256EjEEPc14HashMixWrapperIS9_9HashCRC32IS9_EELb0EELb1EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc14HashMixWrapperIS7_9HashCRC32IS7_EELb0EELb0EEEEEDaRT_
Unexecuted instantiation: dependency.cpp:_ZZN5doris8pipeline14AggSharedState16reset_hash_tableEvENK3$_1clINS_10vectorized15MethodKeysFixedI9PHHashMapINS4_7UInt136EPc14HashMixWrapperIS7_9HashCRC32IS7_EELb0EELb1EEEEEDaRT_
321
0
            agg_data->method_variant);
322
0
}
323
324
0
void PartitionedAggSharedState::init_spill_params(size_t spill_partition_count_bits) {
325
0
    partition_count_bits = spill_partition_count_bits;
326
0
    partition_count = (1 << spill_partition_count_bits);
327
0
    max_partition_index = partition_count - 1;
328
329
0
    for (int i = 0; i < partition_count; ++i) {
  Branch (329:21): [True: 0, False: 0]
330
0
        spill_partitions.emplace_back(std::make_shared<AggSpillPartition>());
331
0
    }
332
0
}
333
334
Status AggSpillPartition::get_spill_stream(RuntimeState* state, int node_id,
335
                                           RuntimeProfile* profile,
336
0
                                           vectorized::SpillStreamSPtr& spill_stream) {
337
0
    if (spilling_stream_) {
  Branch (337:9): [True: 0, False: 0]
338
0
        spill_stream = spilling_stream_;
339
0
        return Status::OK();
340
0
    }
341
0
    RETURN_IF_ERROR(ExecEnv::GetInstance()->spill_stream_mgr()->register_spill_stream(
Line
Count
Source
637
0
    do {                                \
638
0
        Status _status_ = (stmt);       \
639
0
        if (UNLIKELY(!_status_.ok())) { \
Line
Count
Source
36
0
#define UNLIKELY(expr) __builtin_expect(!!(expr), 0)
  Branch (36:24): [True: 0, False: 0]
640
0
            return _status_;            \
641
0
        }                               \
642
0
    } while (false)
  Branch (642:14): [Folded - Ignored]
342
0
            state, spilling_stream_, print_id(state->query_id()), "agg", node_id,
343
0
            std::numeric_limits<int32_t>::max(), std::numeric_limits<size_t>::max(), profile));
344
0
    spill_streams_.emplace_back(spilling_stream_);
345
0
    spill_stream = spilling_stream_;
346
0
    return Status::OK();
347
0
}
348
0
void AggSpillPartition::close() {
349
0
    if (spilling_stream_) {
  Branch (349:9): [True: 0, False: 0]
350
0
        spilling_stream_.reset();
351
0
    }
352
0
    for (auto& stream : spill_streams_) {
  Branch (352:23): [True: 0, False: 0]
353
0
        (void)ExecEnv::GetInstance()->spill_stream_mgr()->delete_spill_stream(stream);
354
0
    }
355
0
    spill_streams_.clear();
356
0
}
357
358
0
void PartitionedAggSharedState::close() {
359
    // need to use CAS instead of only `if (!is_closed)` statement,
360
    // to avoid concurrent entry of close() both pass the if statement
361
0
    bool false_close = false;
362
0
    if (!is_closed.compare_exchange_strong(false_close, true)) {
  Branch (362:9): [True: 0, False: 0]
363
0
        return;
364
0
    }
365
0
    DCHECK(!false_close && is_closed);
366
0
    for (auto partition : spill_partitions) {
  Branch (366:25): [True: 0, False: 0]
367
0
        partition->close();
368
0
    }
369
0
    spill_partitions.clear();
370
0
}
371
372
0
void SpillSortSharedState::close() {
373
    // need to use CAS instead of only `if (!is_closed)` statement,
374
    // to avoid concurrent entry of close() both pass the if statement
375
0
    bool false_close = false;
376
0
    if (!is_closed.compare_exchange_strong(false_close, true)) {
  Branch (376:9): [True: 0, False: 0]
377
0
        return;
378
0
    }
379
0
    DCHECK(!false_close && is_closed);
380
0
    for (auto& stream : sorted_streams) {
  Branch (380:23): [True: 0, False: 0]
381
0
        (void)ExecEnv::GetInstance()->spill_stream_mgr()->delete_spill_stream(stream);
382
0
    }
383
0
    sorted_streams.clear();
384
0
}
385
386
MultiCastSharedState::MultiCastSharedState(const RowDescriptor& row_desc, ObjectPool* pool,
387
                                           int cast_sender_count)
388
        : multi_cast_data_streamer(std::make_unique<pipeline::MultiCastDataStreamer>(
389
0
                  row_desc, pool, cast_sender_count, true)) {}
390
391
0
int AggSharedState::get_slot_column_id(const vectorized::AggFnEvaluator* evaluator) {
392
0
    auto ctxs = evaluator->input_exprs_ctxs();
393
0
    CHECK(ctxs.size() == 1 && ctxs[0]->root()->is_slot_ref())
394
0
            << "input_exprs_ctxs is invalid, input_exprs_ctx[0]="
395
0
            << ctxs[0]->root()->debug_string();
396
0
    return ((vectorized::VSlotRef*)ctxs[0]->root().get())->column_id();
397
0
}
398
399
0
Status AggSharedState::_destroy_agg_status(vectorized::AggregateDataPtr data) {
400
0
    for (int i = 0; i < aggregate_evaluators.size(); ++i) {
  Branch (400:21): [True: 0, False: 0]
401
0
        aggregate_evaluators[i]->function()->destroy(data + offsets_of_aggregate_states[i]);
402
0
    }
403
0
    return Status::OK();
404
0
}
405
406
void AggSharedState::refresh_top_limit(size_t row_id,
407
2
                                       const vectorized::ColumnRawPtrs& key_columns) {
408
4
    for (int j = 0; j < key_columns.size(); ++j) {
  Branch (408:21): [True: 2, False: 2]
409
2
        limit_columns[j]->insert_from(*key_columns[j], row_id);
410
2
    }
411
2
    limit_heap.emplace(limit_columns[0]->size() - 1, limit_columns, order_directions,
412
2
                       null_directions);
413
414
2
    limit_heap.pop();
415
2
    limit_columns_min = limit_heap.top()._row_id;
416
2
}
417
418
0
LocalExchangeSharedState::~LocalExchangeSharedState() = default;
419
420
} // namespace doris::pipeline