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 | 2.21M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 2.21M | if (_parent->nereids_id() == -1) { |
122 | 1.18M | return fmt::format("(id={})", _parent->node_id()); |
123 | 1.18M | } else { |
124 | 1.02M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 1.02M | } |
126 | 2.21M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 72.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 72.2k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 72.2k | } else { | 124 | 72.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 72.2k | } | 126 | 72.2k | } |
_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 | 277k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 277k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 277k | } else { | 124 | 277k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 277k | } | 126 | 277k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 23 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 23 | } else { | 124 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 23 | } | 126 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 11.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 11.0k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 11.0k | } else { | 124 | 11.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 11.0k | } | 126 | 11.0k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 7.81k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.81k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 7.80k | } else { | 124 | 7.80k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 7.80k | } | 126 | 7.81k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 162k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 162k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 162k | } else { | 124 | 162k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 162k | } | 126 | 162k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 517 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 517 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 517 | } else { | 124 | 517 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 517 | } | 126 | 517 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 172 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 172 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 172 | } else { | 124 | 172 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 172 | } | 126 | 172 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 816k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 816k | if (_parent->nereids_id() == -1) { | 122 | 380k | return fmt::format("(id={})", _parent->node_id()); | 123 | 435k | } else { | 124 | 435k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 435k | } | 126 | 816k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 56.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 56.8k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 56.8k | } else { | 124 | 56.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 56.8k | } | 126 | 56.8k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 10.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 10.9k | if (_parent->nereids_id() == -1) { | 122 | 10.9k | return fmt::format("(id={})", _parent->node_id()); | 123 | 10.9k | } else { | 124 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 1 | } | 126 | 10.9k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 462 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 462 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 360 | } else { | 124 | 360 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 360 | } | 126 | 462 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.82k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.82k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.80k | } else { | 124 | 4.80k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.80k | } | 126 | 4.82k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 793k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 793k | if (_parent->nereids_id() == -1) { | 122 | 793k | 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 | 793k | } |
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.41M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.41M | if (_parent->nereids_id() == -1) { |
131 | 830k | return fmt::format("(id={})", _parent->node_id()); |
132 | 830k | } else { |
133 | 588k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 588k | } |
135 | 1.41M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 120k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 120k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 120k | } else { | 133 | 120k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 120k | } | 135 | 120k | } |
_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 | 278k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 278k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 278k | } else { | 133 | 278k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 278k | } | 135 | 278k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 30 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 30 | } else { | 133 | 30 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 30 | } | 135 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 11.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 11.0k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 11.0k | } else { | 133 | 11.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 11.0k | } | 135 | 11.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.82k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.82k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.81k | } else { | 133 | 7.81k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.81k | } | 135 | 7.82k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 162k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 162k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 162k | } else { | 133 | 162k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 162k | } | 135 | 162k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 513 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 513 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 513 | } else { | 133 | 513 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 513 | } | 135 | 513 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 182 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 182 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 182 | } else { | 133 | 182 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 182 | } | 135 | 182 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 98 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 98 | if (_parent->nereids_id() == -1) { | 131 | 98 | return fmt::format("(id={})", _parent->node_id()); | 132 | 98 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 98 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.10k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.10k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.10k | } else { | 133 | 7.10k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.10k | } | 135 | 7.10k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 464 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 464 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 362 | } else { | 133 | 362 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 362 | } | 135 | 464 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.6k | if (_parent->nereids_id() == -1) { | 131 | 12.6k | 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 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 314k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 314k | if (_parent->nereids_id() == -1) { | 131 | 314k | 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 | 314k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 502k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 502k | if (_parent->nereids_id() == -1) { | 131 | 502k | 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 | 502k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_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 | 29.4k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 29.4k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 29.4k | _terminated = true; |
143 | 29.4k | return Status::OK(); |
144 | 29.4k | } _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.09k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.09k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.09k | _terminated = true; | 143 | 1.09k | return Status::OK(); | 144 | 1.09k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 4 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 4 | _terminated = true; | 143 | 4 | return Status::OK(); | 144 | 4 | } |
_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 | 2.49k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.49k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.49k | _terminated = true; | 143 | 2.49k | return Status::OK(); | 144 | 2.49k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 10 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 10 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 10 | _terminated = true; | 143 | 10 | return Status::OK(); | 144 | 10 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 715 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 715 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 715 | _terminated = true; | 143 | 715 | return Status::OK(); | 144 | 715 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 82 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 82 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 82 | _terminated = true; | 143 | 82 | return Status::OK(); | 144 | 82 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_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_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 632 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 632 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 632 | _terminated = true; | 143 | 632 | return Status::OK(); | 144 | 632 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 4 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 4 | _terminated = true; | 143 | 4 | return Status::OK(); | 144 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 220 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 220 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 220 | _terminated = true; | 143 | 220 | return Status::OK(); | 144 | 220 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 147 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 147 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 147 | _terminated = true; | 143 | 147 | return Status::OK(); | 144 | 147 | } |
|
145 | | |
146 | 436k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 436k | return _child && _child->is_serial_operator() && !is_source() |
148 | 436k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 436k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 436k | } |
151 | | |
152 | 34.1k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 34.1k | if (!_child) { |
154 | 29.4k | return false; |
155 | 29.4k | } |
156 | 4.73k | if (_child->is_serial_operator()) { |
157 | 168 | return true; |
158 | 168 | } |
159 | 4.57k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 4.57k | return child_distribution.need_local_exchange() && |
161 | 4.57k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 4.73k | } |
163 | | |
164 | 82.8k | const RowDescriptor& OperatorBase::row_desc() const { |
165 | 82.8k | return _child->row_desc(); |
166 | 82.8k | } |
167 | | |
168 | | template <typename SharedStateArg> |
169 | 17.1k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
170 | 17.1k | fmt::memory_buffer debug_string_buffer; |
171 | 17.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
172 | 17.1k | return fmt::to_string(debug_string_buffer); |
173 | 17.1k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 13 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 13 | fmt::memory_buffer debug_string_buffer; | 171 | 13 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 13 | return fmt::to_string(debug_string_buffer); | 173 | 13 | } |
_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 | 7 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 7 | fmt::memory_buffer debug_string_buffer; | 171 | 7 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 7 | return fmt::to_string(debug_string_buffer); | 173 | 7 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 9 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 9 | fmt::memory_buffer debug_string_buffer; | 171 | 9 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 9 | return fmt::to_string(debug_string_buffer); | 173 | 9 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 6 | fmt::memory_buffer debug_string_buffer; | 171 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 6 | return fmt::to_string(debug_string_buffer); | 173 | 6 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 17.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 17.0k | fmt::memory_buffer debug_string_buffer; | 171 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 17.0k | return fmt::to_string(debug_string_buffer); | 173 | 17.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 | 42 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 42 | fmt::memory_buffer debug_string_buffer; | 171 | 42 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 42 | return fmt::to_string(debug_string_buffer); | 173 | 42 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
174 | | |
175 | | template <typename SharedStateArg> |
176 | 17.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
177 | 17.0k | fmt::memory_buffer debug_string_buffer; |
178 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
179 | 17.0k | return fmt::to_string(debug_string_buffer); |
180 | 17.0k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 7 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 7 | fmt::memory_buffer debug_string_buffer; | 178 | 7 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 7 | return fmt::to_string(debug_string_buffer); | 180 | 7 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 6 | fmt::memory_buffer debug_string_buffer; | 178 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 6 | return fmt::to_string(debug_string_buffer); | 180 | 6 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 19 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 19 | fmt::memory_buffer debug_string_buffer; | 178 | 19 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 19 | return fmt::to_string(debug_string_buffer); | 180 | 19 | } |
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 | 26 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 26 | fmt::memory_buffer debug_string_buffer; | 178 | 26 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 26 | return fmt::to_string(debug_string_buffer); | 180 | 26 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 17.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 17.0k | fmt::memory_buffer debug_string_buffer; | 178 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 17.0k | return fmt::to_string(debug_string_buffer); | 180 | 17.0k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
181 | | |
182 | 17.1k | std::string OperatorXBase::debug_string(int indentation_level) const { |
183 | 17.1k | fmt::memory_buffer debug_string_buffer; |
184 | 17.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
185 | 17.1k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
186 | 17.1k | _is_serial_operator); |
187 | 17.1k | return fmt::to_string(debug_string_buffer); |
188 | 17.1k | } |
189 | | |
190 | 17.1k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
191 | 17.1k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
192 | 17.1k | } |
193 | | |
194 | 860k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
195 | 860k | std::string node_name = print_plan_node_type(tnode.node_type); |
196 | 860k | _nereids_id = tnode.nereids_id; |
197 | 860k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
198 | 4.10k | if (!tnode.__isset.output_tuple_id) { |
199 | 0 | return Status::InternalError("no final output tuple id"); |
200 | 0 | } |
201 | 4.10k | if (tnode.intermediate_output_tuple_id_list.size() != |
202 | 4.10k | 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 | 4.10k | } |
210 | 860k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
211 | 860k | _op_name = substr + "_OPERATOR"; |
212 | | |
213 | 860k | if (tnode.__isset.vconjunct) { |
214 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
215 | 860k | } else if (tnode.__isset.conjuncts) { |
216 | 491k | for (const auto& conjunct : tnode.conjuncts) { |
217 | 491k | VExprContextSPtr context; |
218 | 491k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
219 | 491k | _conjuncts.emplace_back(context); |
220 | 491k | } |
221 | 158k | } |
222 | | |
223 | | // create the projections expr |
224 | 860k | if (tnode.__isset.projections) { |
225 | 332k | DCHECK(tnode.__isset.output_tuple_id); |
226 | 332k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
227 | 332k | } |
228 | 860k | if (!tnode.intermediate_projections_list.empty()) { |
229 | 4.10k | DCHECK(tnode.__isset.projections) << "no final projections"; |
230 | 4.10k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
231 | 8.21k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
232 | 8.21k | VExprContextSPtrs projections; |
233 | 8.21k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
234 | 8.21k | _intermediate_projections.push_back(projections); |
235 | 8.21k | } |
236 | 4.10k | } |
237 | 860k | return Status::OK(); |
238 | 860k | } |
239 | | |
240 | 892k | Status OperatorXBase::prepare(RuntimeState* state) { |
241 | 892k | for (auto& conjunct : _conjuncts) { |
242 | 491k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
243 | 491k | } |
244 | 892k | if (state->enable_adjust_conjunct_order_by_cost()) { |
245 | 839k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
246 | 653k | return a->execute_cost() < b->execute_cost(); |
247 | 653k | }); |
248 | 839k | }; |
249 | | |
250 | 900k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
251 | 8.20k | RETURN_IF_ERROR( |
252 | 8.20k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
253 | 8.20k | } |
254 | 892k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
255 | | |
256 | 892k | if (has_output_row_desc()) { |
257 | 332k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
258 | 332k | } |
259 | | |
260 | 892k | for (auto& conjunct : _conjuncts) { |
261 | 491k | RETURN_IF_ERROR(conjunct->open(state)); |
262 | 491k | } |
263 | 892k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
264 | 892k | for (auto& projections : _intermediate_projections) { |
265 | 8.21k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
266 | 8.21k | } |
267 | 892k | if (_child && !is_source()) { |
268 | 135k | RETURN_IF_ERROR(_child->prepare(state)); |
269 | 135k | } |
270 | | |
271 | 892k | if (VExpr::contains_blockable_function(_conjuncts) || |
272 | 892k | VExpr::contains_blockable_function(_projections)) { |
273 | 0 | _blockable = true; |
274 | 0 | } |
275 | | |
276 | 892k | return Status::OK(); |
277 | 892k | } |
278 | | |
279 | 6.51k | Status OperatorXBase::terminate(RuntimeState* state) { |
280 | 6.51k | if (_child && !is_source()) { |
281 | 1.08k | RETURN_IF_ERROR(_child->terminate(state)); |
282 | 1.08k | } |
283 | 6.51k | auto result = state->get_local_state_result(operator_id()); |
284 | 6.51k | if (!result) { |
285 | 0 | return result.error(); |
286 | 0 | } |
287 | 6.51k | return result.value()->terminate(state); |
288 | 6.51k | } |
289 | | |
290 | 6.12M | Status OperatorXBase::close(RuntimeState* state) { |
291 | 6.12M | if (_child && !is_source()) { |
292 | 1.02M | RETURN_IF_ERROR(_child->close(state)); |
293 | 1.02M | } |
294 | 6.12M | auto result = state->get_local_state_result(operator_id()); |
295 | 6.12M | if (!result) { |
296 | 0 | return result.error(); |
297 | 0 | } |
298 | 6.12M | return result.value()->close(state); |
299 | 6.12M | } |
300 | | |
301 | 298k | void PipelineXLocalStateBase::clear_origin_block() { |
302 | 298k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
303 | 298k | } |
304 | | |
305 | 632k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
306 | 632k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
307 | | |
308 | 632k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
309 | 632k | return Status::OK(); |
310 | 632k | } |
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 | 298k | Block* output_block) const { |
319 | 298k | auto* local_state = state->get_local_state(operator_id()); |
320 | 298k | SCOPED_TIMER(local_state->exec_time_counter()); |
321 | 298k | SCOPED_TIMER(local_state->_projection_timer); |
322 | 298k | const size_t rows = origin_block->rows(); |
323 | 298k | if (rows == 0) { |
324 | 150k | return Status::OK(); |
325 | 150k | } |
326 | 147k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
327 | | |
328 | 147k | { |
329 | 147k | Block input_block = *origin_block; |
330 | | |
331 | 147k | ColumnsWithTypeAndName new_columns; |
332 | 147k | for (const auto& projections : local_state->_intermediate_projections) { |
333 | 1.94k | if (projections.empty()) { |
334 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
335 | 0 | node_id()); |
336 | 0 | } |
337 | 1.94k | new_columns.resize(projections.size()); |
338 | 15.5k | for (int i = 0; i < projections.size(); i++) { |
339 | 13.5k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
340 | 13.5k | if (new_columns[i].column->size() != rows) { |
341 | 0 | return Status::InternalError( |
342 | 0 | "intermediate projection result column size {} not equal input rows " |
343 | 0 | "{}, expr: {}", |
344 | 0 | new_columns[i].column->size(), rows, |
345 | 0 | projections[i]->root()->debug_string()); |
346 | 0 | } |
347 | 13.5k | } |
348 | 1.94k | Block tmp_block {new_columns}; |
349 | 1.94k | input_block.swap(tmp_block); |
350 | 1.94k | } |
351 | | |
352 | 147k | if (input_block.rows() != rows) { |
353 | 0 | return Status::InternalError( |
354 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
355 | 0 | "input_block: {}", |
356 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
357 | 0 | } |
358 | | |
359 | 147k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
360 | 147k | output_block, *_output_row_descriptor); |
361 | 147k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
362 | 147k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
363 | 147k | Columns shared_columns(mutable_columns.size()); |
364 | | |
365 | 854k | for (int i = 0; i < mutable_columns.size(); ++i) { |
366 | 706k | ColumnPtr column_ptr; |
367 | 706k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
368 | 706k | if (column_ptr->size() != rows) { |
369 | 0 | return Status::InternalError( |
370 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
371 | 0 | column_ptr->size(), rows, |
372 | 0 | local_state->_projections[i]->root()->debug_string()); |
373 | 0 | } |
374 | 706k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
375 | 706k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
376 | 0 | column_ptr = make_nullable(column_ptr, false); |
377 | 0 | } |
378 | 706k | if (column_ptr->is_exclusive()) { |
379 | 253k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
380 | 452k | } else { |
381 | 452k | shared_columns[i] = std::move(column_ptr); |
382 | 452k | } |
383 | 706k | } |
384 | | |
385 | 147k | scoped_mutable_block.restore(); |
386 | 854k | for (int i = 0; i < shared_columns.size(); ++i) { |
387 | 706k | if (shared_columns[i]) { |
388 | 452k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
389 | 452k | } |
390 | 706k | } |
391 | 147k | } |
392 | | |
393 | 0 | origin_block->clear_column_data( |
394 | 147k | local_state->_parent->intermediate_row_desc().num_materialized_slots()); |
395 | 147k | DCHECK_EQ(output_block->rows(), rows); |
396 | | |
397 | 147k | return Status::OK(); |
398 | 147k | } |
399 | | |
400 | 4.76M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
401 | 4.76M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
402 | 4.76M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
403 | 4.76M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
404 | 4.76M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
405 | 4.76M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
406 | 4.76M | if (_debug_point_count++ % 2 == 0) { |
407 | 4.76M | return Status::OK(); |
408 | 4.76M | } |
409 | 4.76M | } |
410 | 4.76M | }); |
411 | | |
412 | 4.76M | Status status; |
413 | 4.76M | auto* local_state = state->get_local_state(operator_id()); |
414 | 4.76M | Defer defer([&]() { |
415 | 4.76M | if (status.ok()) { |
416 | 4.76M | local_state->update_output_block_counters(*block); |
417 | 4.76M | } |
418 | 4.76M | }); |
419 | 4.76M | if (_output_row_descriptor) { |
420 | 298k | local_state->clear_origin_block(); |
421 | 298k | status = get_block(state, &local_state->_origin_block, eos); |
422 | 298k | if (UNLIKELY(!status.ok())) { |
423 | 20 | return status; |
424 | 20 | } |
425 | 298k | status = do_projections(state, &local_state->_origin_block, block); |
426 | 298k | return status; |
427 | 298k | } |
428 | 4.46M | status = get_block(state, block, eos); |
429 | 4.46M | RETURN_IF_ERROR(block->check_type_and_column()); |
430 | 4.46M | return status; |
431 | 4.46M | } |
432 | | |
433 | 3.36M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
434 | 3.36M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
435 | 6.60k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
436 | 6.60k | *eos = true; |
437 | 6.60k | } |
438 | | |
439 | 3.36M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
440 | 3.36M | auto op_name = to_lower(_parent->_op_name); |
441 | 3.36M | auto arg_op_name = dp->param<std::string>("op_name"); |
442 | 3.36M | arg_op_name = to_lower(arg_op_name); |
443 | | |
444 | 3.36M | if (op_name == arg_op_name) { |
445 | 3.36M | *eos = true; |
446 | 3.36M | } |
447 | 3.36M | }); |
448 | | |
449 | 3.36M | if (auto rows = block->rows()) { |
450 | 975k | _num_rows_returned += rows; |
451 | 975k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
452 | 975k | } |
453 | 3.36M | } |
454 | | |
455 | 29.4k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
456 | 29.4k | auto result = state->get_sink_local_state_result(); |
457 | 29.4k | if (!result) { |
458 | 0 | return result.error(); |
459 | 0 | } |
460 | 29.4k | return result.value()->terminate(state); |
461 | 29.4k | } |
462 | | |
463 | 17.0k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
464 | 17.0k | fmt::memory_buffer debug_string_buffer; |
465 | | |
466 | 17.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
467 | 17.0k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
468 | 17.0k | return fmt::to_string(debug_string_buffer); |
469 | 17.0k | } |
470 | | |
471 | 17.0k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
472 | 17.0k | return state->get_sink_local_state()->debug_string(indentation_level); |
473 | 17.0k | } |
474 | | |
475 | 477k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
476 | 477k | std::string op_name = "UNKNOWN_SINK"; |
477 | 477k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
478 | | |
479 | 478k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
480 | 478k | op_name = it->second; |
481 | 478k | } |
482 | 477k | _name = op_name + "_OPERATOR"; |
483 | 477k | return Status::OK(); |
484 | 477k | } |
485 | | |
486 | 326k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
487 | 326k | std::string op_name = print_plan_node_type(tnode.node_type); |
488 | 326k | _nereids_id = tnode.nereids_id; |
489 | 326k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
490 | 326k | _name = substr + "_SINK_OPERATOR"; |
491 | 326k | return Status::OK(); |
492 | 326k | } |
493 | | |
494 | | template <typename LocalStateType> |
495 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
496 | 2.13M | LocalSinkStateInfo& info) { |
497 | 2.13M | auto local_state = LocalStateType::create_unique(this, state); |
498 | 2.13M | RETURN_IF_ERROR(local_state->init(state, info)); |
499 | 2.13M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
500 | 2.13M | return Status::OK(); |
501 | 2.13M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 120k | LocalSinkStateInfo& info) { | 497 | 120k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 120k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 120k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 120k | return Status::OK(); | 501 | 120k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 433k | LocalSinkStateInfo& info) { | 497 | 433k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 433k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 433k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 433k | return Status::OK(); | 501 | 433k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 86 | LocalSinkStateInfo& info) { | 497 | 86 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 86 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 86 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 86 | return Status::OK(); | 501 | 86 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 3 | LocalSinkStateInfo& info) { | 497 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 3 | return Status::OK(); | 501 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 540 | LocalSinkStateInfo& info) { | 497 | 540 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 540 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 540 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 540 | return Status::OK(); | 501 | 540 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 47.1k | LocalSinkStateInfo& info) { | 497 | 47.1k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 47.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 47.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 47.1k | return Status::OK(); | 501 | 47.1k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 9.58k | LocalSinkStateInfo& info) { | 497 | 9.58k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 9.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 9.58k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 9.58k | return Status::OK(); | 501 | 9.58k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 5.23k | LocalSinkStateInfo& info) { | 497 | 5.23k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 5.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 5.23k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 5.23k | return Status::OK(); | 501 | 5.23k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 156 | LocalSinkStateInfo& info) { | 497 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 156 | return Status::OK(); | 501 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 4.02k | LocalSinkStateInfo& info) { | 497 | 4.02k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 4.02k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 4.02k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 4.02k | return Status::OK(); | 501 | 4.02k | } |
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 48 | LocalSinkStateInfo& info) { | 497 | 48 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 48 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 48 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 48 | return Status::OK(); | 501 | 48 | } |
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 704 | LocalSinkStateInfo& info) { | 497 | 704 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 704 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 704 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 704 | return Status::OK(); | 501 | 704 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 1.71k | LocalSinkStateInfo& info) { | 497 | 1.71k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 1.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 1.71k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 1.71k | return Status::OK(); | 501 | 1.71k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 7.79k | LocalSinkStateInfo& info) { | 497 | 7.79k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 7.79k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 7.79k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 7.79k | return Status::OK(); | 501 | 7.79k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 95 | LocalSinkStateInfo& info) { | 497 | 95 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 95 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 95 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 95 | return Status::OK(); | 501 | 95 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 278k | LocalSinkStateInfo& info) { | 497 | 278k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 278k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 278k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 278k | return Status::OK(); | 501 | 278k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 30 | LocalSinkStateInfo& info) { | 497 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 30 | return Status::OK(); | 501 | 30 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 314k | LocalSinkStateInfo& info) { | 497 | 314k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 314k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 314k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 314k | return Status::OK(); | 501 | 314k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 162k | LocalSinkStateInfo& info) { | 497 | 162k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 162k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 162k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 162k | return Status::OK(); | 501 | 162k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 514 | LocalSinkStateInfo& info) { | 497 | 514 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 514 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 514 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 514 | return Status::OK(); | 501 | 514 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 182 | LocalSinkStateInfo& info) { | 497 | 182 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 182 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 182 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 182 | return Status::OK(); | 501 | 182 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 709k | LocalSinkStateInfo& info) { | 497 | 709k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 709k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 709k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 709k | return Status::OK(); | 501 | 709k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 11.0k | LocalSinkStateInfo& info) { | 497 | 11.0k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 11.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 11.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 11.0k | return Status::OK(); | 501 | 11.0k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 7.10k | LocalSinkStateInfo& info) { | 497 | 7.10k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 7.10k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 7.10k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 7.10k | return Status::OK(); | 501 | 7.10k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 3.99k | LocalSinkStateInfo& info) { | 497 | 3.99k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 3.99k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 3.99k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 3.99k | return Status::OK(); | 501 | 3.99k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 360 | LocalSinkStateInfo& info) { | 497 | 360 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 360 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 360 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 360 | return Status::OK(); | 501 | 360 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 4.81k | LocalSinkStateInfo& info) { | 497 | 4.81k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 4.81k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 4.81k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 4.81k | return Status::OK(); | 501 | 4.81k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.68k | LocalSinkStateInfo& info) { | 497 | 2.68k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.68k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.68k | return Status::OK(); | 501 | 2.68k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.56k | LocalSinkStateInfo& info) { | 497 | 2.56k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.56k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.56k | return Status::OK(); | 501 | 2.56k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.49k | LocalSinkStateInfo& info) { | 497 | 2.49k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.49k | return Status::OK(); | 501 | 2.49k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 1 | LocalSinkStateInfo& info) { | 497 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 1 | return Status::OK(); | 501 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 562 | LocalSinkStateInfo& info) { | 497 | 562 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 562 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 562 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 562 | return Status::OK(); | 501 | 562 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 14 | LocalSinkStateInfo& info) { | 497 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 14 | return Status::OK(); | 501 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 101 | LocalSinkStateInfo& info) { | 497 | 101 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 101 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 101 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 101 | return Status::OK(); | 501 | 101 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 164 | LocalSinkStateInfo& info) { | 497 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 164 | return Status::OK(); | 501 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 164 | LocalSinkStateInfo& info) { | 497 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 164 | return Status::OK(); | 501 | 164 | } |
|
502 | | |
503 | | template <typename LocalStateType> |
504 | 1.78M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
506 | 0 | LocalExchangeSharedState>) { |
507 | 0 | return nullptr; |
508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
509 | 0 | MultiCastSharedState>) { |
510 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
511 | 1.78M | } else { |
512 | 1.78M | auto ss = LocalStateType::SharedStateType::create_shared(); |
513 | 1.78M | ss->id = operator_id(); |
514 | 1.78M | for (auto& dest : dests_id()) { |
515 | 1.77M | ss->related_op_ids.insert(dest); |
516 | 1.77M | } |
517 | 1.78M | return ss; |
518 | 1.78M | } |
519 | 1.78M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 99.3k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 99.3k | } else { | 512 | 99.3k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 99.3k | ss->id = operator_id(); | 514 | 99.3k | for (auto& dest : dests_id()) { | 515 | 99.2k | ss->related_op_ids.insert(dest); | 516 | 99.2k | } | 517 | 99.3k | return ss; | 518 | 99.3k | } | 519 | 99.3k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 434k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 434k | } else { | 512 | 434k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 434k | ss->id = operator_id(); | 514 | 434k | for (auto& dest : dests_id()) { | 515 | 434k | ss->related_op_ids.insert(dest); | 516 | 434k | } | 517 | 434k | return ss; | 518 | 434k | } | 519 | 434k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 86 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 86 | } else { | 512 | 86 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 86 | ss->id = operator_id(); | 514 | 86 | for (auto& dest : dests_id()) { | 515 | 86 | ss->related_op_ids.insert(dest); | 516 | 86 | } | 517 | 86 | return ss; | 518 | 86 | } | 519 | 86 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 3 | } else { | 512 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 3 | ss->id = operator_id(); | 514 | 3 | for (auto& dest : dests_id()) { | 515 | 3 | ss->related_op_ids.insert(dest); | 516 | 3 | } | 517 | 3 | return ss; | 518 | 3 | } | 519 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 540 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 540 | } else { | 512 | 540 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 540 | ss->id = operator_id(); | 514 | 540 | for (auto& dest : dests_id()) { | 515 | 537 | ss->related_op_ids.insert(dest); | 516 | 537 | } | 517 | 540 | return ss; | 518 | 540 | } | 519 | 540 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 47.2k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 47.2k | } else { | 512 | 47.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 47.2k | ss->id = operator_id(); | 514 | 47.2k | for (auto& dest : dests_id()) { | 515 | 47.0k | ss->related_op_ids.insert(dest); | 516 | 47.0k | } | 517 | 47.2k | return ss; | 518 | 47.2k | } | 519 | 47.2k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 9.58k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 9.58k | } else { | 512 | 9.58k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 9.58k | ss->id = operator_id(); | 514 | 9.58k | for (auto& dest : dests_id()) { | 515 | 9.58k | ss->related_op_ids.insert(dest); | 516 | 9.58k | } | 517 | 9.58k | return ss; | 518 | 9.58k | } | 519 | 9.58k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 5.23k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 5.23k | } else { | 512 | 5.23k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 5.23k | ss->id = operator_id(); | 514 | 5.23k | for (auto& dest : dests_id()) { | 515 | 5.23k | ss->related_op_ids.insert(dest); | 516 | 5.23k | } | 517 | 5.23k | return ss; | 518 | 5.23k | } | 519 | 5.23k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 156 | } else { | 512 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 156 | ss->id = operator_id(); | 514 | 156 | for (auto& dest : dests_id()) { | 515 | 156 | ss->related_op_ids.insert(dest); | 516 | 156 | } | 517 | 156 | return ss; | 518 | 156 | } | 519 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 4.02k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 4.02k | } else { | 512 | 4.02k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 4.02k | ss->id = operator_id(); | 514 | 4.02k | for (auto& dest : dests_id()) { | 515 | 4.02k | ss->related_op_ids.insert(dest); | 516 | 4.02k | } | 517 | 4.02k | return ss; | 518 | 4.02k | } | 519 | 4.02k | } |
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 48 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 48 | } else { | 512 | 48 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 48 | ss->id = operator_id(); | 514 | 48 | for (auto& dest : dests_id()) { | 515 | 48 | ss->related_op_ids.insert(dest); | 516 | 48 | } | 517 | 48 | return ss; | 518 | 48 | } | 519 | 48 | } |
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 704 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 704 | } else { | 512 | 704 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 704 | ss->id = operator_id(); | 514 | 704 | for (auto& dest : dests_id()) { | 515 | 704 | ss->related_op_ids.insert(dest); | 516 | 704 | } | 517 | 704 | return ss; | 518 | 704 | } | 519 | 704 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 1.71k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 1.71k | } else { | 512 | 1.71k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 1.71k | ss->id = operator_id(); | 514 | 1.71k | for (auto& dest : dests_id()) { | 515 | 1.71k | ss->related_op_ids.insert(dest); | 516 | 1.71k | } | 517 | 1.71k | return ss; | 518 | 1.71k | } | 519 | 1.71k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 7.85k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 7.85k | } else { | 512 | 7.85k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 7.85k | ss->id = operator_id(); | 514 | 7.86k | for (auto& dest : dests_id()) { | 515 | 7.86k | ss->related_op_ids.insert(dest); | 516 | 7.86k | } | 517 | 7.85k | return ss; | 518 | 7.85k | } | 519 | 7.85k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 95 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 95 | } else { | 512 | 95 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 95 | ss->id = operator_id(); | 514 | 95 | for (auto& dest : dests_id()) { | 515 | 95 | ss->related_op_ids.insert(dest); | 516 | 95 | } | 517 | 95 | return ss; | 518 | 95 | } | 519 | 95 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 279k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 279k | } else { | 512 | 279k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 279k | ss->id = operator_id(); | 514 | 279k | for (auto& dest : dests_id()) { | 515 | 279k | ss->related_op_ids.insert(dest); | 516 | 279k | } | 517 | 279k | return ss; | 518 | 279k | } | 519 | 279k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 32 | } else { | 512 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 32 | ss->id = operator_id(); | 514 | 32 | for (auto& dest : dests_id()) { | 515 | 32 | ss->related_op_ids.insert(dest); | 516 | 32 | } | 517 | 32 | return ss; | 518 | 32 | } | 519 | 32 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 162k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 162k | } else { | 512 | 162k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 162k | ss->id = operator_id(); | 514 | 162k | for (auto& dest : dests_id()) { | 515 | 162k | ss->related_op_ids.insert(dest); | 516 | 162k | } | 517 | 162k | return ss; | 518 | 162k | } | 519 | 162k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 181 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 181 | } else { | 512 | 181 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 181 | ss->id = operator_id(); | 514 | 181 | for (auto& dest : dests_id()) { | 515 | 181 | ss->related_op_ids.insert(dest); | 516 | 181 | } | 517 | 181 | return ss; | 518 | 181 | } | 519 | 181 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 711k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 711k | } else { | 512 | 711k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 711k | ss->id = operator_id(); | 514 | 711k | for (auto& dest : dests_id()) { | 515 | 708k | ss->related_op_ids.insert(dest); | 516 | 708k | } | 517 | 711k | return ss; | 518 | 711k | } | 519 | 711k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 11.0k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 11.0k | } else { | 512 | 11.0k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 11.0k | ss->id = operator_id(); | 514 | 11.0k | for (auto& dest : dests_id()) { | 515 | 11.0k | ss->related_op_ids.insert(dest); | 516 | 11.0k | } | 517 | 11.0k | return ss; | 518 | 11.0k | } | 519 | 11.0k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 464 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 464 | } else { | 512 | 464 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 464 | ss->id = operator_id(); | 514 | 464 | for (auto& dest : dests_id()) { | 515 | 460 | ss->related_op_ids.insert(dest); | 516 | 460 | } | 517 | 464 | return ss; | 518 | 464 | } | 519 | 464 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 504 | 2.59k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 2.59k | } else { | 512 | 2.59k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 2.59k | ss->id = operator_id(); | 514 | 2.59k | for (auto& dest : dests_id()) { | 515 | 2.59k | ss->related_op_ids.insert(dest); | 516 | 2.59k | } | 517 | 2.59k | return ss; | 518 | 2.59k | } | 519 | 2.59k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 504 | 2.51k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 2.51k | } else { | 512 | 2.51k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 2.51k | ss->id = operator_id(); | 514 | 2.51k | for (auto& dest : dests_id()) { | 515 | 2.51k | ss->related_op_ids.insert(dest); | 516 | 2.51k | } | 517 | 2.51k | return ss; | 518 | 2.51k | } | 519 | 2.51k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 562 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 562 | } else { | 512 | 562 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 562 | ss->id = operator_id(); | 514 | 562 | for (auto& dest : dests_id()) { | 515 | 556 | ss->related_op_ids.insert(dest); | 516 | 556 | } | 517 | 562 | return ss; | 518 | 562 | } | 519 | 562 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 101 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 101 | } else { | 512 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 101 | ss->id = operator_id(); | 514 | 101 | for (auto& dest : dests_id()) { | 515 | 101 | ss->related_op_ids.insert(dest); | 516 | 101 | } | 517 | 101 | return ss; | 518 | 101 | } | 519 | 101 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
520 | | |
521 | | template <typename LocalStateType> |
522 | 2.57M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
523 | 2.57M | auto local_state = LocalStateType::create_unique(state, this); |
524 | 2.57M | RETURN_IF_ERROR(local_state->init(state, info)); |
525 | 2.57M | state->emplace_local_state(operator_id(), std::move(local_state)); |
526 | 2.57M | return Status::OK(); |
527 | 2.57M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 72.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 72.3k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 72.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 72.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 72.3k | return Status::OK(); | 527 | 72.3k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 310k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 310k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 310k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 310k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 310k | return Status::OK(); | 527 | 310k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 116 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 116 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 116 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 116 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 116 | return Status::OK(); | 527 | 116 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 38.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 38.1k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 38.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 38.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 38.1k | return Status::OK(); | 527 | 38.1k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 7.80k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 7.80k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 7.80k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 7.80k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 7.80k | return Status::OK(); | 527 | 7.80k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 8.15k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 8.15k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 8.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 8.15k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 8.15k | return Status::OK(); | 527 | 8.15k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 23 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 23 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 23 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 23 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 23 | return Status::OK(); | 527 | 23 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 270k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 270k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 270k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 270k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 270k | return Status::OK(); | 527 | 270k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 162k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 162k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 162k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 162k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 162k | return Status::OK(); | 527 | 162k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 517 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 517 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 517 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 517 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 517 | return Status::OK(); | 527 | 517 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 172 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 172 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 172 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 172 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 172 | return Status::OK(); | 527 | 172 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 4.35k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 4.35k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 4.35k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 4.35k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 4.35k | return Status::OK(); | 527 | 4.35k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 380k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 380k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 380k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 380k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 380k | return Status::OK(); | 527 | 380k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 1.37k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 1.37k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 1.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 1.37k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 1.37k | return Status::OK(); | 527 | 1.37k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 11.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 11.0k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 11.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 11.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 11.0k | return Status::OK(); | 527 | 11.0k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 221 | return Status::OK(); | 527 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.00k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.00k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.00k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.00k | return Status::OK(); | 527 | 2.00k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 56.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 56.9k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 56.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 56.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 56.9k | return Status::OK(); | 527 | 56.9k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 10.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 10.9k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 10.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 10.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 10.9k | return Status::OK(); | 527 | 10.9k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 359 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 359 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 359 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 359 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 359 | return Status::OK(); | 527 | 359 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.52k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.52k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.52k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.52k | return Status::OK(); | 527 | 2.52k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.42k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.42k | return Status::OK(); | 527 | 2.42k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 522 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 522 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 522 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 522 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 522 | return Status::OK(); | 527 | 522 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.23k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.23k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.23k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.23k | return Status::OK(); | 527 | 2.23k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 6.56k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 6.56k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 6.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 6.56k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 6.56k | return Status::OK(); | 527 | 6.56k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 796k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 796k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 796k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 796k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 796k | return Status::OK(); | 527 | 796k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 14 | return Status::OK(); | 527 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 164 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 164 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 164 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 164 | return Status::OK(); | 527 | 164 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.18k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.18k | return Status::OK(); | 527 | 2.18k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 1.74k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 1.74k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 1.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 1.74k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 1.74k | return Status::OK(); | 527 | 1.74k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.71k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.71k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.71k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.71k | return Status::OK(); | 527 | 2.71k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 12.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 12.8k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 12.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 12.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 12.8k | return Status::OK(); | 527 | 12.8k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 404k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 404k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 404k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 404k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 404k | return Status::OK(); | 527 | 404k | } |
|
528 | | |
529 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
530 | | RuntimeState* state) |
531 | 2.13M | : _parent(parent), _state(state) {} |
532 | | |
533 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
534 | 2.56M | : _num_rows_returned(0), |
535 | 2.56M | _rows_returned_counter(nullptr), |
536 | 2.56M | _parent(parent), |
537 | 2.56M | _state(state), |
538 | 2.56M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
539 | | |
540 | | template <typename SharedStateArg> |
541 | 2.57M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
542 | 2.57M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
543 | 2.57M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
544 | 2.57M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
545 | 2.57M | _operator_profile->set_metadata(_parent->node_id()); |
546 | | // indent is false so that source operator will have same |
547 | | // indentation_level with its parent operator. |
548 | 2.57M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
549 | 2.57M | _operator_profile->add_child(_common_profile.get(), true); |
550 | 2.57M | _operator_profile->add_child(_custom_profile.get(), true); |
551 | 2.57M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
552 | 2.57M | if constexpr (!is_fake_shared) { |
553 | 1.40M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
554 | 815k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
555 | 815k | .first.get() |
556 | 815k | ->template cast<SharedStateArg>(); |
557 | | |
558 | 815k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
559 | 815k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
560 | 815k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
561 | 815k | } else if (info.shared_state) { |
562 | 524k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
563 | 0 | DCHECK(false); |
564 | 0 | } |
565 | | // For UnionSourceOperator without children, there is no shared state. |
566 | 524k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
567 | | |
568 | 524k | _dependency = _shared_state->create_source_dependency( |
569 | 524k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
570 | 524k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
571 | 524k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
572 | 524k | } else { |
573 | 67.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
574 | 5.24k | DCHECK(false); |
575 | 5.24k | } |
576 | 67.3k | } |
577 | 1.40M | } |
578 | | |
579 | 2.57M | if (must_set_shared_state() && _shared_state == nullptr) { |
580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
581 | 0 | } |
582 | | |
583 | 2.57M | _rows_returned_counter = |
584 | 2.57M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
585 | 2.57M | _blocks_returned_counter = |
586 | 2.57M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
587 | 2.57M | _output_block_bytes_counter = |
588 | 2.57M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
589 | 2.57M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
590 | 2.57M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
591 | 2.57M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
592 | 2.57M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
593 | 2.57M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
594 | 2.57M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
595 | 2.57M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
596 | 2.57M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
597 | 2.57M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
598 | 2.57M | _memory_used_counter = |
599 | 2.57M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
600 | 2.57M | _common_profile->add_info_string("IsColocate", |
601 | 2.57M | std::to_string(_parent->is_colocated_operator())); |
602 | 2.57M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
603 | 2.57M | _common_profile->add_info_string("FollowedByShuffledOperator", |
604 | 2.57M | std::to_string(_parent->followed_by_shuffled_operator())); |
605 | 2.57M | return Status::OK(); |
606 | 2.57M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 72.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 72.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 72.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 72.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 72.5k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 72.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 72.5k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 72.5k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 72.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 72.5k | if constexpr (!is_fake_shared) { | 553 | 72.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 21.1k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 21.1k | .first.get() | 556 | 21.1k | ->template cast<SharedStateArg>(); | 557 | | | 558 | 21.1k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 21.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 21.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 51.4k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 50.7k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 50.7k | _dependency = _shared_state->create_source_dependency( | 569 | 50.7k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 50.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 50.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 50.7k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 633 | } | 577 | 72.5k | } | 578 | | | 579 | 72.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 72.5k | _rows_returned_counter = | 584 | 72.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 72.5k | _blocks_returned_counter = | 586 | 72.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 72.5k | _output_block_bytes_counter = | 588 | 72.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 72.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 72.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 72.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 72.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 72.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 72.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 72.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 72.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 72.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 72.5k | _memory_used_counter = | 599 | 72.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 72.5k | _common_profile->add_info_string("IsColocate", | 601 | 72.5k | std::to_string(_parent->is_colocated_operator())); | 602 | 72.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 72.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 72.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 72.5k | return Status::OK(); | 606 | 72.5k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 1 | if constexpr (!is_fake_shared) { | 553 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 1 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 1 | _dependency = _shared_state->create_source_dependency( | 569 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 1 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 1 | } | 578 | | | 579 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 1 | _rows_returned_counter = | 584 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 1 | _blocks_returned_counter = | 586 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 1 | _output_block_bytes_counter = | 588 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 1 | _memory_used_counter = | 599 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 1 | _common_profile->add_info_string("IsColocate", | 601 | 1 | std::to_string(_parent->is_colocated_operator())); | 602 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 1 | return Status::OK(); | 606 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 279k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 279k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 279k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 279k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 279k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 279k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 279k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 279k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 279k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 279k | if constexpr (!is_fake_shared) { | 553 | 279k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 279k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 273k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 273k | _dependency = _shared_state->create_source_dependency( | 569 | 273k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 273k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 273k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 273k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 5.57k | } | 577 | 279k | } | 578 | | | 579 | 279k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 279k | _rows_returned_counter = | 584 | 279k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 279k | _blocks_returned_counter = | 586 | 279k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 279k | _output_block_bytes_counter = | 588 | 279k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 279k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 279k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 279k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 279k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 279k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 279k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 279k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 279k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 279k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 279k | _memory_used_counter = | 599 | 279k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 279k | _common_profile->add_info_string("IsColocate", | 601 | 279k | std::to_string(_parent->is_colocated_operator())); | 602 | 279k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 279k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 279k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 279k | return Status::OK(); | 606 | 279k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 23 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 23 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 23 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 23 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 23 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 23 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 23 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 23 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 23 | if constexpr (!is_fake_shared) { | 553 | 23 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 23 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 23 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 23 | _dependency = _shared_state->create_source_dependency( | 569 | 23 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 23 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 23 | } | 578 | | | 579 | 23 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 23 | _rows_returned_counter = | 584 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 23 | _blocks_returned_counter = | 586 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 23 | _output_block_bytes_counter = | 588 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 23 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 23 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 23 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 23 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 23 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 23 | _memory_used_counter = | 599 | 23 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 23 | _common_profile->add_info_string("IsColocate", | 601 | 23 | std::to_string(_parent->is_colocated_operator())); | 602 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 23 | return Status::OK(); | 606 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 11.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 11.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 11.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 11.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 11.0k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 11.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 11.0k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 11.0k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 11.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 11.0k | if constexpr (!is_fake_shared) { | 553 | 11.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 11.0k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 11.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 11.0k | _dependency = _shared_state->create_source_dependency( | 569 | 11.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 11.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 11.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 11.0k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 46 | } | 577 | 11.0k | } | 578 | | | 579 | 11.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 11.0k | _rows_returned_counter = | 584 | 11.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 11.0k | _blocks_returned_counter = | 586 | 11.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 11.0k | _output_block_bytes_counter = | 588 | 11.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 11.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 11.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 11.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 11.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 11.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 11.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 11.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 11.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 11.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 11.0k | _memory_used_counter = | 599 | 11.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 11.0k | _common_profile->add_info_string("IsColocate", | 601 | 11.0k | std::to_string(_parent->is_colocated_operator())); | 602 | 11.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 11.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 11.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 11.0k | return Status::OK(); | 606 | 11.0k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 7.84k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 7.84k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 7.84k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 7.84k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 7.84k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 7.84k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 7.84k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 7.84k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 7.84k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 7.84k | if constexpr (!is_fake_shared) { | 553 | 7.84k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 7.84k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 7.75k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 7.75k | _dependency = _shared_state->create_source_dependency( | 569 | 7.75k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 7.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 7.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 7.75k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 96 | } | 577 | 7.84k | } | 578 | | | 579 | 7.84k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 7.84k | _rows_returned_counter = | 584 | 7.84k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 7.84k | _blocks_returned_counter = | 586 | 7.84k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 7.84k | _output_block_bytes_counter = | 588 | 7.84k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 7.84k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 7.84k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 7.84k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 7.84k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 7.84k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 7.84k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 7.84k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 7.84k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 7.84k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 7.84k | _memory_used_counter = | 599 | 7.84k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 7.84k | _common_profile->add_info_string("IsColocate", | 601 | 7.84k | std::to_string(_parent->is_colocated_operator())); | 602 | 7.84k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 7.84k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 7.84k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 7.84k | return Status::OK(); | 606 | 7.84k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 162k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 162k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 162k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 162k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 162k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 162k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 162k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 162k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 162k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 162k | if constexpr (!is_fake_shared) { | 553 | 162k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 162k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 160k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 160k | _dependency = _shared_state->create_source_dependency( | 569 | 160k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 160k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 160k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 160k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 1.72k | } | 577 | 162k | } | 578 | | | 579 | 162k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 162k | _rows_returned_counter = | 584 | 162k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 162k | _blocks_returned_counter = | 586 | 162k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 162k | _output_block_bytes_counter = | 588 | 162k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 162k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 162k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 162k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 162k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 162k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 162k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 162k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 162k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 162k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 162k | _memory_used_counter = | 599 | 162k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 162k | _common_profile->add_info_string("IsColocate", | 601 | 162k | std::to_string(_parent->is_colocated_operator())); | 602 | 162k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 162k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 162k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 162k | return Status::OK(); | 606 | 162k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 519 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 519 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 519 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 519 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 519 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 519 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 519 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 519 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 519 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 519 | if constexpr (!is_fake_shared) { | 553 | 519 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 514 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 514 | .first.get() | 556 | 514 | ->template cast<SharedStateArg>(); | 557 | | | 558 | 514 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 514 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 514 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 514 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | |
| 568 | 0 | _dependency = _shared_state->create_source_dependency( | 569 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 5 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 5 | } | 577 | 519 | } | 578 | | | 579 | 519 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 519 | _rows_returned_counter = | 584 | 519 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 519 | _blocks_returned_counter = | 586 | 519 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 519 | _output_block_bytes_counter = | 588 | 519 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 519 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 519 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 519 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 519 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 519 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 519 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 519 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 519 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 519 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 519 | _memory_used_counter = | 599 | 519 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 519 | _common_profile->add_info_string("IsColocate", | 601 | 519 | std::to_string(_parent->is_colocated_operator())); | 602 | 519 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 519 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 519 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 519 | return Status::OK(); | 606 | 519 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 172 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 172 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 172 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 172 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 172 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 172 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 172 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 172 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 172 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 172 | if constexpr (!is_fake_shared) { | 553 | 172 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 172 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 172 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 172 | _dependency = _shared_state->create_source_dependency( | 569 | 172 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 172 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 172 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 172 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 172 | } | 578 | | | 579 | 172 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 172 | _rows_returned_counter = | 584 | 172 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 172 | _blocks_returned_counter = | 586 | 172 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 172 | _output_block_bytes_counter = | 588 | 172 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 172 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 172 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 172 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 172 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 172 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 172 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 172 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 172 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 172 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 172 | _memory_used_counter = | 599 | 172 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 172 | _common_profile->add_info_string("IsColocate", | 601 | 172 | std::to_string(_parent->is_colocated_operator())); | 602 | 172 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 172 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 172 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 172 | return Status::OK(); | 606 | 172 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 1.16M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 1.16M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 1.16M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 1.16M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 1.16M | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 1.16M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 1.16M | _operator_profile->add_child(_common_profile.get(), true); | 550 | 1.16M | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 1.16M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | | if constexpr (!is_fake_shared) { | 553 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | | .first.get() | 556 | | ->template cast<SharedStateArg>(); | 557 | | | 558 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | | _dependency = _shared_state->create_source_dependency( | 569 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | | } | 577 | | } | 578 | | | 579 | 1.16M | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 1.16M | _rows_returned_counter = | 584 | 1.16M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 1.16M | _blocks_returned_counter = | 586 | 1.16M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 1.16M | _output_block_bytes_counter = | 588 | 1.16M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 1.16M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 1.16M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 1.16M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 1.16M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 1.16M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 1.16M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 1.16M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 1.16M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 1.16M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 1.16M | _memory_used_counter = | 599 | 1.16M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 1.16M | _common_profile->add_info_string("IsColocate", | 601 | 1.16M | std::to_string(_parent->is_colocated_operator())); | 602 | 1.16M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 1.16M | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 1.16M | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 1.16M | return Status::OK(); | 606 | 1.16M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 56.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 56.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 56.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 56.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 56.8k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 56.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 56.8k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 56.8k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 56.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 56.8k | if constexpr (!is_fake_shared) { | 553 | 56.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 56.8k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 3.39k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 3.39k | _dependency = _shared_state->create_source_dependency( | 569 | 3.39k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 3.39k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 3.39k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 53.5k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 53.5k | } | 577 | 56.8k | } | 578 | | | 579 | 56.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 56.8k | _rows_returned_counter = | 584 | 56.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 56.8k | _blocks_returned_counter = | 586 | 56.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 56.8k | _output_block_bytes_counter = | 588 | 56.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 56.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 56.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 56.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 56.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 56.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 56.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 56.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 56.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 56.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 56.8k | _memory_used_counter = | 599 | 56.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 56.8k | _common_profile->add_info_string("IsColocate", | 601 | 56.8k | std::to_string(_parent->is_colocated_operator())); | 602 | 56.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 56.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 56.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 56.8k | return Status::OK(); | 606 | 56.8k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 26 | if constexpr (!is_fake_shared) { | 553 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 26 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 26 | _dependency = _shared_state->create_source_dependency( | 569 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 26 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 26 | } | 578 | | | 579 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 26 | _rows_returned_counter = | 584 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 26 | _blocks_returned_counter = | 586 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 26 | _output_block_bytes_counter = | 588 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 26 | _memory_used_counter = | 599 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 26 | _common_profile->add_info_string("IsColocate", | 601 | 26 | std::to_string(_parent->is_colocated_operator())); | 602 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 26 | return Status::OK(); | 606 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 10.9k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 10.9k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 10.9k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 10.9k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 10.9k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 10.9k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 10.9k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 10.9k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 10.9k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 10.9k | if constexpr (!is_fake_shared) { | 553 | 10.9k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 10.9k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 10.9k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 10.9k | _dependency = _shared_state->create_source_dependency( | 569 | 10.9k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 10.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 10.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 10.9k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 8 | } | 577 | 10.9k | } | 578 | | | 579 | 10.9k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 10.9k | _rows_returned_counter = | 584 | 10.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 10.9k | _blocks_returned_counter = | 586 | 10.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 10.9k | _output_block_bytes_counter = | 588 | 10.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 10.9k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 10.9k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 10.9k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 10.9k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 10.9k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 10.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 10.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 10.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 10.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 10.9k | _memory_used_counter = | 599 | 10.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 10.9k | _common_profile->add_info_string("IsColocate", | 601 | 10.9k | std::to_string(_parent->is_colocated_operator())); | 602 | 10.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 10.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 10.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 10.9k | return Status::OK(); | 606 | 10.9k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 462 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 462 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 462 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 462 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 462 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 462 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 462 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 462 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 462 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 462 | if constexpr (!is_fake_shared) { | 553 | 462 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 462 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 458 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 458 | _dependency = _shared_state->create_source_dependency( | 569 | 458 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 458 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 458 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 458 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 4 | } | 577 | 462 | } | 578 | | | 579 | 462 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 462 | _rows_returned_counter = | 584 | 462 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 462 | _blocks_returned_counter = | 586 | 462 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 462 | _output_block_bytes_counter = | 588 | 462 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 462 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 462 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 462 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 462 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 462 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 462 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 462 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 462 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 462 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 462 | _memory_used_counter = | 599 | 462 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 462 | _common_profile->add_info_string("IsColocate", | 601 | 462 | std::to_string(_parent->is_colocated_operator())); | 602 | 462 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 462 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 462 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 462 | return Status::OK(); | 606 | 462 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 5.03k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 5.03k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 5.03k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 5.03k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 5.03k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 5.03k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 5.03k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 5.03k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 5.03k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 5.03k | if constexpr (!is_fake_shared) { | 553 | 5.03k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 5.03k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 4.54k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 4.54k | _dependency = _shared_state->create_source_dependency( | 569 | 4.54k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 4.54k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 4.54k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 4.54k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 489 | } | 577 | 5.03k | } | 578 | | | 579 | 5.03k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 5.03k | _rows_returned_counter = | 584 | 5.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 5.03k | _blocks_returned_counter = | 586 | 5.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 5.03k | _output_block_bytes_counter = | 588 | 5.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 5.03k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 5.03k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 5.03k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 5.03k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 5.03k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 5.03k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 5.03k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 5.03k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 5.03k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 5.03k | _memory_used_counter = | 599 | 5.03k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 5.03k | _common_profile->add_info_string("IsColocate", | 601 | 5.03k | std::to_string(_parent->is_colocated_operator())); | 602 | 5.03k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 5.03k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 5.03k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 5.03k | return Status::OK(); | 606 | 5.03k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 799k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 799k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 799k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 799k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 799k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 799k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 799k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 799k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 799k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 799k | if constexpr (!is_fake_shared) { | 553 | 799k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 794k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 794k | .first.get() | 556 | 794k | ->template cast<SharedStateArg>(); | 557 | | | 558 | 794k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 794k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 794k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 794k | } else if (info.shared_state) { | 562 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | 0 | DCHECK(false); | 564 | 0 | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | |
| 568 | 0 | _dependency = _shared_state->create_source_dependency( | 569 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 5.24k | } else { | 573 | 5.24k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | 5.24k | DCHECK(false); | 575 | 5.24k | } | 576 | 5.24k | } | 577 | 799k | } | 578 | | | 579 | 799k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 799k | _rows_returned_counter = | 584 | 799k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 799k | _blocks_returned_counter = | 586 | 799k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 799k | _output_block_bytes_counter = | 588 | 799k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 799k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 799k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 799k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 799k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 799k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 799k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 799k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 799k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 799k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 799k | _memory_used_counter = | 599 | 799k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 799k | _common_profile->add_info_string("IsColocate", | 601 | 799k | std::to_string(_parent->is_colocated_operator())); | 602 | 799k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 799k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 799k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 799k | return Status::OK(); | 606 | 799k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 163 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 163 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 163 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 163 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 163 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 163 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 163 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 163 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 163 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 163 | if constexpr (!is_fake_shared) { | 553 | 163 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 164 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 164 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 164 | _dependency = _shared_state->create_source_dependency( | 569 | 164 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 164 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 164 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 18.4E | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 18.4E | } | 577 | 163 | } | 578 | | | 579 | 164 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 163 | _rows_returned_counter = | 584 | 163 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 163 | _blocks_returned_counter = | 586 | 163 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 163 | _output_block_bytes_counter = | 588 | 163 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 163 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 163 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 163 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 163 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 163 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 163 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 163 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 163 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 163 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 163 | _memory_used_counter = | 599 | 163 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 163 | _common_profile->add_info_string("IsColocate", | 601 | 163 | std::to_string(_parent->is_colocated_operator())); | 602 | 163 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 163 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 163 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 163 | return Status::OK(); | 606 | 163 | } |
|
607 | | |
608 | | template <typename SharedStateArg> |
609 | 2.58M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
610 | 2.58M | _conjuncts.resize(_parent->_conjuncts.size()); |
611 | 2.58M | _projections.resize(_parent->_projections.size()); |
612 | 3.12M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
613 | 542k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
614 | 542k | } |
615 | 5.43M | for (size_t i = 0; i < _projections.size(); i++) { |
616 | 2.85M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
617 | 2.85M | } |
618 | 2.58M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
619 | 2.59M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
620 | 13.9k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
621 | 107k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
622 | 93.2k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
623 | 93.2k | state, _intermediate_projections[i][j])); |
624 | 93.2k | } |
625 | 13.9k | } |
626 | 2.58M | return Status::OK(); |
627 | 2.58M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 72.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 72.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 72.6k | _projections.resize(_parent->_projections.size()); | 612 | 73.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 978 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 978 | } | 615 | 370k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 297k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 297k | } | 618 | 72.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 75.8k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 3.15k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 41.7k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 38.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 38.5k | state, _intermediate_projections[i][j])); | 624 | 38.5k | } | 625 | 3.15k | } | 626 | 72.6k | return Status::OK(); | 627 | 72.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 3 | _projections.resize(_parent->_projections.size()); | 612 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 3 | return Status::OK(); | 627 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 279k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 279k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 279k | _projections.resize(_parent->_projections.size()); | 612 | 279k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 279k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 365 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 365 | } | 618 | 279k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 279k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 279k | return Status::OK(); | 627 | 279k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 23 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 23 | _projections.resize(_parent->_projections.size()); | 612 | 23 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 23 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 23 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 23 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 23 | return Status::OK(); | 627 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 11.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 11.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 11.1k | _projections.resize(_parent->_projections.size()); | 612 | 11.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 57 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 57 | } | 615 | 68.0k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 56.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 56.9k | } | 618 | 11.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 11.2k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 133 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 812 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 679 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 679 | state, _intermediate_projections[i][j])); | 624 | 679 | } | 625 | 133 | } | 626 | 11.1k | return Status::OK(); | 627 | 11.1k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 7.88k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 7.88k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 7.88k | _projections.resize(_parent->_projections.size()); | 612 | 8.78k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 904 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 904 | } | 615 | 20.1k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 12.2k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 12.2k | } | 618 | 7.88k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 7.99k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 112 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 863 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 751 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 751 | state, _intermediate_projections[i][j])); | 624 | 751 | } | 625 | 112 | } | 626 | 7.88k | return Status::OK(); | 627 | 7.88k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 162k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 162k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 162k | _projections.resize(_parent->_projections.size()); | 612 | 166k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 4.03k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 4.03k | } | 615 | 426k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 264k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 264k | } | 618 | 162k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 162k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 331 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 2.44k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 2.11k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 2.11k | state, _intermediate_projections[i][j])); | 624 | 2.11k | } | 625 | 331 | } | 626 | 162k | return Status::OK(); | 627 | 162k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 520 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 520 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 520 | _projections.resize(_parent->_projections.size()); | 612 | 529 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 9 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 9 | } | 615 | 1.29k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 778 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 778 | } | 618 | 520 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 520 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 520 | return Status::OK(); | 627 | 520 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 176 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 176 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 176 | _projections.resize(_parent->_projections.size()); | 612 | 176 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 492 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 316 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 316 | } | 618 | 176 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 176 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 176 | return Status::OK(); | 627 | 176 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 1.17M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 1.17M | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 1.17M | _projections.resize(_parent->_projections.size()); | 612 | 1.70M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 533k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 533k | } | 615 | 3.29M | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 2.12M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 2.12M | } | 618 | 1.17M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 1.18M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 10.1k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 61.3k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 51.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 51.1k | state, _intermediate_projections[i][j])); | 624 | 51.1k | } | 625 | 10.1k | } | 626 | 1.17M | return Status::OK(); | 627 | 1.17M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 57.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 57.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 57.1k | _projections.resize(_parent->_projections.size()); | 612 | 57.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 153k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 96.2k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 96.2k | } | 618 | 57.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 57.1k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 57.1k | return Status::OK(); | 627 | 57.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 25 | _projections.resize(_parent->_projections.size()); | 612 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 25 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 25 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 25 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 25 | return Status::OK(); | 627 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 10.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 10.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 10.9k | _projections.resize(_parent->_projections.size()); | 612 | 14.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 3.48k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 3.48k | } | 615 | 10.9k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 10.9k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 10.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 10.9k | return Status::OK(); | 627 | 10.9k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 464 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 464 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 464 | _projections.resize(_parent->_projections.size()); | 612 | 464 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 464 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 464 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 464 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 464 | return Status::OK(); | 627 | 464 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 5.20k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 5.20k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 5.20k | _projections.resize(_parent->_projections.size()); | 612 | 5.20k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 5.36k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 168 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 168 | } | 618 | 5.20k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 5.20k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 5.20k | return Status::OK(); | 627 | 5.20k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 801k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 801k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 801k | _projections.resize(_parent->_projections.size()); | 612 | 801k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 801k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 801k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 801k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 801k | return Status::OK(); | 627 | 801k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 164 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 164 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 164 | _projections.resize(_parent->_projections.size()); | 612 | 171 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 7 | } | 615 | 483 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 319 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 319 | } | 618 | 164 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 167 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 3 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 11 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 8 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 8 | state, _intermediate_projections[i][j])); | 624 | 8 | } | 625 | 3 | } | 626 | 164 | return Status::OK(); | 627 | 164 | } |
|
628 | | |
629 | | template <typename SharedStateArg> |
630 | 6.51k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
631 | 6.51k | if (_terminated) { |
632 | 0 | return Status::OK(); |
633 | 0 | } |
634 | 6.51k | _terminated = true; |
635 | 6.51k | return Status::OK(); |
636 | 6.51k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 264 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 264 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 264 | _terminated = true; | 635 | 264 | return Status::OK(); | 636 | 264 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 27 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 27 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 27 | _terminated = true; | 635 | 27 | return Status::OK(); | 636 | 27 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 49 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 49 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 49 | _terminated = true; | 635 | 49 | return Status::OK(); | 636 | 49 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 108 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 108 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 108 | _terminated = true; | 635 | 108 | return Status::OK(); | 636 | 108 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 2 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 2 | _terminated = true; | 635 | 2 | return Status::OK(); | 636 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 5.01k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 5.01k | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 5.01k | _terminated = true; | 635 | 5.01k | return Status::OK(); | 636 | 5.01k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 2 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 2 | _terminated = true; | 635 | 2 | return Status::OK(); | 636 | 2 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 2 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 2 | _terminated = true; | 635 | 2 | return Status::OK(); | 636 | 2 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 190 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 190 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 190 | _terminated = true; | 635 | 190 | return Status::OK(); | 636 | 190 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 838 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 838 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 838 | _terminated = true; | 635 | 838 | return Status::OK(); | 636 | 838 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 14 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 14 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 14 | _terminated = true; | 635 | 14 | return Status::OK(); | 636 | 14 | } |
|
637 | | |
638 | | template <typename SharedStateArg> |
639 | 2.89M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
640 | 2.89M | if (_closed) { |
641 | 312k | return Status::OK(); |
642 | 312k | } |
643 | 2.58M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
644 | 1.40M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
645 | 1.40M | } |
646 | 2.58M | _closed = true; |
647 | 2.58M | return Status::OK(); |
648 | 2.89M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 72.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 72.6k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 72.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 72.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 72.6k | } | 646 | 72.6k | _closed = true; | 647 | 72.6k | return Status::OK(); | 648 | 72.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 4 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 4 | } | 646 | 4 | _closed = true; | 647 | 4 | return Status::OK(); | 648 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 553k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 553k | if (_closed) { | 641 | 278k | return Status::OK(); | 642 | 278k | } | 643 | 275k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 275k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 275k | } | 646 | 275k | _closed = true; | 647 | 275k | return Status::OK(); | 648 | 553k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 23 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 23 | } | 646 | 23 | _closed = true; | 647 | 23 | return Status::OK(); | 648 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 11.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 11.1k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 11.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 11.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 11.1k | } | 646 | 11.1k | _closed = true; | 647 | 11.1k | return Status::OK(); | 648 | 11.1k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 15.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 15.8k | if (_closed) { | 641 | 7.98k | return Status::OK(); | 642 | 7.98k | } | 643 | 7.84k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 7.84k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 7.84k | } | 646 | 7.84k | _closed = true; | 647 | 7.84k | return Status::OK(); | 648 | 15.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 162k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 162k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 162k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 162k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 162k | } | 646 | 162k | _closed = true; | 647 | 162k | return Status::OK(); | 648 | 162k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 517 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 517 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 517 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 517 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 517 | } | 646 | 517 | _closed = true; | 647 | 517 | return Status::OK(); | 648 | 517 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 171 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 171 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 171 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 171 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 171 | } | 646 | 171 | _closed = true; | 647 | 171 | return Status::OK(); | 648 | 171 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 1.19M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 1.19M | if (_closed) { | 641 | 20.1k | return Status::OK(); | 642 | 20.1k | } | 643 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | | } | 646 | 1.17M | _closed = true; | 647 | 1.17M | return Status::OK(); | 648 | 1.19M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 57.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 57.1k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 57.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 57.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 57.1k | } | 646 | 57.1k | _closed = true; | 647 | 57.1k | return Status::OK(); | 648 | 57.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 28 | if (_closed) { | 641 | 14 | return Status::OK(); | 642 | 14 | } | 643 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 14 | } | 646 | 14 | _closed = true; | 647 | 14 | return Status::OK(); | 648 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 10.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 10.9k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 10.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 10.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 10.9k | } | 646 | 10.9k | _closed = true; | 647 | 10.9k | return Status::OK(); | 648 | 10.9k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 722 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 722 | if (_closed) { | 641 | 361 | return Status::OK(); | 642 | 361 | } | 643 | 361 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 361 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 361 | } | 646 | 361 | _closed = true; | 647 | 361 | return Status::OK(); | 648 | 722 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 10.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 10.5k | if (_closed) { | 641 | 5.31k | return Status::OK(); | 642 | 5.31k | } | 643 | 5.19k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 5.19k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 5.19k | } | 646 | 5.19k | _closed = true; | 647 | 5.19k | return Status::OK(); | 648 | 10.5k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 803k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 803k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 803k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 803k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 803k | } | 646 | 803k | _closed = true; | 647 | 803k | return Status::OK(); | 648 | 803k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 333 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 333 | if (_closed) { | 641 | 178 | return Status::OK(); | 642 | 178 | } | 643 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 155 | } | 646 | 155 | _closed = true; | 647 | 155 | return Status::OK(); | 648 | 333 | } |
|
649 | | |
650 | | template <typename SharedState> |
651 | 2.13M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
652 | | // create profile |
653 | 2.13M | _operator_profile = |
654 | 2.13M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
655 | 2.13M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
656 | 2.13M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
657 | | |
658 | | // indentation is true |
659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
660 | | // So we should set the indentation to true. |
661 | 2.13M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
662 | 2.13M | _operator_profile->add_child(_common_profile, true); |
663 | 2.13M | _operator_profile->add_child(_custom_profile, true); |
664 | | |
665 | 2.13M | _operator_profile->set_metadata(_parent->node_id()); |
666 | 2.13M | _wait_for_finish_dependency_timer = |
667 | 2.13M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
668 | 2.13M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
669 | 2.13M | if constexpr (!is_fake_shared) { |
670 | 1.42M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
671 | 1.42M | info.shared_state_map.end()) { |
672 | 337k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
673 | 315k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
674 | 315k | } |
675 | 337k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
676 | 337k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
677 | 337k | ? 0 |
678 | 337k | : info.task_idx] |
679 | 337k | .get(); |
680 | 337k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
681 | 1.08M | } else { |
682 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 18.4E | DCHECK(false); |
684 | 18.4E | } |
685 | 1.08M | _shared_state = info.shared_state->template cast<SharedState>(); |
686 | 1.08M | _dependency = _shared_state->create_sink_dependency( |
687 | 1.08M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
688 | 1.08M | } |
689 | 1.42M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
690 | 1.42M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
691 | 1.42M | } |
692 | | |
693 | 2.13M | if (must_set_shared_state() && _shared_state == nullptr) { |
694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
695 | 0 | } |
696 | | |
697 | 2.13M | _rows_input_counter = |
698 | 2.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
699 | 2.13M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
700 | 2.13M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
701 | 2.13M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
702 | 2.13M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
703 | 2.13M | _memory_used_counter = |
704 | 2.13M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
705 | 2.13M | _common_profile->add_info_string("IsColocate", |
706 | 2.13M | std::to_string(_parent->is_colocated_operator())); |
707 | 2.13M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
708 | 2.13M | _common_profile->add_info_string("FollowedByShuffledOperator", |
709 | 2.13M | std::to_string(_parent->followed_by_shuffled_operator())); |
710 | 2.13M | return Status::OK(); |
711 | 2.13M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 120k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 120k | _operator_profile = | 654 | 120k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 120k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 120k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 120k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 120k | _operator_profile->add_child(_common_profile, true); | 663 | 120k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 120k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 120k | _wait_for_finish_dependency_timer = | 667 | 120k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 120k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 120k | if constexpr (!is_fake_shared) { | 670 | 120k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 120k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 21.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 21.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 21.2k | ? 0 | 678 | 21.2k | : info.task_idx] | 679 | 21.2k | .get(); | 680 | 21.2k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 99.2k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 99.2k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 99.2k | _dependency = _shared_state->create_sink_dependency( | 687 | 99.2k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 99.2k | } | 689 | 120k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 120k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 120k | } | 692 | | | 693 | 120k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 120k | _rows_input_counter = | 698 | 120k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 120k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 120k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 120k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 120k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 120k | _memory_used_counter = | 704 | 120k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 120k | _common_profile->add_info_string("IsColocate", | 706 | 120k | std::to_string(_parent->is_colocated_operator())); | 707 | 120k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 120k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 120k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 120k | return Status::OK(); | 711 | 120k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 2 | _operator_profile = | 654 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 2 | _operator_profile->add_child(_common_profile, true); | 663 | 2 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 2 | _wait_for_finish_dependency_timer = | 667 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 2 | if constexpr (!is_fake_shared) { | 670 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 2 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 2 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 2 | _dependency = _shared_state->create_sink_dependency( | 687 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 2 | } | 689 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 2 | } | 692 | | | 693 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 2 | _rows_input_counter = | 698 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 2 | _memory_used_counter = | 704 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 2 | _common_profile->add_info_string("IsColocate", | 706 | 2 | std::to_string(_parent->is_colocated_operator())); | 707 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 2 | return Status::OK(); | 711 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 279k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 279k | _operator_profile = | 654 | 279k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 279k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 279k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 279k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 279k | _operator_profile->add_child(_common_profile, true); | 663 | 279k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 279k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 279k | _wait_for_finish_dependency_timer = | 667 | 279k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 279k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 279k | if constexpr (!is_fake_shared) { | 670 | 279k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 279k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 279k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 279k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 279k | _dependency = _shared_state->create_sink_dependency( | 687 | 279k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 279k | } | 689 | 279k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 279k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 279k | } | 692 | | | 693 | 279k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 279k | _rows_input_counter = | 698 | 279k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 279k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 279k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 279k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 279k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 279k | _memory_used_counter = | 704 | 279k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 279k | _common_profile->add_info_string("IsColocate", | 706 | 279k | std::to_string(_parent->is_colocated_operator())); | 707 | 279k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 279k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 279k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 279k | return Status::OK(); | 711 | 279k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 30 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 30 | _operator_profile = | 654 | 30 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 30 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 30 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 30 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 30 | _operator_profile->add_child(_common_profile, true); | 663 | 30 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 30 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 30 | _wait_for_finish_dependency_timer = | 667 | 30 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 30 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 30 | if constexpr (!is_fake_shared) { | 670 | 30 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 30 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 30 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 30 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 30 | _dependency = _shared_state->create_sink_dependency( | 687 | 30 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 30 | } | 689 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 30 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 30 | } | 692 | | | 693 | 30 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 30 | _rows_input_counter = | 698 | 30 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 30 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 30 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 30 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 30 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 30 | _memory_used_counter = | 704 | 30 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 30 | _common_profile->add_info_string("IsColocate", | 706 | 30 | std::to_string(_parent->is_colocated_operator())); | 707 | 30 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 30 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 30 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 30 | return Status::OK(); | 711 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 11.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 11.0k | _operator_profile = | 654 | 11.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 11.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 11.0k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 11.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 11.0k | _operator_profile->add_child(_common_profile, true); | 663 | 11.0k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 11.0k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 11.0k | _wait_for_finish_dependency_timer = | 667 | 11.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 11.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 11.0k | if constexpr (!is_fake_shared) { | 670 | 11.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 11.0k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 11.0k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 11.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 11.0k | _dependency = _shared_state->create_sink_dependency( | 687 | 11.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 11.0k | } | 689 | 11.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 11.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 11.0k | } | 692 | | | 693 | 11.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 11.0k | _rows_input_counter = | 698 | 11.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 11.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 11.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 11.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 11.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 11.0k | _memory_used_counter = | 704 | 11.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 11.0k | _common_profile->add_info_string("IsColocate", | 706 | 11.0k | std::to_string(_parent->is_colocated_operator())); | 707 | 11.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 11.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 11.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 11.0k | return Status::OK(); | 711 | 11.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 7.85k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 7.85k | _operator_profile = | 654 | 7.85k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 7.85k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 7.85k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 7.85k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 7.85k | _operator_profile->add_child(_common_profile, true); | 663 | 7.85k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 7.85k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 7.85k | _wait_for_finish_dependency_timer = | 667 | 7.85k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 7.85k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 7.85k | if constexpr (!is_fake_shared) { | 670 | 7.85k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 7.85k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 7.85k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 7.85k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 7.85k | _dependency = _shared_state->create_sink_dependency( | 687 | 7.85k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 7.85k | } | 689 | 7.85k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 7.85k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 7.85k | } | 692 | | | 693 | 7.85k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 7.85k | _rows_input_counter = | 698 | 7.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 7.85k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 7.85k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 7.85k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 7.85k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 7.85k | _memory_used_counter = | 704 | 7.85k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 7.85k | _common_profile->add_info_string("IsColocate", | 706 | 7.85k | std::to_string(_parent->is_colocated_operator())); | 707 | 7.85k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 7.85k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 7.85k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 7.85k | return Status::OK(); | 711 | 7.85k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 162k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 162k | _operator_profile = | 654 | 162k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 162k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 162k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 162k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 162k | _operator_profile->add_child(_common_profile, true); | 663 | 162k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 162k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 162k | _wait_for_finish_dependency_timer = | 667 | 162k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 162k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 162k | if constexpr (!is_fake_shared) { | 670 | 162k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 162k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 162k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 162k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 162k | _dependency = _shared_state->create_sink_dependency( | 687 | 162k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 162k | } | 689 | 162k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 162k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 162k | } | 692 | | | 693 | 162k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 162k | _rows_input_counter = | 698 | 162k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 162k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 162k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 162k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 162k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 162k | _memory_used_counter = | 704 | 162k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 162k | _common_profile->add_info_string("IsColocate", | 706 | 162k | std::to_string(_parent->is_colocated_operator())); | 707 | 162k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 162k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 162k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 162k | return Status::OK(); | 711 | 162k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 516 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 516 | _operator_profile = | 654 | 516 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 516 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 516 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 516 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 516 | _operator_profile->add_child(_common_profile, true); | 663 | 516 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 516 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 516 | _wait_for_finish_dependency_timer = | 667 | 516 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 516 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 516 | if constexpr (!is_fake_shared) { | 670 | 516 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 516 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 515 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 515 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 515 | ? 0 | 678 | 515 | : info.task_idx] | 679 | 515 | .get(); | 680 | 515 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 515 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 1 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 1 | _dependency = _shared_state->create_sink_dependency( | 687 | 1 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 1 | } | 689 | 516 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 516 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 516 | } | 692 | | | 693 | 516 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 516 | _rows_input_counter = | 698 | 516 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 516 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 516 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 516 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 516 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 516 | _memory_used_counter = | 704 | 516 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 516 | _common_profile->add_info_string("IsColocate", | 706 | 516 | std::to_string(_parent->is_colocated_operator())); | 707 | 516 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 516 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 516 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 516 | return Status::OK(); | 711 | 516 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 182 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 182 | _operator_profile = | 654 | 182 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 182 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 182 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 182 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 182 | _operator_profile->add_child(_common_profile, true); | 663 | 182 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 182 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 182 | _wait_for_finish_dependency_timer = | 667 | 182 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 182 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 182 | if constexpr (!is_fake_shared) { | 670 | 182 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 182 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 182 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 182 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 182 | _dependency = _shared_state->create_sink_dependency( | 687 | 182 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 182 | } | 689 | 182 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 182 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 182 | } | 692 | | | 693 | 182 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 182 | _rows_input_counter = | 698 | 182 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 182 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 182 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 182 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 182 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 182 | _memory_used_counter = | 704 | 182 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 182 | _common_profile->add_info_string("IsColocate", | 706 | 182 | std::to_string(_parent->is_colocated_operator())); | 707 | 182 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 182 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 182 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 182 | return Status::OK(); | 711 | 182 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 711k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 711k | _operator_profile = | 654 | 711k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 711k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 711k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 711k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 711k | _operator_profile->add_child(_common_profile, true); | 663 | 711k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 711k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 711k | _wait_for_finish_dependency_timer = | 667 | 711k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 711k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | | if constexpr (!is_fake_shared) { | 670 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | | ? 0 | 678 | | : info.task_idx] | 679 | | .get(); | 680 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | | _dependency = _shared_state->create_sink_dependency( | 687 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | | } | 689 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | | } | 692 | | | 693 | 711k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 711k | _rows_input_counter = | 698 | 711k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 711k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 711k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 711k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 711k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 711k | _memory_used_counter = | 704 | 711k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 711k | _common_profile->add_info_string("IsColocate", | 706 | 711k | std::to_string(_parent->is_colocated_operator())); | 707 | 711k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 711k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 711k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 711k | return Status::OK(); | 711 | 711k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 7.11k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 7.11k | _operator_profile = | 654 | 7.11k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 7.11k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 7.11k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 7.11k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 7.11k | _operator_profile->add_child(_common_profile, true); | 663 | 7.11k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 7.11k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 7.11k | _wait_for_finish_dependency_timer = | 667 | 7.11k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 7.11k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 7.11k | if constexpr (!is_fake_shared) { | 670 | 7.11k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 7.11k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 7.11k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 7.11k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 7.11k | _dependency = _shared_state->create_sink_dependency( | 687 | 7.11k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 7.11k | } | 689 | 7.11k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 7.11k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 7.11k | } | 692 | | | 693 | 7.11k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 7.11k | _rows_input_counter = | 698 | 7.11k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 7.11k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 7.11k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 7.11k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 7.11k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 7.11k | _memory_used_counter = | 704 | 7.11k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 7.11k | _common_profile->add_info_string("IsColocate", | 706 | 7.11k | std::to_string(_parent->is_colocated_operator())); | 707 | 7.11k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 7.11k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 7.11k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 7.11k | return Status::OK(); | 711 | 7.11k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 462 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 462 | _operator_profile = | 654 | 462 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 462 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 462 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 462 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 462 | _operator_profile->add_child(_common_profile, true); | 663 | 462 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 462 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 462 | _wait_for_finish_dependency_timer = | 667 | 462 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 462 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 462 | if constexpr (!is_fake_shared) { | 670 | 462 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 462 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 462 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 462 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 462 | _dependency = _shared_state->create_sink_dependency( | 687 | 462 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 462 | } | 689 | 462 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 462 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 462 | } | 692 | | | 693 | 462 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 462 | _rows_input_counter = | 698 | 462 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 462 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 462 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 462 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 462 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 462 | _memory_used_counter = | 704 | 462 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 462 | _common_profile->add_info_string("IsColocate", | 706 | 462 | std::to_string(_parent->is_colocated_operator())); | 707 | 462 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 462 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 462 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 462 | return Status::OK(); | 711 | 462 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 3.99k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 3.99k | _operator_profile = | 654 | 3.99k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 3.99k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 3.99k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 3.99k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 3.99k | _operator_profile->add_child(_common_profile, true); | 663 | 3.99k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 3.99k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 3.99k | _wait_for_finish_dependency_timer = | 667 | 3.99k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 3.99k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 3.99k | if constexpr (!is_fake_shared) { | 670 | 3.99k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 3.99k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 3.99k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 3.99k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 3.99k | _dependency = _shared_state->create_sink_dependency( | 687 | 3.99k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 3.99k | } | 689 | 3.99k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 3.99k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 3.99k | } | 692 | | | 693 | 3.99k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 3.99k | _rows_input_counter = | 698 | 3.99k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 3.99k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 3.99k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 3.99k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 3.99k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 3.99k | _memory_used_counter = | 704 | 3.99k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 3.99k | _common_profile->add_info_string("IsColocate", | 706 | 3.99k | std::to_string(_parent->is_colocated_operator())); | 707 | 3.99k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 3.99k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 3.99k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 3.99k | return Status::OK(); | 711 | 3.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 12.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 12.6k | _operator_profile = | 654 | 12.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 12.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 12.6k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 12.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 12.6k | _operator_profile->add_child(_common_profile, true); | 663 | 12.6k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 12.6k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 12.6k | _wait_for_finish_dependency_timer = | 667 | 12.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 12.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 12.6k | if constexpr (!is_fake_shared) { | 670 | 12.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 12.6k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 12.6k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 12.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 12.6k | _dependency = _shared_state->create_sink_dependency( | 687 | 12.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 12.6k | } | 689 | 12.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 12.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 12.6k | } | 692 | | | 693 | 12.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 12.6k | _rows_input_counter = | 698 | 12.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 12.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 12.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 12.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 12.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 12.6k | _memory_used_counter = | 704 | 12.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 12.6k | _common_profile->add_info_string("IsColocate", | 706 | 12.6k | std::to_string(_parent->is_colocated_operator())); | 707 | 12.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 12.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 12.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 12.6k | return Status::OK(); | 711 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 315k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 315k | _operator_profile = | 654 | 315k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 315k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 315k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 315k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 315k | _operator_profile->add_child(_common_profile, true); | 663 | 315k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 315k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 315k | _wait_for_finish_dependency_timer = | 667 | 315k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 315k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 315k | if constexpr (!is_fake_shared) { | 670 | 315k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 315k | info.shared_state_map.end()) { | 672 | 315k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | 315k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | 315k | } | 675 | 315k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 315k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 315k | ? 0 | 678 | 315k | : info.task_idx] | 679 | 315k | .get(); | 680 | 315k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 18.4E | } else { | 682 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 18.4E | DCHECK(false); | 684 | 18.4E | } | 685 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 687 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 18.4E | } | 689 | 315k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 315k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 315k | } | 692 | | | 693 | 315k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 315k | _rows_input_counter = | 698 | 315k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 315k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 315k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 315k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 315k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 315k | _memory_used_counter = | 704 | 315k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 315k | _common_profile->add_info_string("IsColocate", | 706 | 315k | std::to_string(_parent->is_colocated_operator())); | 707 | 315k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 315k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 315k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 315k | return Status::OK(); | 711 | 315k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 503k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 503k | _operator_profile = | 654 | 503k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 503k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 503k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 503k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 503k | _operator_profile->add_child(_common_profile, true); | 663 | 503k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 503k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 503k | _wait_for_finish_dependency_timer = | 667 | 503k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 503k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 503k | if constexpr (!is_fake_shared) { | 670 | 503k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 503k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 503k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 503k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 503k | _dependency = _shared_state->create_sink_dependency( | 687 | 503k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 503k | } | 689 | 503k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 503k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 503k | } | 692 | | | 693 | 503k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 503k | _rows_input_counter = | 698 | 503k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 503k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 503k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 503k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 503k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 503k | _memory_used_counter = | 704 | 503k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 503k | _common_profile->add_info_string("IsColocate", | 706 | 503k | std::to_string(_parent->is_colocated_operator())); | 707 | 503k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 503k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 503k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 503k | return Status::OK(); | 711 | 503k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 25 | _operator_profile = | 654 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 25 | _operator_profile->add_child(_common_profile, true); | 663 | 25 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 25 | _wait_for_finish_dependency_timer = | 667 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 25 | if constexpr (!is_fake_shared) { | 670 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 25 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 25 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 25 | _dependency = _shared_state->create_sink_dependency( | 687 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 25 | } | 689 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 25 | } | 692 | | | 693 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 25 | _rows_input_counter = | 698 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 25 | _memory_used_counter = | 704 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 25 | _common_profile->add_info_string("IsColocate", | 706 | 25 | std::to_string(_parent->is_colocated_operator())); | 707 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 25 | return Status::OK(); | 711 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 328 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 328 | _operator_profile = | 654 | 328 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 328 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 328 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 328 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 328 | _operator_profile->add_child(_common_profile, true); | 663 | 328 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 328 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 328 | _wait_for_finish_dependency_timer = | 667 | 328 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 328 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 328 | if constexpr (!is_fake_shared) { | 670 | 328 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 328 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 328 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 328 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 328 | _dependency = _shared_state->create_sink_dependency( | 687 | 328 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 328 | } | 689 | 328 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 328 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 328 | } | 692 | | | 693 | 328 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 328 | _rows_input_counter = | 698 | 328 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 328 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 328 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 328 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 328 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 328 | _memory_used_counter = | 704 | 328 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 328 | _common_profile->add_info_string("IsColocate", | 706 | 328 | std::to_string(_parent->is_colocated_operator())); | 707 | 328 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 328 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 328 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 328 | return Status::OK(); | 711 | 328 | } |
|
712 | | |
713 | | template <typename SharedState> |
714 | 2.13M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
715 | 2.13M | if (_closed) { |
716 | 2 | return Status::OK(); |
717 | 2 | } |
718 | 2.13M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
719 | 1.42M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
720 | 1.42M | } |
721 | 2.13M | _closed = true; |
722 | 2.13M | return Status::OK(); |
723 | 2.13M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 120k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 120k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 120k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 120k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 120k | } | 721 | 120k | _closed = true; | 722 | 120k | return Status::OK(); | 723 | 120k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 1 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 1 | } | 721 | 1 | _closed = true; | 722 | 1 | return Status::OK(); | 723 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 277k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 277k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 277k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 277k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 277k | } | 721 | 277k | _closed = true; | 722 | 277k | return Status::OK(); | 723 | 277k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 21 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 21 | if (_closed) { | 716 | 2 | return Status::OK(); | 717 | 2 | } | 718 | 19 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 19 | } | 721 | 19 | _closed = true; | 722 | 19 | return Status::OK(); | 723 | 21 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 11.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 11.0k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 11.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 11.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 11.0k | } | 721 | 11.0k | _closed = true; | 722 | 11.0k | return Status::OK(); | 723 | 11.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 7.85k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 7.85k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 7.85k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 7.85k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 7.85k | } | 721 | 7.85k | _closed = true; | 722 | 7.85k | return Status::OK(); | 723 | 7.85k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 161k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 161k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 161k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 161k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 161k | } | 721 | 161k | _closed = true; | 722 | 161k | return Status::OK(); | 723 | 161k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 513 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 513 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 513 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 513 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 513 | } | 721 | 513 | _closed = true; | 722 | 513 | return Status::OK(); | 723 | 513 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 170 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 170 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 170 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 170 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 170 | } | 721 | 170 | _closed = true; | 722 | 170 | return Status::OK(); | 723 | 170 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 711k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 711k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | | } | 721 | 711k | _closed = true; | 722 | 711k | return Status::OK(); | 723 | 711k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 7.12k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 7.12k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 7.12k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 7.12k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 7.12k | } | 721 | 7.12k | _closed = true; | 722 | 7.12k | return Status::OK(); | 723 | 7.12k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 362 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 362 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 362 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 362 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 362 | } | 721 | 362 | _closed = true; | 722 | 362 | return Status::OK(); | 723 | 362 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 3.98k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 3.98k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 3.98k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 3.98k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 3.98k | } | 721 | 3.98k | _closed = true; | 722 | 3.98k | return Status::OK(); | 723 | 3.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 12.8k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 12.8k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 12.8k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 12.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 12.8k | } | 721 | 12.8k | _closed = true; | 722 | 12.8k | return Status::OK(); | 723 | 12.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 316k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 316k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 316k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 316k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 316k | } | 721 | 316k | _closed = true; | 722 | 316k | return Status::OK(); | 723 | 316k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 506k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 506k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 506k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 506k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 506k | } | 721 | 506k | _closed = true; | 722 | 506k | return Status::OK(); | 723 | 506k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 14 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 14 | } | 721 | 14 | _closed = true; | 722 | 14 | return Status::OK(); | 723 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 328 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 328 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 328 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 328 | } | 721 | 328 | _closed = true; | 722 | 328 | return Status::OK(); | 723 | 328 | } |
|
724 | | |
725 | | template <typename LocalStateType> |
726 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
727 | 15.6k | bool* eos) { |
728 | 15.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
729 | 15.6k | return pull(state, block, eos); |
730 | 15.6k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 727 | 431 | bool* eos) { | 728 | 431 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 729 | 431 | return pull(state, block, eos); | 730 | 431 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 727 | 15.2k | bool* eos) { | 728 | 15.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 729 | 15.2k | return pull(state, block, eos); | 730 | 15.2k | } |
|
731 | | |
732 | | template <typename LocalStateType> |
733 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
734 | 687k | bool* eos) { |
735 | 687k | auto& local_state = get_local_state(state); |
736 | 687k | if (need_more_input_data(state)) { |
737 | 657k | local_state._child_block->clear_column_data( |
738 | 657k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
739 | 657k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
740 | 657k | state, local_state._child_block.get(), &local_state._child_eos)); |
741 | 657k | *eos = local_state._child_eos; |
742 | 657k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
743 | 57.6k | return Status::OK(); |
744 | 57.6k | } |
745 | 599k | { |
746 | 599k | SCOPED_TIMER(local_state.exec_time_counter()); |
747 | 599k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
748 | 599k | } |
749 | 599k | } |
750 | | |
751 | 630k | if (!need_more_input_data(state)) { |
752 | 576k | SCOPED_TIMER(local_state.exec_time_counter()); |
753 | 576k | bool new_eos = false; |
754 | 576k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
755 | 576k | if (new_eos) { |
756 | 485k | *eos = true; |
757 | 485k | } else if (!need_more_input_data(state)) { |
758 | 24.5k | *eos = false; |
759 | 24.5k | } |
760 | 576k | } |
761 | 630k | return Status::OK(); |
762 | 630k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 146k | bool* eos) { | 735 | 146k | auto& local_state = get_local_state(state); | 736 | 146k | if (need_more_input_data(state)) { | 737 | 128k | local_state._child_block->clear_column_data( | 738 | 128k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 128k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 128k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 128k | *eos = local_state._child_eos; | 742 | 128k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 32.6k | return Status::OK(); | 744 | 32.6k | } | 745 | 96.2k | { | 746 | 96.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 96.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 96.2k | } | 749 | 96.2k | } | 750 | | | 751 | 113k | if (!need_more_input_data(state)) { | 752 | 113k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 113k | bool new_eos = false; | 754 | 113k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 113k | if (new_eos) { | 756 | 48.3k | *eos = true; | 757 | 65.2k | } else if (!need_more_input_data(state)) { | 758 | 10.2k | *eos = false; | 759 | 10.2k | } | 760 | 113k | } | 761 | 113k | return Status::OK(); | 762 | 113k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 4.27k | bool* eos) { | 735 | 4.27k | auto& local_state = get_local_state(state); | 736 | 4.27k | if (need_more_input_data(state)) { | 737 | 2.48k | local_state._child_block->clear_column_data( | 738 | 2.48k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 2.48k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 2.48k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 2.48k | *eos = local_state._child_eos; | 742 | 2.48k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 600 | return Status::OK(); | 744 | 600 | } | 745 | 1.88k | { | 746 | 1.88k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 1.88k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 1.88k | } | 749 | 1.88k | } | 750 | | | 751 | 3.69k | if (!need_more_input_data(state)) { | 752 | 3.69k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 3.69k | bool new_eos = false; | 754 | 3.69k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 3.69k | if (new_eos) { | 756 | 1.37k | *eos = true; | 757 | 2.32k | } else if (!need_more_input_data(state)) { | 758 | 1.79k | *eos = false; | 759 | 1.79k | } | 760 | 3.69k | } | 761 | 3.67k | return Status::OK(); | 762 | 3.67k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 4.95k | bool* eos) { | 735 | 4.95k | auto& local_state = get_local_state(state); | 736 | 4.95k | if (need_more_input_data(state)) { | 737 | 4.95k | local_state._child_block->clear_column_data( | 738 | 4.95k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 4.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 4.95k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 4.95k | *eos = local_state._child_eos; | 742 | 4.95k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 1.72k | return Status::OK(); | 744 | 1.72k | } | 745 | 3.23k | { | 746 | 3.23k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 3.23k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 3.23k | } | 749 | 3.23k | } | 750 | | | 751 | 3.23k | if (!need_more_input_data(state)) { | 752 | 3.23k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 3.23k | bool new_eos = false; | 754 | 3.23k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 3.23k | if (new_eos) { | 756 | 1.74k | *eos = true; | 757 | 1.74k | } else if (!need_more_input_data(state)) { | 758 | 0 | *eos = false; | 759 | 0 | } | 760 | 3.23k | } | 761 | 3.23k | return Status::OK(); | 762 | 3.23k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 39.2k | bool* eos) { | 735 | 39.2k | auto& local_state = get_local_state(state); | 736 | 39.3k | if (need_more_input_data(state)) { | 737 | 39.3k | local_state._child_block->clear_column_data( | 738 | 39.3k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 39.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 39.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 39.3k | *eos = local_state._child_eos; | 742 | 39.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 4.47k | return Status::OK(); | 744 | 4.47k | } | 745 | 34.9k | { | 746 | 34.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 34.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 34.9k | } | 749 | 34.9k | } | 750 | | | 751 | 34.8k | if (!need_more_input_data(state)) { | 752 | 12.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 12.8k | bool new_eos = false; | 754 | 12.8k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 12.8k | if (new_eos) { | 756 | 12.7k | *eos = true; | 757 | 12.7k | } else if (!need_more_input_data(state)) { | 758 | 4 | *eos = false; | 759 | 4 | } | 760 | 12.8k | } | 761 | 34.8k | return Status::OK(); | 762 | 34.8k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 452k | bool* eos) { | 735 | 452k | auto& local_state = get_local_state(state); | 736 | 453k | if (need_more_input_data(state)) { | 737 | 453k | local_state._child_block->clear_column_data( | 738 | 453k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 453k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 453k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 453k | *eos = local_state._child_eos; | 742 | 453k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 15.4k | return Status::OK(); | 744 | 15.4k | } | 745 | 438k | { | 746 | 438k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 438k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 438k | } | 749 | 438k | } | 750 | | | 751 | 437k | if (!need_more_input_data(state)) { | 752 | 406k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 406k | bool new_eos = false; | 754 | 406k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 406k | if (new_eos) { | 756 | 405k | *eos = true; | 757 | 405k | } else if (!need_more_input_data(state)) { | 758 | 0 | *eos = false; | 759 | 0 | } | 760 | 406k | } | 761 | 437k | return Status::OK(); | 762 | 437k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 33.5k | bool* eos) { | 735 | 33.5k | auto& local_state = get_local_state(state); | 736 | 33.5k | if (need_more_input_data(state)) { | 737 | 21.3k | local_state._child_block->clear_column_data( | 738 | 21.3k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 21.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 21.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 21.3k | *eos = local_state._child_eos; | 742 | 21.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 2.43k | return Status::OK(); | 744 | 2.43k | } | 745 | 18.9k | { | 746 | 18.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 18.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 18.9k | } | 749 | 18.9k | } | 750 | | | 751 | 31.0k | if (!need_more_input_data(state)) { | 752 | 30.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 30.4k | bool new_eos = false; | 754 | 30.4k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 30.4k | if (new_eos) { | 756 | 11.0k | *eos = true; | 757 | 19.3k | } else if (!need_more_input_data(state)) { | 758 | 12.1k | *eos = false; | 759 | 12.1k | } | 760 | 30.4k | } | 761 | 31.0k | return Status::OK(); | 762 | 31.0k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 6.83k | bool* eos) { | 735 | 6.83k | auto& local_state = get_local_state(state); | 736 | 6.83k | if (need_more_input_data(state)) { | 737 | 6.48k | local_state._child_block->clear_column_data( | 738 | 6.48k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 6.48k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 6.48k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 6.48k | *eos = local_state._child_eos; | 742 | 6.48k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 392 | return Status::OK(); | 744 | 392 | } | 745 | 6.08k | { | 746 | 6.08k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 6.08k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 6.08k | } | 749 | 6.08k | } | 750 | | | 751 | 6.44k | if (!need_more_input_data(state)) { | 752 | 6.44k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 6.44k | bool new_eos = false; | 754 | 6.44k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 6.44k | if (new_eos) { | 756 | 4.38k | *eos = true; | 757 | 4.38k | } else if (!need_more_input_data(state)) { | 758 | 366 | *eos = false; | 759 | 366 | } | 760 | 6.44k | } | 761 | 6.44k | return Status::OK(); | 762 | 6.44k | } |
|
763 | | |
764 | | template <typename Writer, typename Parent> |
765 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
766 | 69.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
767 | 69.0k | RETURN_IF_ERROR(Base::init(state, info)); |
768 | 69.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
769 | 69.0k | "AsyncWriterDependency", true); |
770 | 69.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
771 | 69.0k | _finish_dependency)); |
772 | | |
773 | 69.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
774 | 69.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
775 | 69.0k | return Status::OK(); |
776 | 69.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 539 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 539 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 539 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 539 | "AsyncWriterDependency", true); | 770 | 539 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 539 | _finish_dependency)); | 772 | | | 773 | 539 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 539 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 539 | return Status::OK(); | 776 | 539 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 86 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 86 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 86 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 86 | "AsyncWriterDependency", true); | 770 | 86 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 86 | _finish_dependency)); | 772 | | | 773 | 86 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 86 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 86 | return Status::OK(); | 776 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 46.9k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 46.9k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 46.9k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 46.9k | "AsyncWriterDependency", true); | 770 | 46.9k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 46.9k | _finish_dependency)); | 772 | | | 773 | 46.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 46.9k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 46.9k | return Status::OK(); | 776 | 46.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 9.58k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 9.58k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 9.58k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 9.58k | "AsyncWriterDependency", true); | 770 | 9.58k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 9.58k | _finish_dependency)); | 772 | | | 773 | 9.58k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 9.58k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 9.58k | return Status::OK(); | 776 | 9.58k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 5.23k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 5.23k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 5.23k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 5.23k | "AsyncWriterDependency", true); | 770 | 5.23k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 5.23k | _finish_dependency)); | 772 | | | 773 | 5.23k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 5.23k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 5.23k | return Status::OK(); | 776 | 5.23k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 4.02k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 4.02k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 4.02k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 4.02k | "AsyncWriterDependency", true); | 770 | 4.02k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 4.02k | _finish_dependency)); | 772 | | | 773 | 4.02k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 4.02k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 4.02k | return Status::OK(); | 776 | 4.02k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 48 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 48 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 48 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 48 | "AsyncWriterDependency", true); | 770 | 48 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 48 | _finish_dependency)); | 772 | | | 773 | 48 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 48 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 48 | return Status::OK(); | 776 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 704 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 704 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 704 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 704 | "AsyncWriterDependency", true); | 770 | 704 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 704 | _finish_dependency)); | 772 | | | 773 | 704 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 704 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 704 | return Status::OK(); | 776 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 1.71k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 1.71k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 1.71k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 1.71k | "AsyncWriterDependency", true); | 770 | 1.71k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 1.71k | _finish_dependency)); | 772 | | | 773 | 1.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 1.71k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 1.71k | return Status::OK(); | 776 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 156 | "AsyncWriterDependency", true); | 770 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 156 | _finish_dependency)); | 772 | | | 773 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 156 | return Status::OK(); | 776 | 156 | } |
|
777 | | |
778 | | template <typename Writer, typename Parent> |
779 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
780 | 69.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
781 | 69.0k | RETURN_IF_ERROR(Base::open(state)); |
782 | 69.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
783 | 601k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
784 | 532k | RETURN_IF_ERROR( |
785 | 532k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
786 | 532k | } |
787 | 69.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
788 | 69.0k | return Status::OK(); |
789 | 69.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 541 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 541 | RETURN_IF_ERROR(Base::open(state)); | 782 | 541 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 2.85k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 2.30k | RETURN_IF_ERROR( | 785 | 2.30k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 2.30k | } | 787 | 541 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 541 | return Status::OK(); | 789 | 541 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 86 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 86 | RETURN_IF_ERROR(Base::open(state)); | 782 | 86 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 402 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 316 | RETURN_IF_ERROR( | 785 | 316 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 316 | } | 787 | 86 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 86 | return Status::OK(); | 789 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 47.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 47.3k | RETURN_IF_ERROR(Base::open(state)); | 782 | 47.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 343k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 295k | RETURN_IF_ERROR( | 785 | 295k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 295k | } | 787 | 47.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 47.3k | return Status::OK(); | 789 | 47.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 9.30k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 9.30k | RETURN_IF_ERROR(Base::open(state)); | 782 | 9.30k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 57.3k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 48.0k | RETURN_IF_ERROR( | 785 | 48.0k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 48.0k | } | 787 | 9.30k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 9.30k | return Status::OK(); | 789 | 9.30k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 5.21k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 5.21k | RETURN_IF_ERROR(Base::open(state)); | 782 | 5.21k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 136k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 131k | RETURN_IF_ERROR( | 785 | 131k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 131k | } | 787 | 5.21k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 5.21k | return Status::OK(); | 789 | 5.21k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 4.02k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 4.02k | RETURN_IF_ERROR(Base::open(state)); | 782 | 4.02k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 44.6k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 40.6k | RETURN_IF_ERROR( | 785 | 40.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 40.6k | } | 787 | 4.02k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 4.02k | return Status::OK(); | 789 | 4.02k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 48 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 48 | RETURN_IF_ERROR(Base::open(state)); | 782 | 48 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 208 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 160 | RETURN_IF_ERROR( | 785 | 160 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 160 | } | 787 | 48 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 48 | return Status::OK(); | 789 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 700 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 700 | RETURN_IF_ERROR(Base::open(state)); | 782 | 700 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 2.09k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 1.39k | RETURN_IF_ERROR( | 785 | 1.39k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 1.39k | } | 787 | 700 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 700 | return Status::OK(); | 789 | 700 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 1.70k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 1.70k | RETURN_IF_ERROR(Base::open(state)); | 782 | 1.70k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 13.3k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 11.6k | RETURN_IF_ERROR( | 785 | 11.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 11.6k | } | 787 | 1.70k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 1.70k | return Status::OK(); | 789 | 1.70k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 156 | RETURN_IF_ERROR(Base::open(state)); | 782 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 630 | RETURN_IF_ERROR( | 785 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 630 | } | 787 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 156 | return Status::OK(); | 789 | 156 | } |
|
790 | | |
791 | | template <typename Writer, typename Parent> |
792 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
793 | 95.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
794 | 95.8k | return _writer->sink(block, eos); |
795 | 95.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 2.81k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 2.81k | return _writer->sink(block, eos); | 795 | 2.81k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 110 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 110 | return _writer->sink(block, eos); | 795 | 110 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 64.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 64.2k | return _writer->sink(block, eos); | 795 | 64.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 11.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 11.0k | return _writer->sink(block, eos); | 795 | 11.0k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 7.66k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 7.66k | return _writer->sink(block, eos); | 795 | 7.66k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 6.54k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 6.54k | return _writer->sink(block, eos); | 795 | 6.54k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 58 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 58 | return _writer->sink(block, eos); | 795 | 58 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 794 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 794 | return _writer->sink(block, eos); | 795 | 794 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 2.18k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 2.18k | return _writer->sink(block, eos); | 795 | 2.18k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 310 | return _writer->sink(block, eos); | 795 | 310 | } |
|
796 | | |
797 | | template <typename Writer, typename Parent> |
798 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
799 | 69.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
800 | 69.3k | if (_closed) { |
801 | 0 | return Status::OK(); |
802 | 0 | } |
803 | 69.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
804 | 69.3k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
805 | | // if the init failed, the _writer may be nullptr. so here need check |
806 | 69.4k | if (_writer) { |
807 | 69.4k | Status st = _writer->get_writer_status(); |
808 | 69.4k | if (exec_status.ok()) { |
809 | 69.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
810 | 69.3k | : Status::Cancelled("force close")); |
811 | 69.3k | } else { |
812 | 110 | _writer->force_close(exec_status); |
813 | 110 | } |
814 | | // If there is an error in process_block thread, then we should get the writer |
815 | | // status before call force_close. For example, the thread may failed in commit |
816 | | // transaction. |
817 | 69.4k | RETURN_IF_ERROR(st); |
818 | 69.4k | } |
819 | 69.2k | return Base::close(state, exec_status); |
820 | 69.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 529 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 529 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 529 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 529 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 529 | if (_writer) { | 807 | 529 | Status st = _writer->get_writer_status(); | 808 | 529 | if (exec_status.ok()) { | 809 | 529 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 529 | : Status::Cancelled("force close")); | 811 | 529 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 529 | RETURN_IF_ERROR(st); | 818 | 529 | } | 819 | 529 | return Base::close(state, exec_status); | 820 | 529 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 86 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 86 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 86 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 86 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 86 | if (_writer) { | 807 | 86 | Status st = _writer->get_writer_status(); | 808 | 86 | if (exec_status.ok()) { | 809 | 86 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 86 | : Status::Cancelled("force close")); | 811 | 86 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 86 | RETURN_IF_ERROR(st); | 818 | 86 | } | 819 | 78 | return Base::close(state, exec_status); | 820 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 47.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 47.3k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 47.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 47.3k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 47.4k | if (_writer) { | 807 | 47.4k | Status st = _writer->get_writer_status(); | 808 | 47.4k | if (exec_status.ok()) { | 809 | 47.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 47.3k | : Status::Cancelled("force close")); | 811 | 47.3k | } else { | 812 | 72 | _writer->force_close(exec_status); | 813 | 72 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 47.4k | RETURN_IF_ERROR(st); | 818 | 47.4k | } | 819 | 47.2k | return Base::close(state, exec_status); | 820 | 47.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 9.50k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 9.50k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 9.50k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 9.50k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 9.57k | if (_writer) { | 807 | 9.57k | Status st = _writer->get_writer_status(); | 808 | 9.57k | if (exec_status.ok()) { | 809 | 9.53k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 9.53k | : Status::Cancelled("force close")); | 811 | 9.53k | } else { | 812 | 38 | _writer->force_close(exec_status); | 813 | 38 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 9.57k | RETURN_IF_ERROR(st); | 818 | 9.57k | } | 819 | 9.50k | return Base::close(state, exec_status); | 820 | 9.50k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 5.22k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 5.22k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 5.22k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 5.22k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 5.23k | if (_writer) { | 807 | 5.23k | Status st = _writer->get_writer_status(); | 808 | 5.23k | if (exec_status.ok()) { | 809 | 5.23k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 5.23k | : Status::Cancelled("force close")); | 811 | 5.23k | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 5.23k | RETURN_IF_ERROR(st); | 818 | 5.23k | } | 819 | 5.22k | return Base::close(state, exec_status); | 820 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 4.01k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 4.01k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 4.01k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 4.01k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 4.02k | if (_writer) { | 807 | 4.02k | Status st = _writer->get_writer_status(); | 808 | 4.02k | if (exec_status.ok()) { | 809 | 4.02k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 4.02k | : Status::Cancelled("force close")); | 811 | 4.02k | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 4.02k | RETURN_IF_ERROR(st); | 818 | 4.02k | } | 819 | 4.01k | return Base::close(state, exec_status); | 820 | 4.01k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 48 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 48 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 48 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 48 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 48 | if (_writer) { | 807 | 48 | Status st = _writer->get_writer_status(); | 808 | 48 | if (exec_status.ok()) { | 809 | 48 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 48 | : Status::Cancelled("force close")); | 811 | 48 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 48 | RETURN_IF_ERROR(st); | 818 | 48 | } | 819 | 48 | return Base::close(state, exec_status); | 820 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 704 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 704 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 704 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 704 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 704 | if (_writer) { | 807 | 704 | Status st = _writer->get_writer_status(); | 808 | 704 | if (exec_status.ok()) { | 809 | 704 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 704 | : Status::Cancelled("force close")); | 811 | 704 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 704 | RETURN_IF_ERROR(st); | 818 | 704 | } | 819 | 704 | return Base::close(state, exec_status); | 820 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 1.71k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 1.71k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 1.71k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 1.71k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 1.71k | if (_writer) { | 807 | 1.71k | Status st = _writer->get_writer_status(); | 808 | 1.71k | if (exec_status.ok()) { | 809 | 1.71k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 1.71k | : Status::Cancelled("force close")); | 811 | 1.71k | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 1.71k | RETURN_IF_ERROR(st); | 818 | 1.71k | } | 819 | 1.71k | return Base::close(state, exec_status); | 820 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 156 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 156 | if (_writer) { | 807 | 156 | Status st = _writer->get_writer_status(); | 808 | 156 | if (exec_status.ok()) { | 809 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 156 | : Status::Cancelled("force close")); | 811 | 156 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 156 | RETURN_IF_ERROR(st); | 818 | 156 | } | 819 | 156 | return Base::close(state, exec_status); | 820 | 156 | } |
|
821 | | |
822 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
823 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
824 | | DECLARE_OPERATOR(ResultSinkLocalState) |
825 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
826 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
827 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
828 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
829 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
830 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
831 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
832 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
833 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
834 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
835 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
836 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
837 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
838 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
839 | | DECLARE_OPERATOR(SortSinkLocalState) |
840 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
841 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
842 | | DECLARE_OPERATOR(AggSinkLocalState) |
843 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
844 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
845 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
846 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
847 | | DECLARE_OPERATOR(UnionSinkLocalState) |
848 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
849 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
850 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
851 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
852 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
853 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
854 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
855 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
856 | | DECLARE_OPERATOR(CacheSinkLocalState) |
857 | | DECLARE_OPERATOR(DictSinkLocalState) |
858 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
859 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
860 | | |
861 | | #undef DECLARE_OPERATOR |
862 | | |
863 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
864 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
865 | | DECLARE_OPERATOR(OlapScanLocalState) |
866 | | DECLARE_OPERATOR(GroupCommitLocalState) |
867 | | DECLARE_OPERATOR(JDBCScanLocalState) |
868 | | DECLARE_OPERATOR(FileScanLocalState) |
869 | | DECLARE_OPERATOR(AnalyticLocalState) |
870 | | DECLARE_OPERATOR(SortLocalState) |
871 | | DECLARE_OPERATOR(SpillSortLocalState) |
872 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
873 | | DECLARE_OPERATOR(AggLocalState) |
874 | | DECLARE_OPERATOR(BucketedAggLocalState) |
875 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
876 | | DECLARE_OPERATOR(TableFunctionLocalState) |
877 | | DECLARE_OPERATOR(ExchangeLocalState) |
878 | | DECLARE_OPERATOR(RepeatLocalState) |
879 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
880 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
881 | | DECLARE_OPERATOR(EmptySetLocalState) |
882 | | DECLARE_OPERATOR(UnionSourceLocalState) |
883 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
884 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
885 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
886 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
887 | | DECLARE_OPERATOR(DataGenLocalState) |
888 | | DECLARE_OPERATOR(SchemaScanLocalState) |
889 | | DECLARE_OPERATOR(MetaScanLocalState) |
890 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
891 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
892 | | DECLARE_OPERATOR(CacheSourceLocalState) |
893 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
894 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
895 | | |
896 | | #ifdef BE_TEST |
897 | | DECLARE_OPERATOR(MockLocalState) |
898 | | DECLARE_OPERATOR(MockScanLocalState) |
899 | | #endif |
900 | | #undef DECLARE_OPERATOR |
901 | | |
902 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
903 | | template class StreamingOperatorX<SelectLocalState>; |
904 | | |
905 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
906 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
907 | | template class StatefulOperatorX<RepeatLocalState>; |
908 | | template class StatefulOperatorX<MaterializationLocalState>; |
909 | | template class StatefulOperatorX<StreamingAggLocalState>; |
910 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
911 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
912 | | template class StatefulOperatorX<TableFunctionLocalState>; |
913 | | |
914 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
915 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
916 | | template class PipelineXSinkLocalState<SortSharedState>; |
917 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
918 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
919 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
920 | | template class PipelineXSinkLocalState<AggSharedState>; |
921 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
922 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
923 | | template class PipelineXSinkLocalState<FakeSharedState>; |
924 | | template class PipelineXSinkLocalState<UnionSharedState>; |
925 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
926 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
927 | | template class PipelineXSinkLocalState<SetSharedState>; |
928 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
929 | | template class PipelineXSinkLocalState<BasicSharedState>; |
930 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
931 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
932 | | |
933 | | template class PipelineXLocalState<HashJoinSharedState>; |
934 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
935 | | template class PipelineXLocalState<SortSharedState>; |
936 | | template class PipelineXLocalState<SpillSortSharedState>; |
937 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
938 | | template class PipelineXLocalState<AnalyticSharedState>; |
939 | | template class PipelineXLocalState<AggSharedState>; |
940 | | template class PipelineXLocalState<BucketedAggSharedState>; |
941 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
942 | | template class PipelineXLocalState<FakeSharedState>; |
943 | | template class PipelineXLocalState<UnionSharedState>; |
944 | | template class PipelineXLocalState<DataQueueSharedState>; |
945 | | template class PipelineXLocalState<MultiCastSharedState>; |
946 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
947 | | template class PipelineXLocalState<SetSharedState>; |
948 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
949 | | template class PipelineXLocalState<BasicSharedState>; |
950 | | template class PipelineXLocalState<RecCTESharedState>; |
951 | | |
952 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
953 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
954 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
955 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
956 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
957 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
958 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
959 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
960 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
961 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
962 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
963 | | |
964 | | #ifdef BE_TEST |
965 | | template class OperatorX<DummyOperatorLocalState>; |
966 | | template class DataSinkOperatorX<DummySinkLocalState>; |
967 | | #endif |
968 | | |
969 | | } // namespace doris |