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