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