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