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