be/src/exec/operator/operator.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 "exec/operator/operator.h" |
19 | | |
20 | | #include "common/status.h" |
21 | | #include "exec/common/util.hpp" |
22 | | #include "exec/exchange/local_exchange_sink_operator.h" |
23 | | #include "exec/exchange/local_exchange_source_operator.h" |
24 | | #include "exec/operator/aggregation_sink_operator.h" |
25 | | #include "exec/operator/aggregation_source_operator.h" |
26 | | #include "exec/operator/analytic_sink_operator.h" |
27 | | #include "exec/operator/analytic_source_operator.h" |
28 | | #include "exec/operator/assert_num_rows_operator.h" |
29 | | #include "exec/operator/blackhole_sink_operator.h" |
30 | | #include "exec/operator/cache_sink_operator.h" |
31 | | #include "exec/operator/cache_source_operator.h" |
32 | | #include "exec/operator/datagen_operator.h" |
33 | | #include "exec/operator/dict_sink_operator.h" |
34 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
35 | | #include "exec/operator/empty_set_operator.h" |
36 | | #include "exec/operator/es_scan_operator.h" |
37 | | #include "exec/operator/exchange_sink_operator.h" |
38 | | #include "exec/operator/exchange_source_operator.h" |
39 | | #include "exec/operator/file_scan_operator.h" |
40 | | #include "exec/operator/group_commit_block_sink_operator.h" |
41 | | #include "exec/operator/group_commit_scan_operator.h" |
42 | | #include "exec/operator/hashjoin_build_sink.h" |
43 | | #include "exec/operator/hashjoin_probe_operator.h" |
44 | | #include "exec/operator/hive_table_sink_operator.h" |
45 | | #include "exec/operator/iceberg_delete_sink_operator.h" |
46 | | #include "exec/operator/iceberg_merge_sink_operator.h" |
47 | | #include "exec/operator/iceberg_table_sink_operator.h" |
48 | | #include "exec/operator/jdbc_scan_operator.h" |
49 | | #include "exec/operator/jdbc_table_sink_operator.h" |
50 | | #include "exec/operator/local_merge_sort_source_operator.h" |
51 | | #include "exec/operator/materialization_opertor.h" |
52 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
53 | | #include "exec/operator/memory_scratch_sink_operator.h" |
54 | | #include "exec/operator/meta_scan_operator.h" |
55 | | #include "exec/operator/mock_operator.h" |
56 | | #include "exec/operator/mock_scan_operator.h" |
57 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
58 | | #include "exec/operator/multi_cast_data_stream_source.h" |
59 | | #include "exec/operator/nested_loop_join_build_operator.h" |
60 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
61 | | #include "exec/operator/olap_scan_operator.h" |
62 | | #include "exec/operator/olap_table_sink_operator.h" |
63 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
64 | | #include "exec/operator/partition_sort_sink_operator.h" |
65 | | #include "exec/operator/partition_sort_source_operator.h" |
66 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
67 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
68 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
69 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
70 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
71 | | #include "exec/operator/rec_cte_scan_operator.h" |
72 | | #include "exec/operator/rec_cte_sink_operator.h" |
73 | | #include "exec/operator/rec_cte_source_operator.h" |
74 | | #include "exec/operator/repeat_operator.h" |
75 | | #include "exec/operator/result_file_sink_operator.h" |
76 | | #include "exec/operator/result_sink_operator.h" |
77 | | #include "exec/operator/schema_scan_operator.h" |
78 | | #include "exec/operator/select_operator.h" |
79 | | #include "exec/operator/set_probe_sink_operator.h" |
80 | | #include "exec/operator/set_sink_operator.h" |
81 | | #include "exec/operator/set_source_operator.h" |
82 | | #include "exec/operator/sort_sink_operator.h" |
83 | | #include "exec/operator/sort_source_operator.h" |
84 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
85 | | #include "exec/operator/spill_sort_sink_operator.h" |
86 | | #include "exec/operator/spill_sort_source_operator.h" |
87 | | #include "exec/operator/streaming_aggregation_operator.h" |
88 | | #include "exec/operator/table_function_operator.h" |
89 | | #include "exec/operator/tvf_table_sink_operator.h" |
90 | | #include "exec/operator/union_sink_operator.h" |
91 | | #include "exec/operator/union_source_operator.h" |
92 | | #include "exec/pipeline/dependency.h" |
93 | | #include "exec/pipeline/pipeline.h" |
94 | | #include "exprs/vexpr.h" |
95 | | #include "exprs/vexpr_context.h" |
96 | | #include "runtime/runtime_profile.h" |
97 | | #include "runtime/runtime_profile_counter_names.h" |
98 | | #include "util/debug_util.h" |
99 | | #include "util/string_util.h" |
100 | | |
101 | | namespace doris { |
102 | | class RowDescriptor; |
103 | | class RuntimeState; |
104 | | } // namespace doris |
105 | | |
106 | | namespace doris { |
107 | | |
108 | 0 | Status OperatorBase::close(RuntimeState* state) { |
109 | 0 | if (_is_closed) { |
110 | 0 | return Status::OK(); |
111 | 0 | } |
112 | 0 | _is_closed = true; |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | | |
116 | | template <typename SharedStateArg> |
117 | 2.27M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
118 | 2.27M | if (_parent->nereids_id() == -1) { |
119 | 1.15M | return fmt::format("(id={})", _parent->node_id()); |
120 | 1.15M | } else { |
121 | 1.11M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
122 | 1.11M | } |
123 | 2.27M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 125k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 125k | if (_parent->nereids_id() == -1) { | 119 | 0 | return fmt::format("(id={})", _parent->node_id()); | 120 | 125k | } else { | 121 | 125k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 125k | } | 123 | 125k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 2 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 2 | if (_parent->nereids_id() == -1) { | 119 | 2 | return fmt::format("(id={})", _parent->node_id()); | 120 | 2 | } else { | 121 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 0 | } | 123 | 2 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 259k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 259k | if (_parent->nereids_id() == -1) { | 119 | 24 | return fmt::format("(id={})", _parent->node_id()); | 120 | 259k | } else { | 121 | 259k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 259k | } | 123 | 259k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 48 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 48 | if (_parent->nereids_id() == -1) { | 119 | 0 | return fmt::format("(id={})", _parent->node_id()); | 120 | 48 | } else { | 121 | 48 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 48 | } | 123 | 48 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 9.92k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 9.92k | if (_parent->nereids_id() == -1) { | 119 | 0 | return fmt::format("(id={})", _parent->node_id()); | 120 | 9.92k | } else { | 121 | 9.92k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 9.92k | } | 123 | 9.92k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 6.54k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 6.54k | if (_parent->nereids_id() == -1) { | 119 | 18 | return fmt::format("(id={})", _parent->node_id()); | 120 | 6.53k | } else { | 121 | 6.53k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 6.53k | } | 123 | 6.54k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 135k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 135k | if (_parent->nereids_id() == -1) { | 119 | 54 | return fmt::format("(id={})", _parent->node_id()); | 120 | 135k | } else { | 121 | 135k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 135k | } | 123 | 135k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 186 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 186 | if (_parent->nereids_id() == -1) { | 119 | 0 | return fmt::format("(id={})", _parent->node_id()); | 120 | 186 | } else { | 121 | 186 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 186 | } | 123 | 186 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 949k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 949k | if (_parent->nereids_id() == -1) { | 119 | 431k | return fmt::format("(id={})", _parent->node_id()); | 120 | 518k | } else { | 121 | 518k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 518k | } | 123 | 949k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 55.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 55.7k | if (_parent->nereids_id() == -1) { | 119 | 4 | return fmt::format("(id={})", _parent->node_id()); | 120 | 55.7k | } else { | 121 | 55.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 55.7k | } | 123 | 55.7k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 20 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 20 | if (_parent->nereids_id() == -1) { | 119 | 20 | return fmt::format("(id={})", _parent->node_id()); | 120 | 20 | } else { | 121 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 0 | } | 123 | 20 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 9.83k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 9.83k | if (_parent->nereids_id() == -1) { | 119 | 9.83k | return fmt::format("(id={})", _parent->node_id()); | 120 | 18.4E | } else { | 121 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 18.4E | } | 123 | 9.83k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 429 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 429 | if (_parent->nereids_id() == -1) { | 119 | 204 | return fmt::format("(id={})", _parent->node_id()); | 120 | 225 | } else { | 121 | 225 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 225 | } | 123 | 429 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 4.65k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 4.65k | if (_parent->nereids_id() == -1) { | 119 | 24 | return fmt::format("(id={})", _parent->node_id()); | 120 | 4.62k | } else { | 121 | 4.62k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 4.62k | } | 123 | 4.65k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 713k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 713k | if (_parent->nereids_id() == -1) { | 119 | 712k | return fmt::format("(id={})", _parent->node_id()); | 120 | 712k | } else { | 121 | 735 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 735 | } | 123 | 713k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 117 | 151 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 118 | 151 | if (_parent->nereids_id() == -1) { | 119 | 0 | return fmt::format("(id={})", _parent->node_id()); | 120 | 151 | } else { | 121 | 151 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 122 | 151 | } | 123 | 151 | } |
|
124 | | |
125 | | template <typename SharedStateArg> |
126 | 1.44M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
127 | 1.44M | if (_parent->nereids_id() == -1) { |
128 | 795k | return fmt::format("(id={})", _parent->node_id()); |
129 | 795k | } else { |
130 | 646k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
131 | 646k | } |
132 | 1.44M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 221k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 221k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format("(id={})", _parent->node_id()); | 129 | 221k | } else { | 130 | 221k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 221k | } | 132 | 221k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 4 | if (_parent->nereids_id() == -1) { | 128 | 2 | return fmt::format("(id={})", _parent->node_id()); | 129 | 2 | } else { | 130 | 2 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 2 | } | 132 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 261k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 261k | if (_parent->nereids_id() == -1) { | 128 | 18 | return fmt::format("(id={})", _parent->node_id()); | 129 | 261k | } else { | 130 | 261k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 261k | } | 132 | 261k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 60 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 60 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format("(id={})", _parent->node_id()); | 129 | 60 | } else { | 130 | 60 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 60 | } | 132 | 60 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 9.99k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 9.99k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format("(id={})", _parent->node_id()); | 129 | 9.99k | } else { | 130 | 9.99k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 9.99k | } | 132 | 9.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 6.57k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 6.57k | if (_parent->nereids_id() == -1) { | 128 | 18 | return fmt::format("(id={})", _parent->node_id()); | 129 | 6.55k | } else { | 130 | 6.55k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 6.55k | } | 132 | 6.57k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 136k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 136k | if (_parent->nereids_id() == -1) { | 128 | 54 | return fmt::format("(id={})", _parent->node_id()); | 129 | 136k | } else { | 130 | 136k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 136k | } | 132 | 136k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 206 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 206 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format("(id={})", _parent->node_id()); | 129 | 206 | } else { | 130 | 206 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 206 | } | 132 | 206 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 131 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 131 | if (_parent->nereids_id() == -1) { | 128 | 131 | return fmt::format("(id={})", _parent->node_id()); | 129 | 131 | } else { | 130 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 0 | } | 132 | 131 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 9.32k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 9.32k | if (_parent->nereids_id() == -1) { | 128 | 6 | return fmt::format("(id={})", _parent->node_id()); | 129 | 9.31k | } else { | 130 | 9.31k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 9.31k | } | 132 | 9.32k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 429 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 429 | if (_parent->nereids_id() == -1) { | 128 | 204 | return fmt::format("(id={})", _parent->node_id()); | 129 | 225 | } else { | 130 | 225 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 225 | } | 132 | 429 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 11.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 11.8k | if (_parent->nereids_id() == -1) { | 128 | 11.8k | return fmt::format("(id={})", _parent->node_id()); | 129 | 18.4E | } else { | 130 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 18.4E | } | 132 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 269k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 269k | if (_parent->nereids_id() == -1) { | 128 | 269k | return fmt::format("(id={})", _parent->node_id()); | 129 | 18.4E | } else { | 130 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 18.4E | } | 132 | 269k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 513k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 513k | if (_parent->nereids_id() == -1) { | 128 | 513k | return fmt::format("(id={})", _parent->node_id()); | 129 | 513k | } else { | 130 | 194 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 194 | } | 132 | 513k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 20 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 20 | if (_parent->nereids_id() == -1) { | 128 | 20 | return fmt::format("(id={})", _parent->node_id()); | 129 | 20 | } else { | 130 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 0 | } | 132 | 20 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 302 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 302 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format("(id={})", _parent->node_id()); | 129 | 302 | } else { | 130 | 302 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 131 | 302 | } | 132 | 302 | } |
|
133 | | |
134 | | template <typename SharedStateArg> |
135 | 56.3k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
136 | 56.3k | if (_terminated) { |
137 | 0 | return Status::OK(); |
138 | 0 | } |
139 | 56.3k | _terminated = true; |
140 | 56.3k | return Status::OK(); |
141 | 56.3k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 48.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 48.0k | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 48.0k | _terminated = true; | 140 | 48.0k | return Status::OK(); | 141 | 48.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 1.14k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 1.14k | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 1.14k | _terminated = true; | 140 | 1.14k | return Status::OK(); | 141 | 1.14k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 11 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 11 | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 11 | _terminated = true; | 140 | 11 | return Status::OK(); | 141 | 11 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 3 | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 3 | _terminated = true; | 140 | 3 | return Status::OK(); | 141 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 4.92k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 4.92k | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 4.92k | _terminated = true; | 140 | 4.92k | return Status::OK(); | 141 | 4.92k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 1.74k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 1.74k | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 1.74k | _terminated = true; | 140 | 1.74k | return Status::OK(); | 141 | 1.74k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 8 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 8 | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 8 | _terminated = true; | 140 | 8 | return Status::OK(); | 141 | 8 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 1 | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 1 | _terminated = true; | 140 | 1 | return Status::OK(); | 141 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 144 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 144 | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 144 | _terminated = true; | 140 | 144 | return Status::OK(); | 141 | 144 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 175 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 175 | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 175 | _terminated = true; | 140 | 175 | return Status::OK(); | 141 | 175 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 135 | 142 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 136 | 142 | if (_terminated) { | 137 | 0 | return Status::OK(); | 138 | 0 | } | 139 | 142 | _terminated = true; | 140 | 142 | return Status::OK(); | 141 | 142 | } |
|
142 | | |
143 | 870k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
144 | 870k | return _child && _child->is_serial_operator() && !is_source() |
145 | 870k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
146 | 870k | : DataDistribution(ExchangeType::NOOP); |
147 | 870k | } |
148 | | |
149 | 153k | const RowDescriptor& OperatorBase::row_desc() const { |
150 | 153k | return _child->row_desc(); |
151 | 153k | } |
152 | | |
153 | | template <typename SharedStateArg> |
154 | 23.5k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
155 | 23.5k | fmt::memory_buffer debug_string_buffer; |
156 | 23.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
157 | 23.5k | return fmt::to_string(debug_string_buffer); |
158 | 23.5k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 154 | 39 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 155 | 39 | fmt::memory_buffer debug_string_buffer; | 156 | 39 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 157 | 39 | return fmt::to_string(debug_string_buffer); | 158 | 39 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 154 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 155 | 6 | fmt::memory_buffer debug_string_buffer; | 156 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 157 | 6 | return fmt::to_string(debug_string_buffer); | 158 | 6 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 154 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 155 | 12 | fmt::memory_buffer debug_string_buffer; | 156 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 157 | 12 | return fmt::to_string(debug_string_buffer); | 158 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 154 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 155 | 12 | fmt::memory_buffer debug_string_buffer; | 156 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 157 | 12 | return fmt::to_string(debug_string_buffer); | 158 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 154 | 24 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 155 | 24 | fmt::memory_buffer debug_string_buffer; | 156 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 157 | 24 | return fmt::to_string(debug_string_buffer); | 158 | 24 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 154 | 23.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 155 | 23.3k | fmt::memory_buffer debug_string_buffer; | 156 | 23.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 157 | 23.3k | return fmt::to_string(debug_string_buffer); | 158 | 23.3k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 154 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 155 | 1 | fmt::memory_buffer debug_string_buffer; | 156 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 157 | 1 | return fmt::to_string(debug_string_buffer); | 158 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 154 | 163 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 155 | 163 | fmt::memory_buffer debug_string_buffer; | 156 | 163 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 157 | 163 | return fmt::to_string(debug_string_buffer); | 158 | 163 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
159 | | |
160 | | template <typename SharedStateArg> |
161 | 23.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
162 | 23.5k | fmt::memory_buffer debug_string_buffer; |
163 | 23.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
164 | 23.5k | return fmt::to_string(debug_string_buffer); |
165 | 23.5k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 161 | 9 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 162 | 9 | fmt::memory_buffer debug_string_buffer; | 163 | 9 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 164 | 9 | return fmt::to_string(debug_string_buffer); | 165 | 9 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 161 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 162 | 12 | fmt::memory_buffer debug_string_buffer; | 163 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 164 | 12 | return fmt::to_string(debug_string_buffer); | 165 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 161 | 9 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 162 | 9 | fmt::memory_buffer debug_string_buffer; | 163 | 9 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 164 | 9 | return fmt::to_string(debug_string_buffer); | 165 | 9 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 161 | 24 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 162 | 24 | fmt::memory_buffer debug_string_buffer; | 163 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 164 | 24 | return fmt::to_string(debug_string_buffer); | 165 | 24 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 161 | 109 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 162 | 109 | fmt::memory_buffer debug_string_buffer; | 163 | 109 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 164 | 109 | return fmt::to_string(debug_string_buffer); | 165 | 109 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 161 | 60 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 162 | 60 | fmt::memory_buffer debug_string_buffer; | 163 | 60 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 164 | 60 | return fmt::to_string(debug_string_buffer); | 165 | 60 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 161 | 23.2k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 162 | 23.2k | fmt::memory_buffer debug_string_buffer; | 163 | 23.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 164 | 23.2k | return fmt::to_string(debug_string_buffer); | 165 | 23.2k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
166 | | |
167 | 24.5k | std::string OperatorXBase::debug_string(int indentation_level) const { |
168 | 24.5k | fmt::memory_buffer debug_string_buffer; |
169 | 24.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
170 | 24.5k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
171 | 24.5k | _is_serial_operator); |
172 | 24.5k | return fmt::to_string(debug_string_buffer); |
173 | 24.5k | } |
174 | | |
175 | 23.5k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
176 | 23.5k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
177 | 23.5k | } |
178 | | |
179 | 720k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
180 | 720k | std::string node_name = print_plan_node_type(tnode.node_type); |
181 | 720k | _nereids_id = tnode.nereids_id; |
182 | 720k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
183 | 3.02k | if (!tnode.__isset.output_tuple_id) { |
184 | 0 | return Status::InternalError("no final output tuple id"); |
185 | 0 | } |
186 | 3.02k | if (tnode.intermediate_output_tuple_id_list.size() != |
187 | 3.02k | tnode.intermediate_projections_list.size()) { |
188 | 0 | return Status::InternalError( |
189 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
190 | 0 | "intermediate_projections_list size:{}", |
191 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
192 | 0 | tnode.intermediate_projections_list.size()); |
193 | 0 | } |
194 | 3.02k | } |
195 | 720k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
196 | 720k | _op_name = substr + "_OPERATOR"; |
197 | | |
198 | 720k | if (tnode.__isset.vconjunct) { |
199 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
200 | 720k | } else if (tnode.__isset.conjuncts) { |
201 | 438k | for (const auto& conjunct : tnode.conjuncts) { |
202 | 438k | VExprContextSPtr context; |
203 | 438k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
204 | 438k | _conjuncts.emplace_back(context); |
205 | 438k | } |
206 | 139k | } |
207 | | |
208 | | // create the projections expr |
209 | 720k | if (tnode.__isset.projections) { |
210 | 328k | DCHECK(tnode.__isset.output_tuple_id); |
211 | 328k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
212 | 328k | } |
213 | 720k | if (!tnode.intermediate_projections_list.empty()) { |
214 | 3.02k | DCHECK(tnode.__isset.projections) << "no final projections"; |
215 | 3.02k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
216 | 4.10k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
217 | 4.10k | VExprContextSPtrs projections; |
218 | 4.10k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
219 | 4.10k | _intermediate_projections.push_back(projections); |
220 | 4.10k | } |
221 | 3.02k | } |
222 | 720k | return Status::OK(); |
223 | 720k | } |
224 | | |
225 | 775k | Status OperatorXBase::prepare(RuntimeState* state) { |
226 | 775k | for (auto& conjunct : _conjuncts) { |
227 | 438k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
228 | 438k | } |
229 | 775k | if (state->enable_adjust_conjunct_order_by_cost()) { |
230 | 677k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
231 | 596k | return a->execute_cost() < b->execute_cost(); |
232 | 596k | }); |
233 | 677k | }; |
234 | | |
235 | 779k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
236 | 4.10k | RETURN_IF_ERROR( |
237 | 4.10k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
238 | 4.10k | } |
239 | 775k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
240 | | |
241 | 775k | if (has_output_row_desc()) { |
242 | 328k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
243 | 328k | } |
244 | | |
245 | 775k | for (auto& conjunct : _conjuncts) { |
246 | 437k | RETURN_IF_ERROR(conjunct->open(state)); |
247 | 437k | } |
248 | 775k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
249 | 775k | for (auto& projections : _intermediate_projections) { |
250 | 4.10k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
251 | 4.10k | } |
252 | 775k | if (_child && !is_source()) { |
253 | 161k | RETURN_IF_ERROR(_child->prepare(state)); |
254 | 161k | } |
255 | | |
256 | 775k | if (VExpr::contains_blockable_function(_conjuncts) || |
257 | 775k | VExpr::contains_blockable_function(_projections)) { |
258 | 0 | _blockable = true; |
259 | 0 | } |
260 | | |
261 | 775k | return Status::OK(); |
262 | 775k | } |
263 | | |
264 | 10.5k | Status OperatorXBase::terminate(RuntimeState* state) { |
265 | 10.5k | if (_child && !is_source()) { |
266 | 2.20k | RETURN_IF_ERROR(_child->terminate(state)); |
267 | 2.20k | } |
268 | 10.5k | auto result = state->get_local_state_result(operator_id()); |
269 | 10.5k | if (!result) { |
270 | 0 | return result.error(); |
271 | 0 | } |
272 | 10.5k | return result.value()->terminate(state); |
273 | 10.5k | } |
274 | | |
275 | 6.45M | Status OperatorXBase::close(RuntimeState* state) { |
276 | 6.45M | if (_child && !is_source()) { |
277 | 1.28M | RETURN_IF_ERROR(_child->close(state)); |
278 | 1.28M | } |
279 | 6.45M | auto result = state->get_local_state_result(operator_id()); |
280 | 6.45M | if (!result) { |
281 | 0 | return result.error(); |
282 | 0 | } |
283 | 6.45M | return result.value()->close(state); |
284 | 6.45M | } |
285 | | |
286 | 307k | void PipelineXLocalStateBase::clear_origin_block() { |
287 | 307k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
288 | 307k | } |
289 | | |
290 | 634k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
291 | 634k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
292 | | |
293 | 634k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
294 | 634k | return Status::OK(); |
295 | 634k | } |
296 | | |
297 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
298 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
299 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
300 | 0 | } |
301 | | |
302 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
303 | 307k | Block* output_block) const { |
304 | 307k | auto* local_state = state->get_local_state(operator_id()); |
305 | 307k | SCOPED_TIMER(local_state->exec_time_counter()); |
306 | 307k | SCOPED_TIMER(local_state->_projection_timer); |
307 | 307k | const size_t rows = origin_block->rows(); |
308 | 307k | if (rows == 0) { |
309 | 170k | return Status::OK(); |
310 | 170k | } |
311 | 137k | Block input_block = *origin_block; |
312 | | |
313 | 137k | size_t bytes_usage = 0; |
314 | 137k | ColumnsWithTypeAndName new_columns; |
315 | 137k | for (const auto& projections : local_state->_intermediate_projections) { |
316 | 1.31k | if (projections.empty()) { |
317 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
318 | 0 | node_id()); |
319 | 0 | } |
320 | 1.31k | new_columns.resize(projections.size()); |
321 | 9.49k | for (int i = 0; i < projections.size(); i++) { |
322 | 8.17k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
323 | 8.17k | if (new_columns[i].column->size() != rows) { |
324 | 0 | return Status::InternalError( |
325 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
326 | 0 | "expr: {}", |
327 | 0 | new_columns[i].column->size(), rows, |
328 | 0 | projections[i]->root()->debug_string()); |
329 | 0 | } |
330 | 8.17k | } |
331 | 1.31k | Block tmp_block {new_columns}; |
332 | 1.31k | bytes_usage += tmp_block.allocated_bytes(); |
333 | 1.31k | input_block.swap(tmp_block); |
334 | 1.31k | } |
335 | | |
336 | 137k | if (input_block.rows() != rows) { |
337 | 0 | return Status::InternalError( |
338 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
339 | 0 | "input_block: {}", |
340 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
341 | 0 | } |
342 | 650k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
343 | 650k | if (to->is_nullable() && !from->is_nullable()) { |
344 | 0 | if (_keep_origin || !from->is_exclusive()) { |
345 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
346 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
347 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
348 | 0 | bytes_usage += null_column.allocated_bytes(); |
349 | 0 | } else { |
350 | 0 | to = make_nullable(from, false)->assume_mutable(); |
351 | 0 | } |
352 | 650k | } else { |
353 | 650k | if (_keep_origin || !from->is_exclusive()) { |
354 | 636k | to->insert_range_from(*from, 0, rows); |
355 | 636k | bytes_usage += from->allocated_bytes(); |
356 | 636k | } else { |
357 | 14.7k | to = from->assume_mutable(); |
358 | 14.7k | } |
359 | 650k | } |
360 | 650k | }; |
361 | | |
362 | 137k | MutableBlock mutable_block = |
363 | 137k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
364 | 137k | if (rows != 0) { |
365 | 137k | auto& mutable_columns = mutable_block.mutable_columns(); |
366 | 137k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
367 | 787k | for (int i = 0; i < mutable_columns.size(); ++i) { |
368 | 650k | ColumnPtr column_ptr; |
369 | 650k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
370 | 650k | if (column_ptr->size() != rows) { |
371 | 0 | return Status::InternalError( |
372 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
373 | 0 | column_ptr->size(), rows, |
374 | 0 | local_state->_projections[i]->root()->debug_string()); |
375 | 0 | } |
376 | 650k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
377 | 650k | bytes_usage += column_ptr->allocated_bytes(); |
378 | 650k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
379 | 650k | } |
380 | 137k | DCHECK(mutable_block.rows() == rows); |
381 | 137k | output_block->set_columns(std::move(mutable_columns)); |
382 | 137k | } |
383 | | |
384 | 137k | local_state->_estimate_memory_usage += bytes_usage; |
385 | | |
386 | 137k | return Status::OK(); |
387 | 137k | } |
388 | | |
389 | 5.50M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
390 | 5.50M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
391 | 5.50M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
392 | 5.50M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
393 | 5.50M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
394 | 5.50M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
395 | 5.50M | if (_debug_point_count++ % 2 == 0) { |
396 | 5.50M | return Status::OK(); |
397 | 5.50M | } |
398 | 5.50M | } |
399 | 5.50M | }); |
400 | | |
401 | 5.50M | Status status; |
402 | 5.50M | auto* local_state = state->get_local_state(operator_id()); |
403 | 5.50M | Defer defer([&]() { |
404 | 5.50M | if (status.ok()) { |
405 | 5.50M | if (auto rows = block->rows()) { |
406 | 873k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
407 | 873k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
408 | 873k | } |
409 | 5.50M | } |
410 | 5.50M | }); |
411 | 5.50M | if (_output_row_descriptor) { |
412 | 307k | local_state->clear_origin_block(); |
413 | 307k | status = get_block(state, &local_state->_origin_block, eos); |
414 | 307k | if (UNLIKELY(!status.ok())) { |
415 | 20 | return status; |
416 | 20 | } |
417 | 307k | status = do_projections(state, &local_state->_origin_block, block); |
418 | 307k | return status; |
419 | 307k | } |
420 | 5.20M | status = get_block(state, block, eos); |
421 | 5.20M | RETURN_IF_ERROR(block->check_type_and_column()); |
422 | 5.20M | return status; |
423 | 5.20M | } |
424 | | |
425 | 3.04M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
426 | 3.04M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
427 | 7.36k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
428 | 7.36k | *eos = true; |
429 | 7.36k | } |
430 | | |
431 | 3.04M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
432 | 3.04M | auto op_name = to_lower(_parent->_op_name); |
433 | 3.04M | auto arg_op_name = dp->param<std::string>("op_name"); |
434 | 3.04M | arg_op_name = to_lower(arg_op_name); |
435 | | |
436 | 3.04M | if (op_name == arg_op_name) { |
437 | 3.04M | *eos = true; |
438 | 3.04M | } |
439 | 3.04M | }); |
440 | | |
441 | 3.04M | if (auto rows = block->rows()) { |
442 | 824k | _num_rows_returned += rows; |
443 | 824k | } |
444 | 3.04M | } |
445 | | |
446 | 56.3k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
447 | 56.3k | auto result = state->get_sink_local_state_result(); |
448 | 56.3k | if (!result) { |
449 | 0 | return result.error(); |
450 | 0 | } |
451 | 56.3k | return result.value()->terminate(state); |
452 | 56.3k | } |
453 | | |
454 | 24.4k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
455 | 24.4k | fmt::memory_buffer debug_string_buffer; |
456 | | |
457 | 24.4k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
458 | 24.4k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
459 | 24.4k | return fmt::to_string(debug_string_buffer); |
460 | 24.4k | } |
461 | | |
462 | 23.5k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
463 | 23.5k | return state->get_sink_local_state()->debug_string(indentation_level); |
464 | 23.5k | } |
465 | | |
466 | 438k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
467 | 438k | std::string op_name = "UNKNOWN_SINK"; |
468 | 438k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
469 | | |
470 | 439k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
471 | 439k | op_name = it->second; |
472 | 439k | } |
473 | 438k | _name = op_name + "_OPERATOR"; |
474 | 438k | return Status::OK(); |
475 | 438k | } |
476 | | |
477 | 269k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
478 | 269k | std::string op_name = print_plan_node_type(tnode.node_type); |
479 | 269k | _nereids_id = tnode.nereids_id; |
480 | 269k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
481 | 269k | _name = substr + "_SINK_OPERATOR"; |
482 | 269k | return Status::OK(); |
483 | 269k | } |
484 | | |
485 | | template <typename LocalStateType> |
486 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
487 | 2.13M | LocalSinkStateInfo& info) { |
488 | 2.13M | auto local_state = LocalStateType::create_unique(this, state); |
489 | 2.13M | RETURN_IF_ERROR(local_state->init(state, info)); |
490 | 2.13M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
491 | 2.13M | return Status::OK(); |
492 | 2.13M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 222k | LocalSinkStateInfo& info) { | 488 | 222k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 222k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 222k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 222k | return Status::OK(); | 492 | 222k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 447k | LocalSinkStateInfo& info) { | 488 | 447k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 447k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 447k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 447k | return Status::OK(); | 492 | 447k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 80 | LocalSinkStateInfo& info) { | 488 | 80 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 80 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 80 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 80 | return Status::OK(); | 492 | 80 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 3 | LocalSinkStateInfo& info) { | 488 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 3 | return Status::OK(); | 492 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 541 | LocalSinkStateInfo& info) { | 488 | 541 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 541 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 541 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 541 | return Status::OK(); | 492 | 541 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 52.7k | LocalSinkStateInfo& info) { | 488 | 52.7k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 52.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 52.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 52.7k | return Status::OK(); | 492 | 52.7k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 5.51k | LocalSinkStateInfo& info) { | 488 | 5.51k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 5.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 5.51k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 5.51k | return Status::OK(); | 492 | 5.51k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 5.15k | LocalSinkStateInfo& info) { | 488 | 5.15k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 5.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 5.15k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 5.15k | return Status::OK(); | 492 | 5.15k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 156 | LocalSinkStateInfo& info) { | 488 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 156 | return Status::OK(); | 492 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 3.38k | LocalSinkStateInfo& info) { | 488 | 3.38k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 3.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 3.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 3.38k | return Status::OK(); | 492 | 3.38k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 160 | LocalSinkStateInfo& info) { | 488 | 160 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 160 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 160 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 160 | return Status::OK(); | 492 | 160 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 640 | LocalSinkStateInfo& info) { | 488 | 640 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 640 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 640 | return Status::OK(); | 492 | 640 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 6.56k | LocalSinkStateInfo& info) { | 488 | 6.56k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 6.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 6.56k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 6.56k | return Status::OK(); | 492 | 6.56k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 128 | LocalSinkStateInfo& info) { | 488 | 128 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 128 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 128 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 128 | return Status::OK(); | 492 | 128 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 261k | LocalSinkStateInfo& info) { | 488 | 261k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 261k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 261k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 261k | return Status::OK(); | 492 | 261k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 60 | LocalSinkStateInfo& info) { | 488 | 60 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 60 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 60 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 60 | return Status::OK(); | 492 | 60 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 269k | LocalSinkStateInfo& info) { | 488 | 269k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 269k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 269k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 269k | return Status::OK(); | 492 | 269k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 136k | LocalSinkStateInfo& info) { | 488 | 136k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 136k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 136k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 136k | return Status::OK(); | 492 | 136k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 206 | LocalSinkStateInfo& info) { | 488 | 206 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 206 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 206 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 206 | return Status::OK(); | 492 | 206 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 681k | LocalSinkStateInfo& info) { | 488 | 681k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 681k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 681k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 681k | return Status::OK(); | 492 | 681k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 9.99k | LocalSinkStateInfo& info) { | 488 | 9.99k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 9.99k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 9.99k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 9.99k | return Status::OK(); | 492 | 9.99k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 9.32k | LocalSinkStateInfo& info) { | 488 | 9.32k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 9.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 9.32k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 9.32k | return Status::OK(); | 492 | 9.32k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 3.67k | LocalSinkStateInfo& info) { | 488 | 3.67k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 3.67k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 3.67k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 3.67k | return Status::OK(); | 492 | 3.67k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 225 | LocalSinkStateInfo& info) { | 488 | 225 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 225 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 225 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 225 | return Status::OK(); | 492 | 225 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 4.56k | LocalSinkStateInfo& info) { | 488 | 4.56k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 4.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 4.56k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 4.56k | return Status::OK(); | 492 | 4.56k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 2.43k | LocalSinkStateInfo& info) { | 488 | 2.43k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 2.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 2.43k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 2.43k | return Status::OK(); | 492 | 2.43k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 2.33k | LocalSinkStateInfo& info) { | 488 | 2.33k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 2.33k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 2.33k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 2.33k | return Status::OK(); | 492 | 2.33k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 2.38k | LocalSinkStateInfo& info) { | 488 | 2.38k | auto local_state = LocalStateType::create_unique(this, state); | 489 | 2.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 2.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 2.38k | return Status::OK(); | 492 | 2.38k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 2 | LocalSinkStateInfo& info) { | 488 | 2 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 2 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 2 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 2 | return Status::OK(); | 492 | 2 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 165 | LocalSinkStateInfo& info) { | 488 | 165 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 165 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 165 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 165 | return Status::OK(); | 492 | 165 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 14 | LocalSinkStateInfo& info) { | 488 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 14 | return Status::OK(); | 492 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 104 | LocalSinkStateInfo& info) { | 488 | 104 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 104 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 104 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 104 | return Status::OK(); | 492 | 104 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 151 | LocalSinkStateInfo& info) { | 488 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 151 | return Status::OK(); | 492 | 151 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 487 | 151 | LocalSinkStateInfo& info) { | 488 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 489 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 490 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 491 | 151 | return Status::OK(); | 492 | 151 | } |
|
493 | | |
494 | | template <typename LocalStateType> |
495 | 1.81M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
497 | 0 | LocalExchangeSharedState>) { |
498 | 0 | return nullptr; |
499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
500 | 0 | MultiCastSharedState>) { |
501 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
502 | 1.81M | } else { |
503 | 1.81M | auto ss = LocalStateType::SharedStateType::create_shared(); |
504 | 1.81M | ss->id = operator_id(); |
505 | 1.81M | for (auto& dest : dests_id()) { |
506 | 1.81M | ss->related_op_ids.insert(dest); |
507 | 1.81M | } |
508 | 1.81M | return ss; |
509 | 1.81M | } |
510 | 1.81M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 203k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 203k | } else { | 503 | 203k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 203k | ss->id = operator_id(); | 505 | 203k | for (auto& dest : dests_id()) { | 506 | 203k | ss->related_op_ids.insert(dest); | 507 | 203k | } | 508 | 203k | return ss; | 509 | 203k | } | 510 | 203k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 446k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 446k | } else { | 503 | 446k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 446k | ss->id = operator_id(); | 505 | 446k | for (auto& dest : dests_id()) { | 506 | 444k | ss->related_op_ids.insert(dest); | 507 | 444k | } | 508 | 446k | return ss; | 509 | 446k | } | 510 | 446k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 80 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 80 | } else { | 503 | 80 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 80 | ss->id = operator_id(); | 505 | 80 | for (auto& dest : dests_id()) { | 506 | 80 | ss->related_op_ids.insert(dest); | 507 | 80 | } | 508 | 80 | return ss; | 509 | 80 | } | 510 | 80 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 3 | } else { | 503 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 3 | ss->id = operator_id(); | 505 | 3 | for (auto& dest : dests_id()) { | 506 | 3 | ss->related_op_ids.insert(dest); | 507 | 3 | } | 508 | 3 | return ss; | 509 | 3 | } | 510 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 542 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 542 | } else { | 503 | 542 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 542 | ss->id = operator_id(); | 505 | 542 | for (auto& dest : dests_id()) { | 506 | 542 | ss->related_op_ids.insert(dest); | 507 | 542 | } | 508 | 542 | return ss; | 509 | 542 | } | 510 | 542 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 51.5k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 51.5k | } else { | 503 | 51.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 51.5k | ss->id = operator_id(); | 505 | 51.5k | for (auto& dest : dests_id()) { | 506 | 51.4k | ss->related_op_ids.insert(dest); | 507 | 51.4k | } | 508 | 51.5k | return ss; | 509 | 51.5k | } | 510 | 51.5k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 5.02k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 5.02k | } else { | 503 | 5.02k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 5.02k | ss->id = operator_id(); | 505 | 5.02k | for (auto& dest : dests_id()) { | 506 | 5.02k | ss->related_op_ids.insert(dest); | 507 | 5.02k | } | 508 | 5.02k | return ss; | 509 | 5.02k | } | 510 | 5.02k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 5.15k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 5.15k | } else { | 503 | 5.15k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 5.15k | ss->id = operator_id(); | 505 | 5.15k | for (auto& dest : dests_id()) { | 506 | 5.14k | ss->related_op_ids.insert(dest); | 507 | 5.14k | } | 508 | 5.15k | return ss; | 509 | 5.15k | } | 510 | 5.15k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 156 | } else { | 503 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 156 | ss->id = operator_id(); | 505 | 156 | for (auto& dest : dests_id()) { | 506 | 156 | ss->related_op_ids.insert(dest); | 507 | 156 | } | 508 | 156 | return ss; | 509 | 156 | } | 510 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 3.38k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 3.38k | } else { | 503 | 3.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 3.38k | ss->id = operator_id(); | 505 | 3.38k | for (auto& dest : dests_id()) { | 506 | 3.38k | ss->related_op_ids.insert(dest); | 507 | 3.38k | } | 508 | 3.38k | return ss; | 509 | 3.38k | } | 510 | 3.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 160 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 160 | } else { | 503 | 160 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 160 | ss->id = operator_id(); | 505 | 160 | for (auto& dest : dests_id()) { | 506 | 160 | ss->related_op_ids.insert(dest); | 507 | 160 | } | 508 | 160 | return ss; | 509 | 160 | } | 510 | 160 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 640 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 640 | } else { | 503 | 640 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 640 | ss->id = operator_id(); | 505 | 640 | for (auto& dest : dests_id()) { | 506 | 640 | ss->related_op_ids.insert(dest); | 507 | 640 | } | 508 | 640 | return ss; | 509 | 640 | } | 510 | 640 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 6.58k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 6.58k | } else { | 503 | 6.58k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 6.58k | ss->id = operator_id(); | 505 | 6.58k | for (auto& dest : dests_id()) { | 506 | 6.58k | ss->related_op_ids.insert(dest); | 507 | 6.58k | } | 508 | 6.58k | return ss; | 509 | 6.58k | } | 510 | 6.58k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 128 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 128 | } else { | 503 | 128 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 128 | ss->id = operator_id(); | 505 | 128 | for (auto& dest : dests_id()) { | 506 | 128 | ss->related_op_ids.insert(dest); | 507 | 128 | } | 508 | 128 | return ss; | 509 | 128 | } | 510 | 128 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 261k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 261k | } else { | 503 | 261k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 261k | ss->id = operator_id(); | 505 | 261k | for (auto& dest : dests_id()) { | 506 | 261k | ss->related_op_ids.insert(dest); | 507 | 261k | } | 508 | 261k | return ss; | 509 | 261k | } | 510 | 261k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 64 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 64 | } else { | 503 | 64 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 64 | ss->id = operator_id(); | 505 | 64 | for (auto& dest : dests_id()) { | 506 | 64 | ss->related_op_ids.insert(dest); | 507 | 64 | } | 508 | 64 | return ss; | 509 | 64 | } | 510 | 64 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 136k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 136k | } else { | 503 | 136k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 136k | ss->id = operator_id(); | 505 | 136k | for (auto& dest : dests_id()) { | 506 | 136k | ss->related_op_ids.insert(dest); | 507 | 136k | } | 508 | 136k | return ss; | 509 | 136k | } | 510 | 136k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 204 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 204 | } else { | 503 | 204 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 204 | ss->id = operator_id(); | 505 | 204 | for (auto& dest : dests_id()) { | 506 | 203 | ss->related_op_ids.insert(dest); | 507 | 203 | } | 508 | 204 | return ss; | 509 | 204 | } | 510 | 204 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 680k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 680k | } else { | 503 | 680k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 680k | ss->id = operator_id(); | 505 | 680k | for (auto& dest : dests_id()) { | 506 | 678k | ss->related_op_ids.insert(dest); | 507 | 678k | } | 508 | 680k | return ss; | 509 | 680k | } | 510 | 680k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 9.99k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 9.99k | } else { | 503 | 9.99k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 9.99k | ss->id = operator_id(); | 505 | 9.99k | for (auto& dest : dests_id()) { | 506 | 9.98k | ss->related_op_ids.insert(dest); | 507 | 9.98k | } | 508 | 9.99k | return ss; | 509 | 9.99k | } | 510 | 9.99k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 431 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 431 | } else { | 503 | 431 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 431 | ss->id = operator_id(); | 505 | 431 | for (auto& dest : dests_id()) { | 506 | 431 | ss->related_op_ids.insert(dest); | 507 | 431 | } | 508 | 431 | return ss; | 509 | 431 | } | 510 | 431 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 495 | 2.34k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 2.34k | } else { | 503 | 2.34k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 2.34k | ss->id = operator_id(); | 505 | 2.35k | for (auto& dest : dests_id()) { | 506 | 2.35k | ss->related_op_ids.insert(dest); | 507 | 2.35k | } | 508 | 2.34k | return ss; | 509 | 2.34k | } | 510 | 2.34k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 495 | 2.39k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 2.39k | } else { | 503 | 2.39k | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 2.39k | ss->id = operator_id(); | 505 | 2.39k | for (auto& dest : dests_id()) { | 506 | 2.38k | ss->related_op_ids.insert(dest); | 507 | 2.38k | } | 508 | 2.39k | return ss; | 509 | 2.39k | } | 510 | 2.39k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 165 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 165 | } else { | 503 | 165 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 165 | ss->id = operator_id(); | 505 | 165 | for (auto& dest : dests_id()) { | 506 | 165 | ss->related_op_ids.insert(dest); | 507 | 165 | } | 508 | 165 | return ss; | 509 | 165 | } | 510 | 165 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 495 | 104 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 496 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 497 | | LocalExchangeSharedState>) { | 498 | | return nullptr; | 499 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | MultiCastSharedState>) { | 501 | | throw Exception(Status::FatalError("should not reach here!")); | 502 | 104 | } else { | 503 | 104 | auto ss = LocalStateType::SharedStateType::create_shared(); | 504 | 104 | ss->id = operator_id(); | 505 | 104 | for (auto& dest : dests_id()) { | 506 | 104 | ss->related_op_ids.insert(dest); | 507 | 104 | } | 508 | 104 | return ss; | 509 | 104 | } | 510 | 104 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
511 | | |
512 | | template <typename LocalStateType> |
513 | 2.63M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
514 | 2.63M | auto local_state = LocalStateType::create_unique(state, this); |
515 | 2.63M | RETURN_IF_ERROR(local_state->init(state, info)); |
516 | 2.63M | state->emplace_local_state(operator_id(), std::move(local_state)); |
517 | 2.63M | return Status::OK(); |
518 | 2.63M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 125k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 125k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 125k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 125k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 125k | return Status::OK(); | 518 | 125k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 312k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 312k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 312k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 312k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 312k | return Status::OK(); | 518 | 312k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 80 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 80 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 80 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 80 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 80 | return Status::OK(); | 518 | 80 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 31.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 31.2k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 31.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 31.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 31.2k | return Status::OK(); | 518 | 31.2k | } |
_ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 592 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 592 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 592 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 592 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 592 | return Status::OK(); | 518 | 592 | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 6.53k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 6.53k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 6.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 6.53k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 6.53k | return Status::OK(); | 518 | 6.53k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 7.04k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 7.04k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 7.04k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 7.04k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 7.04k | return Status::OK(); | 518 | 7.04k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 48 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 48 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 48 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 48 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 48 | return Status::OK(); | 518 | 48 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 253k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 253k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 253k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 253k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 253k | return Status::OK(); | 518 | 253k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 136k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 136k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 136k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 136k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 136k | return Status::OK(); | 518 | 136k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 186 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 186 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 186 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 186 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 186 | return Status::OK(); | 518 | 186 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 3.10k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 3.10k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 3.10k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 3.10k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 3.10k | return Status::OK(); | 518 | 3.10k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 433k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 433k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 433k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 433k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 433k | return Status::OK(); | 518 | 433k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 1.33k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 1.33k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 1.33k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 1.33k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 1.33k | return Status::OK(); | 518 | 1.33k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 9.94k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 9.94k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 9.94k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 9.94k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 9.94k | return Status::OK(); | 518 | 9.94k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 224 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 224 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 224 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 224 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 224 | return Status::OK(); | 518 | 224 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 1.60k | return Status::OK(); | 518 | 1.60k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 55.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 55.8k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 55.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 55.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 55.8k | return Status::OK(); | 518 | 55.8k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 9.83k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 9.83k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 9.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 9.83k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 9.83k | return Status::OK(); | 518 | 9.83k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 226 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 226 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 226 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 226 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 226 | return Status::OK(); | 518 | 226 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 2.25k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 2.25k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 2.25k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 2.25k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 2.25k | return Status::OK(); | 518 | 2.25k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 2.27k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 2.27k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 2.27k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 2.27k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 2.27k | return Status::OK(); | 518 | 2.27k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 464 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 464 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 464 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 464 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 464 | return Status::OK(); | 518 | 464 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 2.32k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 2.32k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 2.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 2.32k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 2.32k | return Status::OK(); | 518 | 2.32k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 6.56k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 6.56k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 6.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 6.56k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 6.56k | return Status::OK(); | 518 | 6.56k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 719k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 719k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 719k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 719k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 719k | return Status::OK(); | 518 | 719k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 14 | return Status::OK(); | 518 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 151 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 151 | auto local_state = LocalStateType::create_unique(state, this); | 515 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 151 | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 151 | return Status::OK(); | 518 | 151 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 1.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 1.95k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 1.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 1.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 1.95k | return Status::OK(); | 518 | 1.95k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 1.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 1.61k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 1.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 1.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 1.61k | return Status::OK(); | 518 | 1.61k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 2.19k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 2.19k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 2.19k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 2.19k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 2.19k | return Status::OK(); | 518 | 2.19k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 12.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 12.9k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 12.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 12.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 12.9k | return Status::OK(); | 518 | 12.9k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 513 | 490k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 514 | 490k | auto local_state = LocalStateType::create_unique(state, this); | 515 | 490k | RETURN_IF_ERROR(local_state->init(state, info)); | 516 | 490k | state->emplace_local_state(operator_id(), std::move(local_state)); | 517 | 490k | return Status::OK(); | 518 | 490k | } |
|
519 | | |
520 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
521 | | RuntimeState* state) |
522 | 2.12M | : _parent(parent), _state(state) {} |
523 | | |
524 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
525 | 2.62M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
526 | | |
527 | | template <typename SharedStateArg> |
528 | 2.62M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
529 | 2.62M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
530 | 2.62M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
531 | 2.62M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
532 | 2.62M | _operator_profile->set_metadata(_parent->node_id()); |
533 | | // indent is false so that source operator will have same |
534 | | // indentation_level with its parent operator. |
535 | 2.62M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
536 | 2.62M | _operator_profile->add_child(_common_profile.get(), true); |
537 | 2.62M | _operator_profile->add_child(_custom_profile.get(), true); |
538 | 2.62M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
539 | 2.62M | if constexpr (!is_fake_shared) { |
540 | 1.32M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
541 | 735k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
542 | 735k | .first.get() |
543 | 735k | ->template cast<SharedStateArg>(); |
544 | | |
545 | 735k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
546 | 735k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
547 | 735k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
548 | 735k | } else if (info.shared_state) { |
549 | 535k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
550 | 0 | DCHECK(false); |
551 | 0 | } |
552 | | // For UnionSourceOperator without children, there is no shared state. |
553 | 535k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
554 | | |
555 | 535k | _dependency = _shared_state->create_source_dependency( |
556 | 535k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
557 | 535k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
558 | 535k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
559 | 535k | } else { |
560 | 57.7k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
561 | 1.02k | DCHECK(false); |
562 | 1.02k | } |
563 | 57.7k | } |
564 | 1.32M | } |
565 | | |
566 | 2.62M | if (must_set_shared_state() && _shared_state == nullptr) { |
567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
568 | 0 | } |
569 | | |
570 | 2.62M | _rows_returned_counter = |
571 | 2.62M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
572 | 2.62M | _blocks_returned_counter = |
573 | 2.62M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
574 | 2.62M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
575 | 2.62M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
576 | 2.62M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
577 | 2.62M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
578 | 2.62M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
579 | 2.62M | _memory_used_counter = |
580 | 2.62M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
581 | 2.62M | _common_profile->add_info_string("IsColocate", |
582 | 2.62M | std::to_string(_parent->is_colocated_operator())); |
583 | 2.62M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
584 | 2.62M | _common_profile->add_info_string("FollowedByShuffledOperator", |
585 | 2.62M | std::to_string(_parent->followed_by_shuffled_operator())); |
586 | 2.62M | return Status::OK(); |
587 | 2.62M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 126k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 126k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 126k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 126k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 126k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 126k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 126k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 126k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 126k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 126k | if constexpr (!is_fake_shared) { | 540 | 126k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 18.1k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 18.1k | .first.get() | 543 | 18.1k | ->template cast<SharedStateArg>(); | 544 | | | 545 | 18.1k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 18.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 18.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 107k | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 107k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 107k | _dependency = _shared_state->create_source_dependency( | 556 | 107k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 107k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 107k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 107k | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 751 | } | 564 | 126k | } | 565 | | | 566 | 126k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 126k | _rows_returned_counter = | 571 | 126k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 126k | _blocks_returned_counter = | 573 | 126k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 126k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 126k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 126k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 126k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 126k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 126k | _memory_used_counter = | 580 | 126k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 126k | _common_profile->add_info_string("IsColocate", | 582 | 126k | std::to_string(_parent->is_colocated_operator())); | 583 | 126k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 126k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 126k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 126k | return Status::OK(); | 587 | 126k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 2 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 2 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 2 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 2 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 2 | _operator_profile->add_child(_common_profile.get(), true); | 537 | 2 | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 2 | if constexpr (!is_fake_shared) { | 540 | 2 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 2 | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 2 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 2 | _dependency = _shared_state->create_source_dependency( | 556 | 2 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 2 | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 0 | } | 564 | 2 | } | 565 | | | 566 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 2 | _rows_returned_counter = | 571 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 2 | _blocks_returned_counter = | 573 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 2 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 2 | _memory_used_counter = | 580 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 2 | _common_profile->add_info_string("IsColocate", | 582 | 2 | std::to_string(_parent->is_colocated_operator())); | 583 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 2 | return Status::OK(); | 587 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 260k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 260k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 260k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 260k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 260k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 260k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 260k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 260k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 260k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 260k | if constexpr (!is_fake_shared) { | 540 | 260k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 260k | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 257k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 257k | _dependency = _shared_state->create_source_dependency( | 556 | 257k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 257k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 257k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 257k | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 3.20k | } | 564 | 260k | } | 565 | | | 566 | 260k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 260k | _rows_returned_counter = | 571 | 260k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 260k | _blocks_returned_counter = | 573 | 260k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 260k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 260k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 260k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 260k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 260k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 260k | _memory_used_counter = | 580 | 260k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 260k | _common_profile->add_info_string("IsColocate", | 582 | 260k | std::to_string(_parent->is_colocated_operator())); | 583 | 260k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 260k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 260k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 260k | return Status::OK(); | 587 | 260k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 48 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 48 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 48 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 48 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 48 | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 48 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 48 | _operator_profile->add_child(_common_profile.get(), true); | 537 | 48 | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 48 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 48 | if constexpr (!is_fake_shared) { | 540 | 48 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 48 | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 48 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 48 | _dependency = _shared_state->create_source_dependency( | 556 | 48 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 48 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 48 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 48 | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 0 | } | 564 | 48 | } | 565 | | | 566 | 48 | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 48 | _rows_returned_counter = | 571 | 48 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 48 | _blocks_returned_counter = | 573 | 48 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 48 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 48 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 48 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 48 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 48 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 48 | _memory_used_counter = | 580 | 48 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 48 | _common_profile->add_info_string("IsColocate", | 582 | 48 | std::to_string(_parent->is_colocated_operator())); | 583 | 48 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 48 | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 48 | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 48 | return Status::OK(); | 587 | 48 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 9.93k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 9.93k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 9.93k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 9.93k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 9.93k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 9.93k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 9.93k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 9.93k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 9.93k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 9.93k | if constexpr (!is_fake_shared) { | 540 | 9.93k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 9.95k | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 9.95k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 9.95k | _dependency = _shared_state->create_source_dependency( | 556 | 9.95k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 9.95k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 9.95k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 18.4E | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 18.4E | } | 564 | 9.93k | } | 565 | | | 566 | 9.93k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 9.93k | _rows_returned_counter = | 571 | 9.93k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 9.93k | _blocks_returned_counter = | 573 | 9.93k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.93k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 9.93k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 9.93k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 9.93k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 9.93k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 9.93k | _memory_used_counter = | 580 | 9.93k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 9.93k | _common_profile->add_info_string("IsColocate", | 582 | 9.93k | std::to_string(_parent->is_colocated_operator())); | 583 | 9.93k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 9.93k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 9.93k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 9.93k | return Status::OK(); | 587 | 9.93k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 6.55k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 6.55k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 6.55k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 6.55k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 6.55k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 6.55k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 6.55k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 6.55k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 6.55k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 6.55k | if constexpr (!is_fake_shared) { | 540 | 6.55k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 6.55k | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 6.52k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 6.52k | _dependency = _shared_state->create_source_dependency( | 556 | 6.52k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 6.52k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 6.52k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 6.52k | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 28 | } | 564 | 6.55k | } | 565 | | | 566 | 6.55k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 6.55k | _rows_returned_counter = | 571 | 6.55k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 6.55k | _blocks_returned_counter = | 573 | 6.55k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 6.55k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 6.55k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 6.55k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 6.55k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 6.55k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 6.55k | _memory_used_counter = | 580 | 6.55k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 6.55k | _common_profile->add_info_string("IsColocate", | 582 | 6.55k | std::to_string(_parent->is_colocated_operator())); | 583 | 6.55k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 6.55k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 6.55k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 6.55k | return Status::OK(); | 587 | 6.55k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 136k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 136k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 136k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 136k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 136k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 136k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 136k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 136k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 136k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 136k | if constexpr (!is_fake_shared) { | 540 | 136k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 136k | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 134k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 134k | _dependency = _shared_state->create_source_dependency( | 556 | 134k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 134k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 134k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 134k | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 1.27k | } | 564 | 136k | } | 565 | | | 566 | 136k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 136k | _rows_returned_counter = | 571 | 136k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 136k | _blocks_returned_counter = | 573 | 136k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 136k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 136k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 136k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 136k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 136k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 136k | _memory_used_counter = | 580 | 136k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 136k | _common_profile->add_info_string("IsColocate", | 582 | 136k | std::to_string(_parent->is_colocated_operator())); | 583 | 136k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 136k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 136k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 136k | return Status::OK(); | 587 | 136k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 186 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 186 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 186 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 186 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 186 | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 186 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 186 | _operator_profile->add_child(_common_profile.get(), true); | 537 | 186 | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 186 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 186 | if constexpr (!is_fake_shared) { | 540 | 186 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 186 | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 185 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 185 | _dependency = _shared_state->create_source_dependency( | 556 | 185 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 185 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 185 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 185 | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 1 | } | 564 | 186 | } | 565 | | | 566 | 186 | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 186 | _rows_returned_counter = | 571 | 186 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 186 | _blocks_returned_counter = | 573 | 186 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 186 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 186 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 186 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 186 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 186 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 186 | _memory_used_counter = | 580 | 186 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 186 | _common_profile->add_info_string("IsColocate", | 582 | 186 | std::to_string(_parent->is_colocated_operator())); | 583 | 186 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 186 | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 186 | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 186 | return Status::OK(); | 587 | 186 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.29M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.29M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 1.29M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 1.29M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 1.29M | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 1.29M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 1.29M | _operator_profile->add_child(_common_profile.get(), true); | 537 | 1.29M | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 1.29M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | | if constexpr (!is_fake_shared) { | 540 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | | .first.get() | 543 | | ->template cast<SharedStateArg>(); | 544 | | | 545 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | | _dependency = _shared_state->create_source_dependency( | 556 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | | } | 564 | | } | 565 | | | 566 | 1.29M | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 1.29M | _rows_returned_counter = | 571 | 1.29M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 1.29M | _blocks_returned_counter = | 573 | 1.29M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 1.29M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 1.29M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 1.29M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 1.29M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 1.29M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 1.29M | _memory_used_counter = | 580 | 1.29M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 1.29M | _common_profile->add_info_string("IsColocate", | 582 | 1.29M | std::to_string(_parent->is_colocated_operator())); | 583 | 1.29M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 1.29M | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 1.29M | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 1.29M | return Status::OK(); | 587 | 1.29M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 55.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 55.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 55.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 55.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 55.7k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 55.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 55.7k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 55.7k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 55.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 55.7k | if constexpr (!is_fake_shared) { | 540 | 55.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 55.7k | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 4.43k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 4.43k | _dependency = _shared_state->create_source_dependency( | 556 | 4.43k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 4.43k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 4.43k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 51.3k | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 51.3k | } | 564 | 55.7k | } | 565 | | | 566 | 55.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 55.7k | _rows_returned_counter = | 571 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 55.7k | _blocks_returned_counter = | 573 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 55.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 55.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 55.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 55.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 55.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 55.7k | _memory_used_counter = | 580 | 55.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 55.7k | _common_profile->add_info_string("IsColocate", | 582 | 55.7k | std::to_string(_parent->is_colocated_operator())); | 583 | 55.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 55.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 55.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 55.7k | return Status::OK(); | 587 | 55.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 20 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 20 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 20 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 20 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 20 | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 20 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 20 | _operator_profile->add_child(_common_profile.get(), true); | 537 | 20 | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 20 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 20 | if constexpr (!is_fake_shared) { | 540 | 20 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 20 | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 20 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 20 | _dependency = _shared_state->create_source_dependency( | 556 | 20 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 20 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 20 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 20 | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 0 | } | 564 | 20 | } | 565 | | | 566 | 20 | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 20 | _rows_returned_counter = | 571 | 20 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 20 | _blocks_returned_counter = | 573 | 20 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 20 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 20 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 20 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 20 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 20 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 20 | _memory_used_counter = | 580 | 20 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 20 | _common_profile->add_info_string("IsColocate", | 582 | 20 | std::to_string(_parent->is_colocated_operator())); | 583 | 20 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 20 | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 20 | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 20 | return Status::OK(); | 587 | 20 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 9.83k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 9.83k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 9.83k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 9.83k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 9.83k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 9.83k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 9.83k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 9.83k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 9.83k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 9.83k | if constexpr (!is_fake_shared) { | 540 | 9.83k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 9.83k | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 9.82k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 9.82k | _dependency = _shared_state->create_source_dependency( | 556 | 9.82k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 9.82k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 9.82k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 9.82k | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 16 | } | 564 | 9.83k | } | 565 | | | 566 | 9.83k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 9.83k | _rows_returned_counter = | 571 | 9.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 9.83k | _blocks_returned_counter = | 573 | 9.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.83k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 9.83k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 9.83k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 9.83k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 9.83k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 9.83k | _memory_used_counter = | 580 | 9.83k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 9.83k | _common_profile->add_info_string("IsColocate", | 582 | 9.83k | std::to_string(_parent->is_colocated_operator())); | 583 | 9.83k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 9.83k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 9.83k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 9.83k | return Status::OK(); | 587 | 9.83k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 430 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 430 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 430 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 430 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 430 | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 430 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 430 | _operator_profile->add_child(_common_profile.get(), true); | 537 | 430 | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 430 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 430 | if constexpr (!is_fake_shared) { | 540 | 430 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 430 | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 428 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 428 | _dependency = _shared_state->create_source_dependency( | 556 | 428 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 428 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 428 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 428 | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 2 | } | 564 | 430 | } | 565 | | | 566 | 430 | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 430 | _rows_returned_counter = | 571 | 430 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 430 | _blocks_returned_counter = | 573 | 430 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 430 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 430 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 430 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 430 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 430 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 430 | _memory_used_counter = | 580 | 430 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 430 | _common_profile->add_info_string("IsColocate", | 582 | 430 | std::to_string(_parent->is_colocated_operator())); | 583 | 430 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 430 | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 430 | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 430 | return Status::OK(); | 587 | 430 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 4.69k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 4.69k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 4.69k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 4.69k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 4.69k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 4.69k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 4.69k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 4.69k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 4.69k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 4.69k | if constexpr (!is_fake_shared) { | 540 | 4.69k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 4.69k | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 4.60k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 4.60k | _dependency = _shared_state->create_source_dependency( | 556 | 4.60k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 4.60k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 4.60k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 4.60k | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 94 | } | 564 | 4.69k | } | 565 | | | 566 | 4.69k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 4.69k | _rows_returned_counter = | 571 | 4.69k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 4.69k | _blocks_returned_counter = | 573 | 4.69k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 4.69k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 4.69k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 4.69k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 4.69k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 4.69k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 4.69k | _memory_used_counter = | 580 | 4.69k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 4.69k | _common_profile->add_info_string("IsColocate", | 582 | 4.69k | std::to_string(_parent->is_colocated_operator())); | 583 | 4.69k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 4.69k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 4.69k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 4.69k | return Status::OK(); | 587 | 4.69k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 718k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 718k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 718k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 718k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 718k | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 718k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 718k | _operator_profile->add_child(_common_profile.get(), true); | 537 | 718k | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 718k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 718k | if constexpr (!is_fake_shared) { | 540 | 718k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 717k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 717k | .first.get() | 543 | 717k | ->template cast<SharedStateArg>(); | 544 | | | 545 | 717k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 717k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 717k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 717k | } else if (info.shared_state) { | 549 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | 0 | DCHECK(false); | 551 | 0 | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | |
| 555 | 0 | _dependency = _shared_state->create_source_dependency( | 556 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 1.02k | } else { | 560 | 1.02k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | 1.02k | DCHECK(false); | 562 | 1.02k | } | 563 | 1.02k | } | 564 | 718k | } | 565 | | | 566 | 718k | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 718k | _rows_returned_counter = | 571 | 718k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 718k | _blocks_returned_counter = | 573 | 718k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 718k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 718k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 718k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 718k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 718k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 718k | _memory_used_counter = | 580 | 718k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 718k | _common_profile->add_info_string("IsColocate", | 582 | 718k | std::to_string(_parent->is_colocated_operator())); | 583 | 718k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 718k | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 718k | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 718k | return Status::OK(); | 587 | 718k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 151 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 529 | 151 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 530 | 151 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 531 | 151 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 532 | 151 | _operator_profile->set_metadata(_parent->node_id()); | 533 | | // indent is false so that source operator will have same | 534 | | // indentation_level with its parent operator. | 535 | 151 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 536 | 151 | _operator_profile->add_child(_common_profile.get(), true); | 537 | 151 | _operator_profile->add_child(_custom_profile.get(), true); | 538 | 151 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 539 | 151 | if constexpr (!is_fake_shared) { | 540 | 151 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 541 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 542 | 0 | .first.get() | 543 | 0 | ->template cast<SharedStateArg>(); | 544 | |
| 545 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 546 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 547 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 548 | 151 | } else if (info.shared_state) { | 549 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 550 | | DCHECK(false); | 551 | | } | 552 | | // For UnionSourceOperator without children, there is no shared state. | 553 | 151 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 554 | | | 555 | 151 | _dependency = _shared_state->create_source_dependency( | 556 | 151 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 557 | 151 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 558 | 151 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 559 | 151 | } else { | 560 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 561 | | DCHECK(false); | 562 | | } | 563 | 0 | } | 564 | 151 | } | 565 | | | 566 | 151 | if (must_set_shared_state() && _shared_state == nullptr) { | 567 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 568 | 0 | } | 569 | | | 570 | 151 | _rows_returned_counter = | 571 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 572 | 151 | _blocks_returned_counter = | 573 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 574 | 151 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 575 | 151 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 576 | 151 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 577 | 151 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 578 | 151 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 579 | 151 | _memory_used_counter = | 580 | 151 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 581 | 151 | _common_profile->add_info_string("IsColocate", | 582 | 151 | std::to_string(_parent->is_colocated_operator())); | 583 | 151 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 584 | 151 | _common_profile->add_info_string("FollowedByShuffledOperator", | 585 | 151 | std::to_string(_parent->followed_by_shuffled_operator())); | 586 | 151 | return Status::OK(); | 587 | 151 | } |
|
588 | | |
589 | | template <typename SharedStateArg> |
590 | 2.64M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
591 | 2.64M | _conjuncts.resize(_parent->_conjuncts.size()); |
592 | 2.64M | _projections.resize(_parent->_projections.size()); |
593 | 3.14M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
594 | 498k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
595 | 498k | } |
596 | 5.58M | for (size_t i = 0; i < _projections.size(); i++) { |
597 | 2.93M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
598 | 2.93M | } |
599 | 2.64M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
600 | 2.65M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
601 | 8.48k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
602 | 59.4k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
603 | 50.9k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
604 | 50.9k | state, _intermediate_projections[i][j])); |
605 | 50.9k | } |
606 | 8.48k | } |
607 | 2.64M | return Status::OK(); |
608 | 2.64M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 126k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 126k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 126k | _projections.resize(_parent->_projections.size()); | 593 | 127k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 1.40k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 1.40k | } | 596 | 603k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 477k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 477k | } | 599 | 126k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 127k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 1.45k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 16.3k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 14.9k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 14.9k | state, _intermediate_projections[i][j])); | 605 | 14.9k | } | 606 | 1.45k | } | 607 | 126k | return Status::OK(); | 608 | 126k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 6 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 6 | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 6 | _projections.resize(_parent->_projections.size()); | 593 | 6 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 6 | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 0 | } | 599 | 6 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 6 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 6 | return Status::OK(); | 608 | 6 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 261k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 261k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 261k | _projections.resize(_parent->_projections.size()); | 593 | 261k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 262k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 354 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 354 | } | 599 | 261k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 261k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 261k | return Status::OK(); | 608 | 261k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 48 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 48 | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 48 | _projections.resize(_parent->_projections.size()); | 593 | 48 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 48 | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 0 | } | 599 | 48 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 48 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 48 | return Status::OK(); | 608 | 48 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 9.99k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 9.99k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 9.99k | _projections.resize(_parent->_projections.size()); | 593 | 10.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 117 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 117 | } | 596 | 57.9k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 47.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 47.9k | } | 599 | 9.99k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 10.1k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 147 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 925 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 778 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 778 | state, _intermediate_projections[i][j])); | 605 | 778 | } | 606 | 147 | } | 607 | 9.99k | return Status::OK(); | 608 | 9.99k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 6.59k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 6.59k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 6.59k | _projections.resize(_parent->_projections.size()); | 593 | 7.28k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 684 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 684 | } | 596 | 17.0k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 10.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 10.4k | } | 599 | 6.59k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 6.68k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 87 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 654 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 567 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 567 | state, _intermediate_projections[i][j])); | 605 | 567 | } | 606 | 87 | } | 607 | 6.59k | return Status::OK(); | 608 | 6.59k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 136k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 136k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 136k | _projections.resize(_parent->_projections.size()); | 593 | 140k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 4.16k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 4.16k | } | 596 | 403k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 266k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 266k | } | 599 | 136k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 136k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 245 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 1.77k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 1.52k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 1.52k | state, _intermediate_projections[i][j])); | 605 | 1.52k | } | 606 | 245 | } | 607 | 136k | return Status::OK(); | 608 | 136k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 192 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 192 | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 192 | _projections.resize(_parent->_projections.size()); | 593 | 192 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 368 | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 176 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 176 | } | 599 | 192 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 192 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 192 | return Status::OK(); | 608 | 192 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 1.30M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 1.30M | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 1.30M | _projections.resize(_parent->_projections.size()); | 593 | 1.79M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 489k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 489k | } | 596 | 3.35M | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 2.04M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 2.04M | } | 599 | 1.30M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 1.31M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 6.54k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 39.7k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 33.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 33.1k | state, _intermediate_projections[i][j])); | 605 | 33.1k | } | 606 | 6.54k | } | 607 | 1.30M | return Status::OK(); | 608 | 1.30M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 56.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 56.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 56.1k | _projections.resize(_parent->_projections.size()); | 593 | 56.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 148k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 92.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 92.0k | } | 599 | 56.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 56.1k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 56.1k | return Status::OK(); | 608 | 56.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 20 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 20 | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 20 | _projections.resize(_parent->_projections.size()); | 593 | 20 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 20 | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 0 | } | 599 | 20 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 20 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 20 | return Status::OK(); | 608 | 20 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 9.83k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 9.83k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 9.83k | _projections.resize(_parent->_projections.size()); | 593 | 12.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 2.89k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 2.89k | } | 596 | 9.83k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 0 | } | 599 | 9.83k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 9.83k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 9.83k | return Status::OK(); | 608 | 9.83k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 431 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 431 | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 431 | _projections.resize(_parent->_projections.size()); | 593 | 431 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 431 | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 0 | } | 599 | 431 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 431 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 431 | return Status::OK(); | 608 | 431 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 4.79k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 4.79k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 4.79k | _projections.resize(_parent->_projections.size()); | 593 | 4.79k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 4.79k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 0 | } | 599 | 4.79k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 4.79k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 4.79k | return Status::OK(); | 608 | 4.79k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 724k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 724k | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 724k | _projections.resize(_parent->_projections.size()); | 593 | 724k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 0 | } | 596 | 724k | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 0 | } | 599 | 724k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 724k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 0 | state, _intermediate_projections[i][j])); | 605 | 0 | } | 606 | 0 | } | 607 | 724k | return Status::OK(); | 608 | 724k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 590 | 151 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 591 | 151 | _conjuncts.resize(_parent->_conjuncts.size()); | 592 | 151 | _projections.resize(_parent->_projections.size()); | 593 | 158 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 594 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 595 | 7 | } | 596 | 447 | for (size_t i = 0; i < _projections.size(); i++) { | 597 | 296 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 598 | 296 | } | 599 | 151 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 600 | 152 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 601 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 602 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 603 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 604 | 2 | state, _intermediate_projections[i][j])); | 605 | 2 | } | 606 | 1 | } | 607 | 151 | return Status::OK(); | 608 | 151 | } |
|
609 | | |
610 | | template <typename SharedStateArg> |
611 | 10.5k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
612 | 10.5k | if (_terminated) { |
613 | 0 | return Status::OK(); |
614 | 0 | } |
615 | 10.5k | _terminated = true; |
616 | 10.5k | return Status::OK(); |
617 | 10.5k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 1.23k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 1.23k | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 1.23k | _terminated = true; | 616 | 1.23k | return Status::OK(); | 617 | 1.23k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 159 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 159 | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 159 | _terminated = true; | 616 | 159 | return Status::OK(); | 617 | 159 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 190 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 190 | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 190 | _terminated = true; | 616 | 190 | return Status::OK(); | 617 | 190 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 184 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 184 | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 184 | _terminated = true; | 616 | 184 | return Status::OK(); | 617 | 184 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 6.90k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 6.90k | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 6.90k | _terminated = true; | 616 | 6.90k | return Status::OK(); | 617 | 6.90k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 6 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 6 | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 6 | _terminated = true; | 616 | 6 | return Status::OK(); | 617 | 6 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 14 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 14 | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 14 | _terminated = true; | 616 | 14 | return Status::OK(); | 617 | 14 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 469 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 469 | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 469 | _terminated = true; | 616 | 469 | return Status::OK(); | 617 | 469 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 1.35k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 1.35k | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 1.35k | _terminated = true; | 616 | 1.35k | return Status::OK(); | 617 | 1.35k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 611 | 14 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 612 | 14 | if (_terminated) { | 613 | 0 | return Status::OK(); | 614 | 0 | } | 615 | 14 | _terminated = true; | 616 | 14 | return Status::OK(); | 617 | 14 | } |
|
618 | | |
619 | | template <typename SharedStateArg> |
620 | 2.93M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
621 | 2.93M | if (_closed) { |
622 | 289k | return Status::OK(); |
623 | 289k | } |
624 | 2.64M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
625 | 1.33M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
626 | 1.33M | } |
627 | 2.64M | _closed = true; |
628 | 2.64M | return Status::OK(); |
629 | 2.93M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 126k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 126k | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 126k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 126k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 126k | } | 627 | 126k | _closed = true; | 628 | 126k | return Status::OK(); | 629 | 126k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 6 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 6 | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 6 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 6 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 6 | } | 627 | 6 | _closed = true; | 628 | 6 | return Status::OK(); | 629 | 6 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 521k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 521k | if (_closed) { | 622 | 260k | return Status::OK(); | 623 | 260k | } | 624 | 260k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 260k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 260k | } | 627 | 260k | _closed = true; | 628 | 260k | return Status::OK(); | 629 | 521k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 48 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 48 | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 48 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 48 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 48 | } | 627 | 48 | _closed = true; | 628 | 48 | return Status::OK(); | 629 | 48 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 10.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 10.0k | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 10.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 10.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 10.0k | } | 627 | 10.0k | _closed = true; | 628 | 10.0k | return Status::OK(); | 629 | 10.0k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 13.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 13.2k | if (_closed) { | 622 | 6.68k | return Status::OK(); | 623 | 6.68k | } | 624 | 6.57k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 6.57k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 6.57k | } | 627 | 6.57k | _closed = true; | 628 | 6.57k | return Status::OK(); | 629 | 13.2k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 136k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 136k | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 136k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 136k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 136k | } | 627 | 136k | _closed = true; | 628 | 136k | return Status::OK(); | 629 | 136k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 184 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 184 | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 184 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 184 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 184 | } | 627 | 184 | _closed = true; | 628 | 184 | return Status::OK(); | 629 | 184 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 1.32M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 1.32M | if (_closed) { | 622 | 17.0k | return Status::OK(); | 623 | 17.0k | } | 624 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | | } | 627 | 1.30M | _closed = true; | 628 | 1.30M | return Status::OK(); | 629 | 1.32M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 56.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 56.1k | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 56.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 56.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 56.1k | } | 627 | 56.1k | _closed = true; | 628 | 56.1k | return Status::OK(); | 629 | 56.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 28 | if (_closed) { | 622 | 14 | return Status::OK(); | 623 | 14 | } | 624 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 14 | } | 627 | 14 | _closed = true; | 628 | 14 | return Status::OK(); | 629 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 9.80k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 9.80k | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 9.80k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 9.80k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 9.80k | } | 627 | 9.80k | _closed = true; | 628 | 9.80k | return Status::OK(); | 629 | 9.80k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 452 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 452 | if (_closed) { | 622 | 227 | return Status::OK(); | 623 | 227 | } | 624 | 225 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 225 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 225 | } | 627 | 225 | _closed = true; | 628 | 225 | return Status::OK(); | 629 | 452 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 9.57k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 9.57k | if (_closed) { | 622 | 4.80k | return Status::OK(); | 623 | 4.80k | } | 624 | 4.77k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 4.77k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 4.77k | } | 627 | 4.77k | _closed = true; | 628 | 4.77k | return Status::OK(); | 629 | 9.57k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 725k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 725k | if (_closed) { | 622 | 0 | return Status::OK(); | 623 | 0 | } | 624 | 725k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 725k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 725k | } | 627 | 725k | _closed = true; | 628 | 725k | return Status::OK(); | 629 | 725k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 620 | 304 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 621 | 304 | if (_closed) { | 622 | 162 | return Status::OK(); | 623 | 162 | } | 624 | 142 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 625 | 142 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 626 | 142 | } | 627 | 142 | _closed = true; | 628 | 142 | return Status::OK(); | 629 | 304 | } |
|
630 | | |
631 | | template <typename SharedState> |
632 | 2.13M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
633 | | // create profile |
634 | 2.13M | _operator_profile = |
635 | 2.13M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
636 | 2.13M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
637 | 2.13M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
638 | | |
639 | | // indentation is true |
640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
641 | | // So we should set the indentation to true. |
642 | 2.13M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
643 | 2.13M | _operator_profile->add_child(_common_profile, true); |
644 | 2.13M | _operator_profile->add_child(_custom_profile, true); |
645 | | |
646 | 2.13M | _operator_profile->set_metadata(_parent->node_id()); |
647 | 2.13M | _wait_for_finish_dependency_timer = |
648 | 2.13M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
649 | 2.13M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
650 | 2.13M | if constexpr (!is_fake_shared) { |
651 | 1.44M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
652 | 1.44M | info.shared_state_map.end()) { |
653 | 289k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
654 | 269k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
655 | 269k | } |
656 | 289k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
657 | 289k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
658 | 289k | ? 0 |
659 | 289k | : info.task_idx] |
660 | 289k | .get(); |
661 | 289k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
662 | 1.15M | } else { |
663 | 1.15M | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
664 | 301 | DCHECK(false); |
665 | 301 | } |
666 | 1.15M | _shared_state = info.shared_state->template cast<SharedState>(); |
667 | 1.15M | _dependency = _shared_state->create_sink_dependency( |
668 | 1.15M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
669 | 1.15M | } |
670 | 1.44M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
671 | 1.44M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
672 | 1.44M | } |
673 | | |
674 | 2.13M | if (must_set_shared_state() && _shared_state == nullptr) { |
675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
676 | 0 | } |
677 | | |
678 | 2.13M | _rows_input_counter = |
679 | 2.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
680 | 2.13M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
681 | 2.13M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
682 | 2.13M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
683 | 2.13M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
684 | 2.13M | _memory_used_counter = |
685 | 2.13M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
686 | 2.13M | _common_profile->add_info_string("IsColocate", |
687 | 2.13M | std::to_string(_parent->is_colocated_operator())); |
688 | 2.13M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
689 | 2.13M | _common_profile->add_info_string("FollowedByShuffledOperator", |
690 | 2.13M | std::to_string(_parent->followed_by_shuffled_operator())); |
691 | 2.13M | return Status::OK(); |
692 | 2.13M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 222k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 222k | _operator_profile = | 635 | 222k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 222k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 222k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 222k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 222k | _operator_profile->add_child(_common_profile, true); | 644 | 222k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 222k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 222k | _wait_for_finish_dependency_timer = | 648 | 222k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 222k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 222k | if constexpr (!is_fake_shared) { | 651 | 222k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 222k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 18.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 18.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 18.2k | ? 0 | 659 | 18.2k | : info.task_idx] | 660 | 18.2k | .get(); | 661 | 18.2k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 204k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 204k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 204k | _dependency = _shared_state->create_sink_dependency( | 668 | 204k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 204k | } | 670 | 222k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 222k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 222k | } | 673 | | | 674 | 222k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 222k | _rows_input_counter = | 679 | 222k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 222k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 222k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 222k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 222k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 222k | _memory_used_counter = | 685 | 222k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 222k | _common_profile->add_info_string("IsColocate", | 687 | 222k | std::to_string(_parent->is_colocated_operator())); | 688 | 222k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 222k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 222k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 222k | return Status::OK(); | 692 | 222k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 4 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 4 | _operator_profile = | 635 | 4 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 4 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 4 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 4 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 4 | _operator_profile->add_child(_common_profile, true); | 644 | 4 | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 4 | _operator_profile->set_metadata(_parent->node_id()); | 647 | 4 | _wait_for_finish_dependency_timer = | 648 | 4 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 4 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 4 | if constexpr (!is_fake_shared) { | 651 | 4 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 4 | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 4 | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 4 | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 4 | _dependency = _shared_state->create_sink_dependency( | 668 | 4 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 4 | } | 670 | 4 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 4 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 4 | } | 673 | | | 674 | 4 | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 4 | _rows_input_counter = | 679 | 4 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 4 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 4 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 4 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 4 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 4 | _memory_used_counter = | 685 | 4 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 4 | _common_profile->add_info_string("IsColocate", | 687 | 4 | std::to_string(_parent->is_colocated_operator())); | 688 | 4 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 4 | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 4 | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 4 | return Status::OK(); | 692 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 261k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 261k | _operator_profile = | 635 | 261k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 261k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 261k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 261k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 261k | _operator_profile->add_child(_common_profile, true); | 644 | 261k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 261k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 261k | _wait_for_finish_dependency_timer = | 648 | 261k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 261k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 261k | if constexpr (!is_fake_shared) { | 651 | 261k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 261k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 261k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 261k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 261k | _dependency = _shared_state->create_sink_dependency( | 668 | 261k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 261k | } | 670 | 261k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 261k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 261k | } | 673 | | | 674 | 261k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 261k | _rows_input_counter = | 679 | 261k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 261k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 261k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 261k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 261k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 261k | _memory_used_counter = | 685 | 261k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 261k | _common_profile->add_info_string("IsColocate", | 687 | 261k | std::to_string(_parent->is_colocated_operator())); | 688 | 261k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 261k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 261k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 261k | return Status::OK(); | 692 | 261k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 60 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 60 | _operator_profile = | 635 | 60 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 60 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 60 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 60 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 60 | _operator_profile->add_child(_common_profile, true); | 644 | 60 | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 60 | _operator_profile->set_metadata(_parent->node_id()); | 647 | 60 | _wait_for_finish_dependency_timer = | 648 | 60 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 60 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 60 | if constexpr (!is_fake_shared) { | 651 | 60 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 60 | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 60 | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 60 | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 60 | _dependency = _shared_state->create_sink_dependency( | 668 | 60 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 60 | } | 670 | 60 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 60 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 60 | } | 673 | | | 674 | 60 | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 60 | _rows_input_counter = | 679 | 60 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 60 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 60 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 60 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 60 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 60 | _memory_used_counter = | 685 | 60 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 60 | _common_profile->add_info_string("IsColocate", | 687 | 60 | std::to_string(_parent->is_colocated_operator())); | 688 | 60 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 60 | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 60 | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 60 | return Status::OK(); | 692 | 60 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 9.99k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 9.99k | _operator_profile = | 635 | 9.99k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 9.99k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 9.99k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 9.99k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 9.99k | _operator_profile->add_child(_common_profile, true); | 644 | 9.99k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 9.99k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 9.99k | _wait_for_finish_dependency_timer = | 648 | 9.99k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 9.99k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 9.99k | if constexpr (!is_fake_shared) { | 651 | 9.99k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 9.99k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 9.99k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 9.99k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 9.99k | _dependency = _shared_state->create_sink_dependency( | 668 | 9.99k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 9.99k | } | 670 | 9.99k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 9.99k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 9.99k | } | 673 | | | 674 | 9.99k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 9.99k | _rows_input_counter = | 679 | 9.99k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 9.99k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 9.99k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 9.99k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 9.99k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 9.99k | _memory_used_counter = | 685 | 9.99k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 9.99k | _common_profile->add_info_string("IsColocate", | 687 | 9.99k | std::to_string(_parent->is_colocated_operator())); | 688 | 9.99k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 9.99k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 9.99k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 9.99k | return Status::OK(); | 692 | 9.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 6.57k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 6.57k | _operator_profile = | 635 | 6.57k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 6.57k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 6.57k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 6.57k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 6.57k | _operator_profile->add_child(_common_profile, true); | 644 | 6.57k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 6.57k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 6.57k | _wait_for_finish_dependency_timer = | 648 | 6.57k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 6.57k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 6.57k | if constexpr (!is_fake_shared) { | 651 | 6.57k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 6.57k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 6.57k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 6.57k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 6.57k | _dependency = _shared_state->create_sink_dependency( | 668 | 6.57k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 6.57k | } | 670 | 6.57k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 6.57k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 6.57k | } | 673 | | | 674 | 6.57k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 6.57k | _rows_input_counter = | 679 | 6.57k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 6.57k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 6.57k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 6.57k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 6.57k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 6.57k | _memory_used_counter = | 685 | 6.57k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 6.57k | _common_profile->add_info_string("IsColocate", | 687 | 6.57k | std::to_string(_parent->is_colocated_operator())); | 688 | 6.57k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 6.57k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 6.57k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 6.57k | return Status::OK(); | 692 | 6.57k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 136k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 136k | _operator_profile = | 635 | 136k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 136k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 136k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 136k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 136k | _operator_profile->add_child(_common_profile, true); | 644 | 136k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 136k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 136k | _wait_for_finish_dependency_timer = | 648 | 136k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 136k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 136k | if constexpr (!is_fake_shared) { | 651 | 136k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 136k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 136k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 136k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 136k | _dependency = _shared_state->create_sink_dependency( | 668 | 136k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 136k | } | 670 | 136k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 136k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 136k | } | 673 | | | 674 | 136k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 136k | _rows_input_counter = | 679 | 136k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 136k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 136k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 136k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 136k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 136k | _memory_used_counter = | 685 | 136k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 136k | _common_profile->add_info_string("IsColocate", | 687 | 136k | std::to_string(_parent->is_colocated_operator())); | 688 | 136k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 136k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 136k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 136k | return Status::OK(); | 692 | 136k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 206 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 206 | _operator_profile = | 635 | 206 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 206 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 206 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 206 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 206 | _operator_profile->add_child(_common_profile, true); | 644 | 206 | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 206 | _operator_profile->set_metadata(_parent->node_id()); | 647 | 206 | _wait_for_finish_dependency_timer = | 648 | 206 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 206 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 206 | if constexpr (!is_fake_shared) { | 651 | 206 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 206 | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 206 | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 206 | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 206 | _dependency = _shared_state->create_sink_dependency( | 668 | 206 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 206 | } | 670 | 206 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 206 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 206 | } | 673 | | | 674 | 206 | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 206 | _rows_input_counter = | 679 | 206 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 206 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 206 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 206 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 206 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 206 | _memory_used_counter = | 685 | 206 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 206 | _common_profile->add_info_string("IsColocate", | 687 | 206 | std::to_string(_parent->is_colocated_operator())); | 688 | 206 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 206 | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 206 | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 206 | return Status::OK(); | 692 | 206 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 683k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 683k | _operator_profile = | 635 | 683k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 683k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 683k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 683k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 683k | _operator_profile->add_child(_common_profile, true); | 644 | 683k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 683k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 683k | _wait_for_finish_dependency_timer = | 648 | 683k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 683k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | | if constexpr (!is_fake_shared) { | 651 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | | ? 0 | 659 | | : info.task_idx] | 660 | | .get(); | 661 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | | _dependency = _shared_state->create_sink_dependency( | 668 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | | } | 670 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | | } | 673 | | | 674 | 683k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 683k | _rows_input_counter = | 679 | 683k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 683k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 683k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 683k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 683k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 683k | _memory_used_counter = | 685 | 683k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 683k | _common_profile->add_info_string("IsColocate", | 687 | 683k | std::to_string(_parent->is_colocated_operator())); | 688 | 683k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 683k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 683k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 683k | return Status::OK(); | 692 | 683k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 9.36k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 9.36k | _operator_profile = | 635 | 9.36k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 9.36k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 9.36k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 9.36k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 9.36k | _operator_profile->add_child(_common_profile, true); | 644 | 9.36k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 9.36k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 9.36k | _wait_for_finish_dependency_timer = | 648 | 9.36k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 9.36k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 9.36k | if constexpr (!is_fake_shared) { | 651 | 9.36k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 9.36k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 9.36k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 9.36k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 9.36k | _dependency = _shared_state->create_sink_dependency( | 668 | 9.36k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 9.36k | } | 670 | 9.36k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 9.36k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 9.36k | } | 673 | | | 674 | 9.36k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 9.36k | _rows_input_counter = | 679 | 9.36k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 9.36k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 9.36k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 9.36k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 9.36k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 9.36k | _memory_used_counter = | 685 | 9.36k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 9.36k | _common_profile->add_info_string("IsColocate", | 687 | 9.36k | std::to_string(_parent->is_colocated_operator())); | 688 | 9.36k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 9.36k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 9.36k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 9.36k | return Status::OK(); | 692 | 9.36k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 431 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 431 | _operator_profile = | 635 | 431 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 431 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 431 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 431 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 431 | _operator_profile->add_child(_common_profile, true); | 644 | 431 | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 431 | _operator_profile->set_metadata(_parent->node_id()); | 647 | 431 | _wait_for_finish_dependency_timer = | 648 | 431 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 431 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 431 | if constexpr (!is_fake_shared) { | 651 | 431 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 431 | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 431 | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 431 | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 431 | _dependency = _shared_state->create_sink_dependency( | 668 | 431 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 431 | } | 670 | 431 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 431 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 431 | } | 673 | | | 674 | 431 | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 431 | _rows_input_counter = | 679 | 431 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 431 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 431 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 431 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 431 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 431 | _memory_used_counter = | 685 | 431 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 431 | _common_profile->add_info_string("IsColocate", | 687 | 431 | std::to_string(_parent->is_colocated_operator())); | 688 | 431 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 431 | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 431 | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 431 | return Status::OK(); | 692 | 431 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 3.67k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 3.67k | _operator_profile = | 635 | 3.67k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 3.67k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 3.67k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 3.67k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 3.67k | _operator_profile->add_child(_common_profile, true); | 644 | 3.67k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 3.67k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 3.67k | _wait_for_finish_dependency_timer = | 648 | 3.67k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 3.67k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 3.67k | if constexpr (!is_fake_shared) { | 651 | 3.67k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 3.67k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 3.67k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 3.67k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 3.67k | _dependency = _shared_state->create_sink_dependency( | 668 | 3.67k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 3.67k | } | 670 | 3.67k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 3.67k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 3.67k | } | 673 | | | 674 | 3.67k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 3.67k | _rows_input_counter = | 679 | 3.67k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 3.67k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 3.67k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 3.67k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 3.67k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 3.67k | _memory_used_counter = | 685 | 3.67k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 3.67k | _common_profile->add_info_string("IsColocate", | 687 | 3.67k | std::to_string(_parent->is_colocated_operator())); | 688 | 3.67k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 3.67k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 3.67k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 3.67k | return Status::OK(); | 692 | 3.67k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 11.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 11.8k | _operator_profile = | 635 | 11.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 11.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 11.8k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 11.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 11.8k | _operator_profile->add_child(_common_profile, true); | 644 | 11.8k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 11.8k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 11.8k | _wait_for_finish_dependency_timer = | 648 | 11.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 11.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 11.8k | if constexpr (!is_fake_shared) { | 651 | 11.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 11.8k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 11.8k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 11.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 11.8k | _dependency = _shared_state->create_sink_dependency( | 668 | 11.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 11.8k | } | 670 | 11.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 11.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 11.8k | } | 673 | | | 674 | 11.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 11.8k | _rows_input_counter = | 679 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 11.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 11.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 11.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 11.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 11.8k | _memory_used_counter = | 685 | 11.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 11.8k | _common_profile->add_info_string("IsColocate", | 687 | 11.8k | std::to_string(_parent->is_colocated_operator())); | 688 | 11.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 11.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 11.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 11.8k | return Status::OK(); | 692 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 269k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 269k | _operator_profile = | 635 | 269k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 269k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 269k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 269k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 269k | _operator_profile->add_child(_common_profile, true); | 644 | 269k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 269k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 269k | _wait_for_finish_dependency_timer = | 648 | 269k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 269k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 269k | if constexpr (!is_fake_shared) { | 651 | 269k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 269k | info.shared_state_map.end()) { | 653 | 269k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | 269k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | 269k | } | 656 | 269k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 269k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 269k | ? 0 | 659 | 269k | : info.task_idx] | 660 | 269k | .get(); | 661 | 269k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 269k | } else { | 663 | 301 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | 301 | DCHECK(false); | 665 | 301 | } | 666 | 301 | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 301 | _dependency = _shared_state->create_sink_dependency( | 668 | 301 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 301 | } | 670 | 269k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 269k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 269k | } | 673 | | | 674 | 269k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 269k | _rows_input_counter = | 679 | 269k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 269k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 269k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 269k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 269k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 269k | _memory_used_counter = | 685 | 269k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 269k | _common_profile->add_info_string("IsColocate", | 687 | 269k | std::to_string(_parent->is_colocated_operator())); | 688 | 269k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 269k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 269k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 269k | return Status::OK(); | 692 | 269k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 515k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 515k | _operator_profile = | 635 | 515k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 515k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 515k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 515k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 515k | _operator_profile->add_child(_common_profile, true); | 644 | 515k | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 515k | _operator_profile->set_metadata(_parent->node_id()); | 647 | 515k | _wait_for_finish_dependency_timer = | 648 | 515k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 515k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 515k | if constexpr (!is_fake_shared) { | 651 | 515k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 515k | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 1.60k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 1.60k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 1.60k | ? 0 | 659 | 1.60k | : info.task_idx] | 660 | 1.60k | .get(); | 661 | 1.60k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 513k | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 513k | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 513k | _dependency = _shared_state->create_sink_dependency( | 668 | 513k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 513k | } | 670 | 515k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 515k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 515k | } | 673 | | | 674 | 515k | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 515k | _rows_input_counter = | 679 | 515k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 515k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 515k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 515k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 515k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 515k | _memory_used_counter = | 685 | 515k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 515k | _common_profile->add_info_string("IsColocate", | 687 | 515k | std::to_string(_parent->is_colocated_operator())); | 688 | 515k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 515k | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 515k | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 515k | return Status::OK(); | 692 | 515k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 20 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 20 | _operator_profile = | 635 | 20 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 20 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 20 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 20 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 20 | _operator_profile->add_child(_common_profile, true); | 644 | 20 | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 20 | _operator_profile->set_metadata(_parent->node_id()); | 647 | 20 | _wait_for_finish_dependency_timer = | 648 | 20 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 20 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 20 | if constexpr (!is_fake_shared) { | 651 | 20 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 20 | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 20 | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 20 | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 20 | _dependency = _shared_state->create_sink_dependency( | 668 | 20 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 20 | } | 670 | 20 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 20 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 20 | } | 673 | | | 674 | 20 | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 20 | _rows_input_counter = | 679 | 20 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 20 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 20 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 20 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 20 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 20 | _memory_used_counter = | 685 | 20 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 20 | _common_profile->add_info_string("IsColocate", | 687 | 20 | std::to_string(_parent->is_colocated_operator())); | 688 | 20 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 20 | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 20 | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 20 | return Status::OK(); | 692 | 20 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 632 | 302 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 633 | | // create profile | 634 | 302 | _operator_profile = | 635 | 302 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 636 | 302 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 637 | 302 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 638 | | | 639 | | // indentation is true | 640 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 641 | | // So we should set the indentation to true. | 642 | 302 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 643 | 302 | _operator_profile->add_child(_common_profile, true); | 644 | 302 | _operator_profile->add_child(_custom_profile, true); | 645 | | | 646 | 302 | _operator_profile->set_metadata(_parent->node_id()); | 647 | 302 | _wait_for_finish_dependency_timer = | 648 | 302 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 649 | 302 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 650 | 302 | if constexpr (!is_fake_shared) { | 651 | 302 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 652 | 302 | info.shared_state_map.end()) { | 653 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 654 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 655 | | } | 656 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 657 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 658 | 0 | ? 0 | 659 | 0 | : info.task_idx] | 660 | 0 | .get(); | 661 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 662 | 302 | } else { | 663 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 664 | | DCHECK(false); | 665 | | } | 666 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 667 | 302 | _dependency = _shared_state->create_sink_dependency( | 668 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 669 | 302 | } | 670 | 302 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 671 | 302 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 672 | 302 | } | 673 | | | 674 | 302 | if (must_set_shared_state() && _shared_state == nullptr) { | 675 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 676 | 0 | } | 677 | | | 678 | 302 | _rows_input_counter = | 679 | 302 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 680 | 302 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 681 | 302 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 682 | 302 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 683 | 302 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 684 | 302 | _memory_used_counter = | 685 | 302 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 686 | 302 | _common_profile->add_info_string("IsColocate", | 687 | 302 | std::to_string(_parent->is_colocated_operator())); | 688 | 302 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 689 | 302 | _common_profile->add_info_string("FollowedByShuffledOperator", | 690 | 302 | std::to_string(_parent->followed_by_shuffled_operator())); | 691 | 302 | return Status::OK(); | 692 | 302 | } |
|
693 | | |
694 | | template <typename SharedState> |
695 | 2.13M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
696 | 2.13M | if (_closed) { |
697 | 4 | return Status::OK(); |
698 | 4 | } |
699 | 2.13M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
700 | 1.45M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
701 | 1.45M | } |
702 | 2.13M | _closed = true; |
703 | 2.13M | return Status::OK(); |
704 | 2.13M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 222k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 222k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 222k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 222k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 222k | } | 702 | 222k | _closed = true; | 703 | 222k | return Status::OK(); | 704 | 222k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 2 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 2 | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 2 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 2 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 2 | } | 702 | 2 | _closed = true; | 703 | 2 | return Status::OK(); | 704 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 261k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 261k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 261k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 261k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 261k | } | 702 | 261k | _closed = true; | 703 | 261k | return Status::OK(); | 704 | 261k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 44 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 44 | if (_closed) { | 697 | 4 | return Status::OK(); | 698 | 4 | } | 699 | 40 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 40 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 40 | } | 702 | 40 | _closed = true; | 703 | 40 | return Status::OK(); | 704 | 44 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 9.97k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 9.97k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 9.97k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 9.97k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 9.97k | } | 702 | 9.97k | _closed = true; | 703 | 9.97k | return Status::OK(); | 704 | 9.97k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 6.55k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 6.55k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 6.55k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 6.55k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 6.55k | } | 702 | 6.55k | _closed = true; | 703 | 6.55k | return Status::OK(); | 704 | 6.55k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 136k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 136k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 136k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 136k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 136k | } | 702 | 136k | _closed = true; | 703 | 136k | return Status::OK(); | 704 | 136k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 184 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 184 | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 184 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 184 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 184 | } | 702 | 184 | _closed = true; | 703 | 184 | return Status::OK(); | 704 | 184 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 684k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 684k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | | } | 702 | 684k | _closed = true; | 703 | 684k | return Status::OK(); | 704 | 684k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 9.34k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 9.34k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 9.34k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 9.34k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 9.34k | } | 702 | 9.34k | _closed = true; | 703 | 9.34k | return Status::OK(); | 704 | 9.34k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 225 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 225 | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 225 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 225 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 225 | } | 702 | 225 | _closed = true; | 703 | 225 | return Status::OK(); | 704 | 225 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 3.67k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 3.67k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 3.67k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 3.67k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 3.67k | } | 702 | 3.67k | _closed = true; | 703 | 3.67k | return Status::OK(); | 704 | 3.67k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 11.8k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 11.8k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 11.8k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 11.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 11.8k | } | 702 | 11.8k | _closed = true; | 703 | 11.8k | return Status::OK(); | 704 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 270k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 270k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 270k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 270k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 270k | } | 702 | 270k | _closed = true; | 703 | 270k | return Status::OK(); | 704 | 270k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 518k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 518k | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 518k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 518k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 518k | } | 702 | 518k | _closed = true; | 703 | 518k | return Status::OK(); | 704 | 518k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 14 | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 14 | } | 702 | 14 | _closed = true; | 703 | 14 | return Status::OK(); | 704 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 695 | 302 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 696 | 302 | if (_closed) { | 697 | 0 | return Status::OK(); | 698 | 0 | } | 699 | 302 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 700 | 302 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 701 | 302 | } | 702 | 302 | _closed = true; | 703 | 302 | return Status::OK(); | 704 | 302 | } |
|
705 | | |
706 | | template <typename LocalStateType> |
707 | 7.92k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
708 | 7.92k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
709 | 7.92k | return pull(state, block, eos); |
710 | 7.92k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 707 | 436 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 708 | 436 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 709 | 436 | return pull(state, block, eos); | 710 | 436 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 707 | 7.49k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 708 | 7.49k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 709 | 7.49k | return pull(state, block, eos); | 710 | 7.49k | } |
|
711 | | |
712 | | template <typename LocalStateType> |
713 | 840k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
714 | 840k | auto& local_state = get_local_state(state); |
715 | 840k | if (need_more_input_data(state)) { |
716 | 790k | local_state._child_block->clear_column_data( |
717 | 790k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
718 | 790k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
719 | 790k | state, local_state._child_block.get(), &local_state._child_eos)); |
720 | 790k | *eos = local_state._child_eos; |
721 | 790k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
722 | 105k | return Status::OK(); |
723 | 105k | } |
724 | 684k | { |
725 | 684k | SCOPED_TIMER(local_state.exec_time_counter()); |
726 | 684k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
727 | 684k | } |
728 | 684k | } |
729 | | |
730 | 734k | if (!need_more_input_data(state)) { |
731 | 681k | SCOPED_TIMER(local_state.exec_time_counter()); |
732 | 681k | bool new_eos = false; |
733 | 681k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
734 | 681k | if (new_eos) { |
735 | 598k | *eos = true; |
736 | 598k | } else if (!need_more_input_data(state)) { |
737 | 24.9k | *eos = false; |
738 | 24.9k | } |
739 | 681k | } |
740 | 734k | return Status::OK(); |
741 | 734k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 713 | 151k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 714 | 151k | auto& local_state = get_local_state(state); | 715 | 151k | if (need_more_input_data(state)) { | 716 | 115k | local_state._child_block->clear_column_data( | 717 | 115k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 718 | 115k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 719 | 115k | state, local_state._child_block.get(), &local_state._child_eos)); | 720 | 115k | *eos = local_state._child_eos; | 721 | 115k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 722 | 20.0k | return Status::OK(); | 723 | 20.0k | } | 724 | 95.4k | { | 725 | 95.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 726 | 95.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 727 | 95.4k | } | 728 | 95.4k | } | 729 | | | 730 | 131k | if (!need_more_input_data(state)) { | 731 | 131k | SCOPED_TIMER(local_state.exec_time_counter()); | 732 | 131k | bool new_eos = false; | 733 | 131k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 734 | 131k | if (new_eos) { | 735 | 77.8k | *eos = true; | 736 | 77.8k | } else if (!need_more_input_data(state)) { | 737 | 9.97k | *eos = false; | 738 | 9.97k | } | 739 | 131k | } | 740 | 131k | return Status::OK(); | 741 | 131k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 713 | 3.26k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 714 | 3.26k | auto& local_state = get_local_state(state); | 715 | 3.26k | if (need_more_input_data(state)) { | 716 | 1.94k | local_state._child_block->clear_column_data( | 717 | 1.94k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 718 | 1.94k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 719 | 1.94k | state, local_state._child_block.get(), &local_state._child_eos)); | 720 | 1.94k | *eos = local_state._child_eos; | 721 | 1.94k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 722 | 354 | return Status::OK(); | 723 | 354 | } | 724 | 1.59k | { | 725 | 1.59k | SCOPED_TIMER(local_state.exec_time_counter()); | 726 | 1.59k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 727 | 1.59k | } | 728 | 1.59k | } | 729 | | | 730 | 2.91k | if (!need_more_input_data(state)) { | 731 | 2.91k | SCOPED_TIMER(local_state.exec_time_counter()); | 732 | 2.91k | bool new_eos = false; | 733 | 2.91k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 734 | 2.91k | if (new_eos) { | 735 | 1.33k | *eos = true; | 736 | 1.58k | } else if (!need_more_input_data(state)) { | 737 | 1.32k | *eos = false; | 738 | 1.32k | } | 739 | 2.91k | } | 740 | 2.91k | return Status::OK(); | 741 | 2.91k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 713 | 4.50k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 714 | 4.50k | auto& local_state = get_local_state(state); | 715 | 4.50k | if (need_more_input_data(state)) { | 716 | 4.50k | local_state._child_block->clear_column_data( | 717 | 4.50k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 718 | 4.50k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 719 | 4.50k | state, local_state._child_block.get(), &local_state._child_eos)); | 720 | 4.50k | *eos = local_state._child_eos; | 721 | 4.50k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 722 | 1.57k | return Status::OK(); | 723 | 1.57k | } | 724 | 2.93k | { | 725 | 2.93k | SCOPED_TIMER(local_state.exec_time_counter()); | 726 | 2.93k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 727 | 2.93k | } | 728 | 2.93k | } | 729 | | | 730 | 2.93k | if (!need_more_input_data(state)) { | 731 | 2.93k | SCOPED_TIMER(local_state.exec_time_counter()); | 732 | 2.93k | bool new_eos = false; | 733 | 2.93k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 734 | 2.93k | if (new_eos) { | 735 | 1.60k | *eos = true; | 736 | 1.60k | } else if (!need_more_input_data(state)) { | 737 | 0 | *eos = false; | 738 | 0 | } | 739 | 2.93k | } | 740 | 2.93k | return Status::OK(); | 741 | 2.93k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 713 | 33.3k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 714 | 33.3k | auto& local_state = get_local_state(state); | 715 | 33.3k | if (need_more_input_data(state)) { | 716 | 33.3k | local_state._child_block->clear_column_data( | 717 | 33.3k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 718 | 33.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 719 | 33.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 720 | 33.3k | *eos = local_state._child_eos; | 721 | 33.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 722 | 4.02k | return Status::OK(); | 723 | 4.02k | } | 724 | 29.2k | { | 725 | 29.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 726 | 29.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 727 | 29.2k | } | 728 | 29.2k | } | 729 | | | 730 | 29.3k | if (!need_more_input_data(state)) { | 731 | 12.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 732 | 12.9k | bool new_eos = false; | 733 | 12.9k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 734 | 12.9k | if (new_eos) { | 735 | 12.8k | *eos = true; | 736 | 12.8k | } else if (!need_more_input_data(state)) { | 737 | 8 | *eos = false; | 738 | 8 | } | 739 | 12.9k | } | 740 | 29.3k | return Status::OK(); | 741 | 29.3k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 713 | 604k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 714 | 604k | auto& local_state = get_local_state(state); | 715 | 605k | if (need_more_input_data(state)) { | 716 | 605k | local_state._child_block->clear_column_data( | 717 | 605k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 718 | 605k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 719 | 605k | state, local_state._child_block.get(), &local_state._child_eos)); | 720 | 605k | *eos = local_state._child_eos; | 721 | 605k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 722 | 76.3k | return Status::OK(); | 723 | 76.3k | } | 724 | 529k | { | 725 | 529k | SCOPED_TIMER(local_state.exec_time_counter()); | 726 | 529k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 727 | 529k | } | 728 | 529k | } | 729 | | | 730 | 528k | if (!need_more_input_data(state)) { | 731 | 493k | SCOPED_TIMER(local_state.exec_time_counter()); | 732 | 493k | bool new_eos = false; | 733 | 493k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 734 | 493k | if (new_eos) { | 735 | 491k | *eos = true; | 736 | 491k | } else if (!need_more_input_data(state)) { | 737 | 0 | *eos = false; | 738 | 0 | } | 739 | 493k | } | 740 | 528k | return Status::OK(); | 741 | 528k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 713 | 36.8k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 714 | 36.8k | auto& local_state = get_local_state(state); | 715 | 36.8k | if (need_more_input_data(state)) { | 716 | 23.5k | local_state._child_block->clear_column_data( | 717 | 23.5k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 718 | 23.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 719 | 23.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 720 | 23.5k | *eos = local_state._child_eos; | 721 | 23.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 722 | 3.08k | return Status::OK(); | 723 | 3.08k | } | 724 | 20.4k | { | 725 | 20.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 726 | 20.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 727 | 20.4k | } | 728 | 20.4k | } | 729 | | | 730 | 33.7k | if (!need_more_input_data(state)) { | 731 | 32.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 732 | 32.7k | bool new_eos = false; | 733 | 32.7k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 734 | 32.7k | if (new_eos) { | 735 | 9.98k | *eos = true; | 736 | 22.7k | } else if (!need_more_input_data(state)) { | 737 | 13.2k | *eos = false; | 738 | 13.2k | } | 739 | 32.7k | } | 740 | 33.7k | return Status::OK(); | 741 | 33.7k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 713 | 5.67k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 714 | 5.67k | auto& local_state = get_local_state(state); | 715 | 5.67k | if (need_more_input_data(state)) { | 716 | 5.31k | local_state._child_block->clear_column_data( | 717 | 5.31k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 718 | 5.31k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 719 | 5.31k | state, local_state._child_block.get(), &local_state._child_eos)); | 720 | 5.31k | *eos = local_state._child_eos; | 721 | 5.31k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 722 | 543 | return Status::OK(); | 723 | 543 | } | 724 | 4.77k | { | 725 | 4.77k | SCOPED_TIMER(local_state.exec_time_counter()); | 726 | 4.77k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 727 | 4.77k | } | 728 | 4.77k | } | 729 | | | 730 | 5.13k | if (!need_more_input_data(state)) { | 731 | 5.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 732 | 5.13k | bool new_eos = false; | 733 | 5.13k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 734 | 5.13k | if (new_eos) { | 735 | 3.07k | *eos = true; | 736 | 3.07k | } else if (!need_more_input_data(state)) { | 737 | 366 | *eos = false; | 738 | 366 | } | 739 | 5.13k | } | 740 | 5.12k | return Status::OK(); | 741 | 5.12k | } |
|
742 | | |
743 | | template <typename Writer, typename Parent> |
744 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
745 | 68.1k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
746 | 68.1k | RETURN_IF_ERROR(Base::init(state, info)); |
747 | 68.1k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
748 | 68.1k | "AsyncWriterDependency", true); |
749 | 68.1k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
750 | 68.1k | _finish_dependency)); |
751 | | |
752 | 68.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
753 | 68.1k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
754 | 68.1k | return Status::OK(); |
755 | 68.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 540 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 540 | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 540 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 540 | "AsyncWriterDependency", true); | 749 | 540 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 540 | _finish_dependency)); | 751 | | | 752 | 540 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 540 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 540 | return Status::OK(); | 755 | 540 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 80 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 80 | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 80 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 80 | "AsyncWriterDependency", true); | 749 | 80 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 80 | _finish_dependency)); | 751 | | | 752 | 80 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 80 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 80 | return Status::OK(); | 755 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 52.5k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 52.5k | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 52.5k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 52.5k | "AsyncWriterDependency", true); | 749 | 52.5k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 52.5k | _finish_dependency)); | 751 | | | 752 | 52.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 52.5k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 52.5k | return Status::OK(); | 755 | 52.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 5.51k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 5.51k | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 5.51k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 5.51k | "AsyncWriterDependency", true); | 749 | 5.51k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 5.51k | _finish_dependency)); | 751 | | | 752 | 5.51k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 5.51k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 5.51k | return Status::OK(); | 755 | 5.51k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 5.15k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 5.15k | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 5.15k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 5.15k | "AsyncWriterDependency", true); | 749 | 5.15k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 5.15k | _finish_dependency)); | 751 | | | 752 | 5.15k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 5.15k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 5.15k | return Status::OK(); | 755 | 5.15k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 3.38k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 3.38k | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 3.38k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 3.38k | "AsyncWriterDependency", true); | 749 | 3.38k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 3.38k | _finish_dependency)); | 751 | | | 752 | 3.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 3.38k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 3.38k | return Status::OK(); | 755 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 160 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 160 | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 160 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 160 | "AsyncWriterDependency", true); | 749 | 160 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 160 | _finish_dependency)); | 751 | | | 752 | 160 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 160 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 160 | return Status::OK(); | 755 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 640 | "AsyncWriterDependency", true); | 749 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 640 | _finish_dependency)); | 751 | | | 752 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 640 | return Status::OK(); | 755 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 745 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 746 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 747 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 748 | 156 | "AsyncWriterDependency", true); | 749 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 750 | 156 | _finish_dependency)); | 751 | | | 752 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 753 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 754 | 156 | return Status::OK(); | 755 | 156 | } |
|
756 | | |
757 | | template <typename Writer, typename Parent> |
758 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
759 | 68.4k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
760 | 68.4k | RETURN_IF_ERROR(Base::open(state)); |
761 | 68.4k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
762 | 599k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
763 | 530k | RETURN_IF_ERROR( |
764 | 530k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
765 | 530k | } |
766 | 68.4k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
767 | 68.4k | return Status::OK(); |
768 | 68.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 542 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 542 | RETURN_IF_ERROR(Base::open(state)); | 761 | 542 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 2.85k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 2.31k | RETURN_IF_ERROR( | 764 | 2.31k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 2.31k | } | 766 | 542 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 542 | return Status::OK(); | 768 | 542 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 80 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 80 | RETURN_IF_ERROR(Base::open(state)); | 761 | 80 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 388 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 308 | RETURN_IF_ERROR( | 764 | 308 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 308 | } | 766 | 80 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 80 | return Status::OK(); | 768 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 52.8k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 52.8k | RETURN_IF_ERROR(Base::open(state)); | 761 | 52.8k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 372k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 319k | RETURN_IF_ERROR( | 764 | 319k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 319k | } | 766 | 52.8k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 52.8k | return Status::OK(); | 768 | 52.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 5.50k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 5.50k | RETURN_IF_ERROR(Base::open(state)); | 761 | 5.50k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 38.8k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 33.3k | RETURN_IF_ERROR( | 764 | 33.3k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 33.3k | } | 766 | 5.50k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 5.50k | return Status::OK(); | 768 | 5.50k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 5.14k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 5.14k | RETURN_IF_ERROR(Base::open(state)); | 761 | 5.14k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 136k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 131k | RETURN_IF_ERROR( | 764 | 131k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 131k | } | 766 | 5.14k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 5.14k | return Status::OK(); | 768 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 3.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 3.38k | RETURN_IF_ERROR(Base::open(state)); | 761 | 3.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 42.0k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 38.6k | RETURN_IF_ERROR( | 764 | 38.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 38.6k | } | 766 | 3.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 3.38k | return Status::OK(); | 768 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 160 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 160 | RETURN_IF_ERROR(Base::open(state)); | 761 | 160 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 480 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 320 | RETURN_IF_ERROR( | 764 | 320 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 320 | } | 766 | 160 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 160 | return Status::OK(); | 768 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 640 | RETURN_IF_ERROR(Base::open(state)); | 761 | 640 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 4.38k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 3.74k | RETURN_IF_ERROR( | 764 | 3.74k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 3.74k | } | 766 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 640 | return Status::OK(); | 768 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 759 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 760 | 156 | RETURN_IF_ERROR(Base::open(state)); | 761 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 762 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 763 | 630 | RETURN_IF_ERROR( | 764 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 765 | 630 | } | 766 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 767 | 156 | return Status::OK(); | 768 | 156 | } |
|
769 | | |
770 | | template <typename Writer, typename Parent> |
771 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
772 | 87.9k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
773 | 87.9k | return _writer->sink(block, eos); |
774 | 87.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 2.17k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 2.17k | return _writer->sink(block, eos); | 774 | 2.17k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 104 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 104 | return _writer->sink(block, eos); | 774 | 104 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 65.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 65.0k | return _writer->sink(block, eos); | 774 | 65.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 6.52k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 6.52k | return _writer->sink(block, eos); | 774 | 6.52k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 7.50k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 7.50k | return _writer->sink(block, eos); | 774 | 7.50k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 5.35k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 5.35k | return _writer->sink(block, eos); | 774 | 5.35k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 180 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 180 | return _writer->sink(block, eos); | 774 | 180 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 800 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 800 | return _writer->sink(block, eos); | 774 | 800 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 772 | 306 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 773 | 306 | return _writer->sink(block, eos); | 774 | 306 | } |
|
775 | | |
776 | | template <typename Writer, typename Parent> |
777 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
778 | 68.5k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
779 | 68.5k | if (_closed) { |
780 | 0 | return Status::OK(); |
781 | 0 | } |
782 | 68.5k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
783 | 68.5k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
784 | | // if the init failed, the _writer may be nullptr. so here need check |
785 | 68.5k | if (_writer) { |
786 | 68.5k | Status st = _writer->get_writer_status(); |
787 | 68.5k | if (exec_status.ok()) { |
788 | 68.4k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
789 | 68.4k | : Status::Cancelled("force close")); |
790 | 68.4k | } else { |
791 | 93 | _writer->force_close(exec_status); |
792 | 93 | } |
793 | | // If there is an error in process_block thread, then we should get the writer |
794 | | // status before call force_close. For example, the thread may failed in commit |
795 | | // transaction. |
796 | 68.5k | RETURN_IF_ERROR(st); |
797 | 68.5k | } |
798 | 68.4k | return Base::close(state, exec_status); |
799 | 68.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 529 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 529 | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 529 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 529 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 530 | if (_writer) { | 786 | 530 | Status st = _writer->get_writer_status(); | 787 | 530 | if (exec_status.ok()) { | 788 | 530 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 530 | : Status::Cancelled("force close")); | 790 | 530 | } else { | 791 | 0 | _writer->force_close(exec_status); | 792 | 0 | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 530 | RETURN_IF_ERROR(st); | 797 | 530 | } | 798 | 529 | return Base::close(state, exec_status); | 799 | 529 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 80 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 80 | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 80 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 80 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 80 | if (_writer) { | 786 | 80 | Status st = _writer->get_writer_status(); | 787 | 80 | if (exec_status.ok()) { | 788 | 80 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 80 | : Status::Cancelled("force close")); | 790 | 80 | } else { | 791 | 0 | _writer->force_close(exec_status); | 792 | 0 | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 80 | RETURN_IF_ERROR(st); | 797 | 80 | } | 798 | 80 | return Base::close(state, exec_status); | 799 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 52.9k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 52.9k | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 52.9k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 52.9k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 52.9k | if (_writer) { | 786 | 52.9k | Status st = _writer->get_writer_status(); | 787 | 52.9k | if (exec_status.ok()) { | 788 | 52.8k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 52.8k | : Status::Cancelled("force close")); | 790 | 52.8k | } else { | 791 | 63 | _writer->force_close(exec_status); | 792 | 63 | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 52.9k | RETURN_IF_ERROR(st); | 797 | 52.9k | } | 798 | 52.8k | return Base::close(state, exec_status); | 799 | 52.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 5.51k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 5.51k | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 5.51k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 5.51k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 5.51k | if (_writer) { | 786 | 5.51k | Status st = _writer->get_writer_status(); | 787 | 5.51k | if (exec_status.ok()) { | 788 | 5.48k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 5.48k | : Status::Cancelled("force close")); | 790 | 5.48k | } else { | 791 | 30 | _writer->force_close(exec_status); | 792 | 30 | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 5.51k | RETURN_IF_ERROR(st); | 797 | 5.51k | } | 798 | 5.51k | return Base::close(state, exec_status); | 799 | 5.51k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 5.15k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 5.15k | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 5.15k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 5.15k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 5.15k | if (_writer) { | 786 | 5.14k | Status st = _writer->get_writer_status(); | 787 | 5.15k | if (exec_status.ok()) { | 788 | 5.15k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 5.15k | : Status::Cancelled("force close")); | 790 | 18.4E | } else { | 791 | 18.4E | _writer->force_close(exec_status); | 792 | 18.4E | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 5.14k | RETURN_IF_ERROR(st); | 797 | 5.14k | } | 798 | 5.15k | return Base::close(state, exec_status); | 799 | 5.15k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 3.38k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 3.38k | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 3.38k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 3.38k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 3.38k | if (_writer) { | 786 | 3.38k | Status st = _writer->get_writer_status(); | 787 | 3.38k | if (exec_status.ok()) { | 788 | 3.38k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 3.38k | : Status::Cancelled("force close")); | 790 | 3.38k | } else { | 791 | 2 | _writer->force_close(exec_status); | 792 | 2 | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 3.38k | RETURN_IF_ERROR(st); | 797 | 3.38k | } | 798 | 3.38k | return Base::close(state, exec_status); | 799 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 160 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 160 | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 160 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 160 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 160 | if (_writer) { | 786 | 160 | Status st = _writer->get_writer_status(); | 787 | 160 | if (exec_status.ok()) { | 788 | 160 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 160 | : Status::Cancelled("force close")); | 790 | 160 | } else { | 791 | 0 | _writer->force_close(exec_status); | 792 | 0 | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 160 | RETURN_IF_ERROR(st); | 797 | 160 | } | 798 | 160 | return Base::close(state, exec_status); | 799 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 640 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 640 | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 640 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 640 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 640 | if (_writer) { | 786 | 640 | Status st = _writer->get_writer_status(); | 787 | 640 | if (exec_status.ok()) { | 788 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 640 | : Status::Cancelled("force close")); | 790 | 640 | } else { | 791 | 0 | _writer->force_close(exec_status); | 792 | 0 | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 640 | RETURN_IF_ERROR(st); | 797 | 640 | } | 798 | 640 | return Base::close(state, exec_status); | 799 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 778 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 779 | 156 | if (_closed) { | 780 | 0 | return Status::OK(); | 781 | 0 | } | 782 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 783 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 784 | | // if the init failed, the _writer may be nullptr. so here need check | 785 | 156 | if (_writer) { | 786 | 156 | Status st = _writer->get_writer_status(); | 787 | 156 | if (exec_status.ok()) { | 788 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 789 | 156 | : Status::Cancelled("force close")); | 790 | 156 | } else { | 791 | 0 | _writer->force_close(exec_status); | 792 | 0 | } | 793 | | // If there is an error in process_block thread, then we should get the writer | 794 | | // status before call force_close. For example, the thread may failed in commit | 795 | | // transaction. | 796 | 156 | RETURN_IF_ERROR(st); | 797 | 156 | } | 798 | 156 | return Base::close(state, exec_status); | 799 | 156 | } |
|
800 | | |
801 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
802 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
803 | | DECLARE_OPERATOR(ResultSinkLocalState) |
804 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
805 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
806 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
807 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
808 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
809 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
810 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
811 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
812 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
813 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
814 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
815 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
816 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
817 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
818 | | DECLARE_OPERATOR(SortSinkLocalState) |
819 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
820 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
821 | | DECLARE_OPERATOR(AggSinkLocalState) |
822 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
823 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
824 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
825 | | DECLARE_OPERATOR(UnionSinkLocalState) |
826 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
827 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
828 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
829 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
830 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
831 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
832 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
833 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
834 | | DECLARE_OPERATOR(CacheSinkLocalState) |
835 | | DECLARE_OPERATOR(DictSinkLocalState) |
836 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
837 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
838 | | |
839 | | #undef DECLARE_OPERATOR |
840 | | |
841 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
842 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
843 | | DECLARE_OPERATOR(OlapScanLocalState) |
844 | | DECLARE_OPERATOR(GroupCommitLocalState) |
845 | | DECLARE_OPERATOR(JDBCScanLocalState) |
846 | | DECLARE_OPERATOR(FileScanLocalState) |
847 | | DECLARE_OPERATOR(EsScanLocalState) |
848 | | DECLARE_OPERATOR(AnalyticLocalState) |
849 | | DECLARE_OPERATOR(SortLocalState) |
850 | | DECLARE_OPERATOR(SpillSortLocalState) |
851 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
852 | | DECLARE_OPERATOR(AggLocalState) |
853 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
854 | | DECLARE_OPERATOR(TableFunctionLocalState) |
855 | | DECLARE_OPERATOR(ExchangeLocalState) |
856 | | DECLARE_OPERATOR(RepeatLocalState) |
857 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
858 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
859 | | DECLARE_OPERATOR(EmptySetLocalState) |
860 | | DECLARE_OPERATOR(UnionSourceLocalState) |
861 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
862 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
863 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
864 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
865 | | DECLARE_OPERATOR(DataGenLocalState) |
866 | | DECLARE_OPERATOR(SchemaScanLocalState) |
867 | | DECLARE_OPERATOR(MetaScanLocalState) |
868 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
869 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
870 | | DECLARE_OPERATOR(CacheSourceLocalState) |
871 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
872 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
873 | | |
874 | | #ifdef BE_TEST |
875 | | DECLARE_OPERATOR(MockLocalState) |
876 | | DECLARE_OPERATOR(MockScanLocalState) |
877 | | #endif |
878 | | #undef DECLARE_OPERATOR |
879 | | |
880 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
881 | | template class StreamingOperatorX<SelectLocalState>; |
882 | | |
883 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
884 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
885 | | template class StatefulOperatorX<RepeatLocalState>; |
886 | | template class StatefulOperatorX<MaterializationLocalState>; |
887 | | template class StatefulOperatorX<StreamingAggLocalState>; |
888 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
889 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
890 | | template class StatefulOperatorX<TableFunctionLocalState>; |
891 | | |
892 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
893 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
894 | | template class PipelineXSinkLocalState<SortSharedState>; |
895 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
896 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
897 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
898 | | template class PipelineXSinkLocalState<AggSharedState>; |
899 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
900 | | template class PipelineXSinkLocalState<FakeSharedState>; |
901 | | template class PipelineXSinkLocalState<UnionSharedState>; |
902 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
903 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
904 | | template class PipelineXSinkLocalState<SetSharedState>; |
905 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
906 | | template class PipelineXSinkLocalState<BasicSharedState>; |
907 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
908 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
909 | | |
910 | | template class PipelineXLocalState<HashJoinSharedState>; |
911 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
912 | | template class PipelineXLocalState<SortSharedState>; |
913 | | template class PipelineXLocalState<SpillSortSharedState>; |
914 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
915 | | template class PipelineXLocalState<AnalyticSharedState>; |
916 | | template class PipelineXLocalState<AggSharedState>; |
917 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
918 | | template class PipelineXLocalState<FakeSharedState>; |
919 | | template class PipelineXLocalState<UnionSharedState>; |
920 | | template class PipelineXLocalState<DataQueueSharedState>; |
921 | | template class PipelineXLocalState<MultiCastSharedState>; |
922 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
923 | | template class PipelineXLocalState<SetSharedState>; |
924 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
925 | | template class PipelineXLocalState<BasicSharedState>; |
926 | | template class PipelineXLocalState<RecCTESharedState>; |
927 | | |
928 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
929 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
930 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
931 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
932 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
933 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
934 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
935 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
936 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
937 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
938 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
939 | | |
940 | | #ifdef BE_TEST |
941 | | template class OperatorX<DummyOperatorLocalState>; |
942 | | template class DataSinkOperatorX<DummySinkLocalState>; |
943 | | #endif |
944 | | |
945 | | } // namespace doris |