be/src/exec/operator/operator.cpp
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #include "exec/operator/operator.h" |
19 | | |
20 | | #include <algorithm> |
21 | | |
22 | | #include "common/status.h" |
23 | | #include "exec/common/util.hpp" |
24 | | #include "exec/exchange/local_exchange_sink_operator.h" |
25 | | #include "exec/exchange/local_exchange_source_operator.h" |
26 | | #include "exec/operator/aggregation_sink_operator.h" |
27 | | #include "exec/operator/aggregation_source_operator.h" |
28 | | #include "exec/operator/analytic_sink_operator.h" |
29 | | #include "exec/operator/analytic_source_operator.h" |
30 | | #include "exec/operator/assert_num_rows_operator.h" |
31 | | #include "exec/operator/blackhole_sink_operator.h" |
32 | | #include "exec/operator/bucketed_aggregation_sink_operator.h" |
33 | | #include "exec/operator/bucketed_aggregation_source_operator.h" |
34 | | #include "exec/operator/cache_sink_operator.h" |
35 | | #include "exec/operator/cache_source_operator.h" |
36 | | #include "exec/operator/datagen_operator.h" |
37 | | #include "exec/operator/dict_sink_operator.h" |
38 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
39 | | #include "exec/operator/empty_set_operator.h" |
40 | | #include "exec/operator/exchange_sink_operator.h" |
41 | | #include "exec/operator/exchange_source_operator.h" |
42 | | #include "exec/operator/file_scan_operator.h" |
43 | | #include "exec/operator/group_commit_block_sink_operator.h" |
44 | | #include "exec/operator/group_commit_scan_operator.h" |
45 | | #include "exec/operator/hashjoin_build_sink.h" |
46 | | #include "exec/operator/hashjoin_probe_operator.h" |
47 | | #include "exec/operator/hive_table_sink_operator.h" |
48 | | #include "exec/operator/iceberg_delete_sink_operator.h" |
49 | | #include "exec/operator/iceberg_merge_sink_operator.h" |
50 | | #include "exec/operator/iceberg_table_sink_operator.h" |
51 | | #include "exec/operator/jdbc_scan_operator.h" |
52 | | #include "exec/operator/jdbc_table_sink_operator.h" |
53 | | #include "exec/operator/local_merge_sort_source_operator.h" |
54 | | #include "exec/operator/materialization_opertor.h" |
55 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
56 | | #include "exec/operator/memory_scratch_sink_operator.h" |
57 | | #include "exec/operator/meta_scan_operator.h" |
58 | | #include "exec/operator/mock_operator.h" |
59 | | #include "exec/operator/mock_scan_operator.h" |
60 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
61 | | #include "exec/operator/multi_cast_data_stream_source.h" |
62 | | #include "exec/operator/nested_loop_join_build_operator.h" |
63 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
64 | | #include "exec/operator/olap_scan_operator.h" |
65 | | #include "exec/operator/olap_table_sink_operator.h" |
66 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
67 | | #include "exec/operator/partition_sort_sink_operator.h" |
68 | | #include "exec/operator/partition_sort_source_operator.h" |
69 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
70 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
71 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
72 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
73 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_scan_operator.h" |
75 | | #include "exec/operator/rec_cte_sink_operator.h" |
76 | | #include "exec/operator/rec_cte_source_operator.h" |
77 | | #include "exec/operator/repeat_operator.h" |
78 | | #include "exec/operator/result_file_sink_operator.h" |
79 | | #include "exec/operator/result_sink_operator.h" |
80 | | #include "exec/operator/schema_scan_operator.h" |
81 | | #include "exec/operator/select_operator.h" |
82 | | #include "exec/operator/set_probe_sink_operator.h" |
83 | | #include "exec/operator/set_sink_operator.h" |
84 | | #include "exec/operator/set_source_operator.h" |
85 | | #include "exec/operator/sort_sink_operator.h" |
86 | | #include "exec/operator/sort_source_operator.h" |
87 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
88 | | #include "exec/operator/spill_sort_sink_operator.h" |
89 | | #include "exec/operator/spill_sort_source_operator.h" |
90 | | #include "exec/operator/streaming_aggregation_operator.h" |
91 | | #include "exec/operator/table_function_operator.h" |
92 | | #include "exec/operator/tvf_table_sink_operator.h" |
93 | | #include "exec/operator/union_sink_operator.h" |
94 | | #include "exec/operator/union_source_operator.h" |
95 | | #include "exec/pipeline/dependency.h" |
96 | | #include "exec/pipeline/pipeline.h" |
97 | | #include "exprs/vexpr.h" |
98 | | #include "exprs/vexpr_context.h" |
99 | | #include "runtime/runtime_profile.h" |
100 | | #include "runtime/runtime_profile_counter_names.h" |
101 | | #include "util/debug_util.h" |
102 | | #include "util/string_util.h" |
103 | | |
104 | | namespace doris { |
105 | | class RowDescriptor; |
106 | | class RuntimeState; |
107 | | } // namespace doris |
108 | | |
109 | | namespace doris { |
110 | | |
111 | 0 | Status OperatorBase::close(RuntimeState* state) { |
112 | 0 | if (_is_closed) { |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | 0 | _is_closed = true; |
116 | 0 | return Status::OK(); |
117 | 0 | } |
118 | | |
119 | | template <typename SharedStateArg> |
120 | 1.96M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.96M | if (_parent->nereids_id() == -1) { |
122 | 1.03M | return fmt::format("(id={})", _parent->node_id()); |
123 | 1.03M | } else { |
124 | 928k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 928k | } |
126 | 1.96M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 69.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 69.2k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 69.2k | } else { | 124 | 69.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 69.2k | } | 126 | 69.2k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 1 | if (_parent->nereids_id() == -1) { | 122 | 1 | return fmt::format("(id={})", _parent->node_id()); | 123 | 1 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 225k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 225k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 225k | } else { | 124 | 225k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 225k | } | 126 | 225k | } |
_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 | 6.24k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.24k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 6.24k | } else { | 124 | 6.24k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 6.24k | } | 126 | 6.24k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 9.31k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 9.31k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 9.30k | } else { | 124 | 9.30k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 9.30k | } | 126 | 9.31k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 88.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 88.1k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 88.1k | } else { | 124 | 88.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 88.1k | } | 126 | 88.1k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 81.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 81.9k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 81.9k | } else { | 124 | 81.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 81.9k | } | 126 | 81.9k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 142 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 142 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 142 | } else { | 124 | 142 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 142 | } | 126 | 142 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 705k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 705k | if (_parent->nereids_id() == -1) { | 122 | 315k | return fmt::format("(id={})", _parent->node_id()); | 123 | 389k | } else { | 124 | 389k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 389k | } | 126 | 705k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 53.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 53.8k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 53.8k | } else { | 124 | 53.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 53.8k | } | 126 | 53.8k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.24k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.24k | if (_parent->nereids_id() == -1) { | 122 | 5.24k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 5.24k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 401 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 401 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 299 | } else { | 124 | 299 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 299 | } | 126 | 401 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.93k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.93k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.91k | } else { | 124 | 4.91k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.91k | } | 126 | 4.93k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 716k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 717k | if (_parent->nereids_id() == -1) { | 122 | 717k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 716k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 169 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 169 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 169 | } else { | 124 | 169 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 169 | } | 126 | 169 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.29M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.29M | if (_parent->nereids_id() == -1) { |
131 | 752k | return fmt::format("(id={})", _parent->node_id()); |
132 | 752k | } else { |
133 | 539k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 539k | } |
135 | 1.29M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 117k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 117k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 117k | } else { | 133 | 117k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 117k | } | 135 | 117k | } |
_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 | 227k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 227k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 227k | } else { | 133 | 227k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 227k | } | 135 | 227k | } |
_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 | 6.29k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.29k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.29k | } else { | 133 | 6.29k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.29k | } | 135 | 6.29k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 9.45k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 9.45k | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 9.44k | } else { | 133 | 9.44k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 9.44k | } | 135 | 9.45k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 88.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 88.7k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 88.7k | } else { | 133 | 88.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 88.7k | } | 135 | 88.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 81.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 81.3k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 81.3k | } else { | 133 | 81.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 81.3k | } | 135 | 81.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 152 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 152 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 152 | } else { | 133 | 152 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 152 | } | 135 | 152 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 43 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 45 | if (_parent->nereids_id() == -1) { | 131 | 45 | 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 | 43 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.59k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.59k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.59k | } else { | 133 | 8.59k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.59k | } | 135 | 8.59k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 403 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 403 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 301 | } else { | 133 | 301 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 301 | } | 135 | 403 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.4k | if (_parent->nereids_id() == -1) { | 131 | 12.4k | 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.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 283k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 284k | if (_parent->nereids_id() == -1) { | 131 | 284k | 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 | 283k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 454k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 455k | if (_parent->nereids_id() == -1) { | 131 | 455k | 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 | 454k | } |
_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 | 338 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 338 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 338 | } else { | 133 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 338 | } | 135 | 338 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 29.9k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 29.9k | if (_terminated) { |
140 | 1 | return Status::OK(); |
141 | 1 | } |
142 | 29.9k | _terminated = true; |
143 | 29.9k | return Status::OK(); |
144 | 29.9k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.04k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.04k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.04k | _terminated = true; | 143 | 2.04k | return Status::OK(); | 144 | 2.04k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 4 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 4 | _terminated = true; | 143 | 4 | return Status::OK(); | 144 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 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_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.81k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.81k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.81k | _terminated = true; | 143 | 1.81k | return Status::OK(); | 144 | 1.81k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 531 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 531 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 531 | _terminated = true; | 143 | 531 | return Status::OK(); | 144 | 531 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 747 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 747 | if (_terminated) { | 140 | 1 | return Status::OK(); | 141 | 1 | } | 142 | 746 | _terminated = true; | 143 | 746 | return Status::OK(); | 144 | 747 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 209 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 209 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 209 | _terminated = true; | 143 | 209 | return Status::OK(); | 144 | 209 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 6 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 6 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 6 | _terminated = true; | 143 | 6 | return Status::OK(); | 144 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 189 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 189 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 189 | _terminated = true; | 143 | 189 | return Status::OK(); | 144 | 189 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 8 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 8 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 8 | _terminated = true; | 143 | 8 | return Status::OK(); | 144 | 8 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 199 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 199 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 199 | _terminated = true; | 143 | 199 | return Status::OK(); | 144 | 199 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 132 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 132 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 132 | _terminated = true; | 143 | 132 | return Status::OK(); | 144 | 132 | } |
|
145 | | |
146 | 316k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 316k | return _child && _child->is_serial_operator() && !is_source() |
148 | 316k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 316k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 316k | } |
151 | | |
152 | 27.1k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 27.1k | if (!_child) { |
154 | 26.0k | return false; |
155 | 26.0k | } |
156 | 1.19k | if (_child->is_serial_operator()) { |
157 | 147 | return true; |
158 | 147 | } |
159 | 1.04k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 1.04k | return child_distribution.need_local_exchange() && |
161 | 1.04k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.19k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 20.1k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 20.1k | fmt::memory_buffer debug_string_buffer; |
167 | 20.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 20.1k | return fmt::to_string(debug_string_buffer); |
169 | 20.1k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 3 | fmt::memory_buffer debug_string_buffer; | 167 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 3 | return fmt::to_string(debug_string_buffer); | 169 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 20.1k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 20.1k | fmt::memory_buffer debug_string_buffer; | 167 | 20.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 20.1k | return fmt::to_string(debug_string_buffer); | 169 | 20.1k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 1 | fmt::memory_buffer debug_string_buffer; | 167 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 1 | return fmt::to_string(debug_string_buffer); | 169 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 20.1k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 20.1k | fmt::memory_buffer debug_string_buffer; |
174 | 20.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 20.1k | return fmt::to_string(debug_string_buffer); |
176 | 20.1k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 20.1k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 20.1k | fmt::memory_buffer debug_string_buffer; | 174 | 20.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 20.1k | return fmt::to_string(debug_string_buffer); | 176 | 20.1k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 20.1k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 20.1k | fmt::memory_buffer debug_string_buffer; |
180 | 20.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 20.1k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 20.1k | _is_serial_operator); |
183 | 20.1k | return fmt::to_string(debug_string_buffer); |
184 | 20.1k | } |
185 | | |
186 | 20.1k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 20.1k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 20.1k | } |
189 | | |
190 | 668k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 668k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 668k | _nereids_id = tnode.nereids_id; |
193 | 668k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.87k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.87k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.87k | tnode.intermediate_projections_list.size()) { |
199 | 0 | return Status::InternalError( |
200 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
201 | 0 | "intermediate_projections_list size:{}", |
202 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
203 | 0 | tnode.intermediate_projections_list.size()); |
204 | 0 | } |
205 | 3.87k | } |
206 | 668k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 668k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 668k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 668k | } else if (tnode.__isset.conjuncts) { |
212 | 272k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 272k | VExprContextSPtr context; |
214 | 272k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 272k | _conjuncts.emplace_back(context); |
216 | 272k | } |
217 | 98.7k | } |
218 | | |
219 | | // create the projections expr |
220 | 668k | if (tnode.__isset.projections) { |
221 | 260k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 260k | } |
223 | 668k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.87k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.87k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 6.56k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 6.56k | VExprContextSPtrs projections; |
228 | 6.56k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 6.56k | _projection->intermediate_projections.push_back(projections); |
230 | 6.56k | } |
231 | 3.87k | } |
232 | 668k | return Status::OK(); |
233 | 668k | } |
234 | | |
235 | 695k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 695k | for (auto& conjunct : _conjuncts) { |
237 | 272k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 272k | } |
239 | 695k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 645k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 338k | return a->execute_cost() < b->execute_cost(); |
242 | 338k | }); |
243 | 645k | }; |
244 | | |
245 | 695k | if (has_projection()) { |
246 | 259k | auto& projection = *_projection; |
247 | 266k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 6.56k | const auto& input_row_desc = |
249 | 6.56k | i == 0 ? operator_row_desc_before_projection() |
250 | 6.56k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 6.56k | RETURN_IF_ERROR( |
252 | 6.56k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 6.56k | } |
254 | 259k | const auto& final_projection_input_row_desc = |
255 | 259k | projection.intermediate_output_row_descriptors.empty() |
256 | 259k | ? operator_row_desc_before_projection() |
257 | 259k | : projection.intermediate_output_row_descriptors.back(); |
258 | 259k | RETURN_IF_ERROR( |
259 | 259k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 259k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 259k | projection.output_row_descriptor)); |
262 | 259k | } |
263 | | |
264 | 695k | for (auto& conjunct : _conjuncts) { |
265 | 272k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 272k | } |
267 | 695k | if (has_projection()) { |
268 | 259k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 259k | for (auto& projections : _projection->intermediate_projections) { |
270 | 6.56k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 6.56k | } |
272 | 259k | } |
273 | 695k | if (_child && !is_source()) { |
274 | 103k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 103k | } |
276 | | |
277 | 695k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 695k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 695k | return Status::OK(); |
283 | 695k | } |
284 | | |
285 | 6.70k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 6.70k | if (_child && !is_source()) { |
287 | 777 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 777 | } |
289 | 6.70k | auto result = state->get_local_state_result(operator_id()); |
290 | 6.70k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 6.70k | return result.value()->terminate(state); |
294 | 6.70k | } |
295 | | |
296 | 5.31M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 5.31M | if (_child && !is_source()) { |
298 | 911k | RETURN_IF_ERROR(_child->close(state)); |
299 | 911k | } |
300 | 5.31M | auto result = state->get_local_state_result(operator_id()); |
301 | 5.31M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 5.31M | return result.value()->close(state); |
305 | 5.31M | } |
306 | | |
307 | 290k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 290k | _origin_block.clear_column_data( |
309 | 290k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 290k | } |
311 | | |
312 | 960k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 960k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 960k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 960k | return Status::OK(); |
317 | 960k | } |
318 | | |
319 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
320 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
321 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
322 | 0 | } |
323 | | |
324 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
325 | 290k | Block* output_block) const { |
326 | 290k | auto* local_state = state->get_local_state(operator_id()); |
327 | 290k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 290k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 290k | const size_t rows = origin_block->rows(); |
330 | 290k | if (rows == 0) { |
331 | 153k | return Status::OK(); |
332 | 153k | } |
333 | 136k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 136k | { |
336 | 136k | Block input_block = *origin_block; |
337 | | |
338 | 136k | ColumnsWithTypeAndName new_columns; |
339 | 136k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 3.65k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 3.65k | new_columns.resize(projections.size()); |
345 | 71.0k | for (int i = 0; i < projections.size(); i++) { |
346 | 67.4k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 67.4k | if (new_columns[i].column->size() != rows) { |
348 | 0 | return Status::InternalError( |
349 | 0 | "intermediate projection result column size {} not equal input rows " |
350 | 0 | "{}, expr: {}", |
351 | 0 | new_columns[i].column->size(), rows, |
352 | 0 | projections[i]->root()->debug_string()); |
353 | 0 | } |
354 | 67.4k | } |
355 | 3.64k | Block tmp_block {new_columns}; |
356 | 3.64k | input_block.swap(tmp_block); |
357 | 3.64k | } |
358 | | |
359 | 136k | if (input_block.rows() != rows) { |
360 | 0 | return Status::InternalError( |
361 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
362 | 0 | "input_block: {}", |
363 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
364 | 0 | } |
365 | | |
366 | 136k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 136k | output_block, _projection->output_row_descriptor); |
368 | 136k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 136k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 136k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 787k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 650k | ColumnPtr column_ptr; |
374 | 650k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 650k | if (column_ptr->size() != rows) { |
376 | 0 | return Status::InternalError( |
377 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
378 | 0 | column_ptr->size(), rows, |
379 | 0 | local_state->_projections[i]->root()->debug_string()); |
380 | 0 | } |
381 | 650k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 650k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 650k | if (column_ptr->is_exclusive()) { |
386 | 229k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 421k | } else { |
388 | 421k | shared_columns[i] = std::move(column_ptr); |
389 | 421k | } |
390 | 650k | } |
391 | | |
392 | 136k | scoped_mutable_block.restore(); |
393 | 787k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 650k | if (shared_columns[i]) { |
395 | 421k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 421k | } |
397 | 650k | } |
398 | 136k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 136k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 136k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 136k | return Status::OK(); |
405 | 136k | } |
406 | | |
407 | 4.70M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.70M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.70M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.70M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.70M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.70M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.70M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.70M | return Status::OK(); |
415 | 4.70M | } |
416 | 4.70M | } |
417 | 4.70M | }); |
418 | | |
419 | 4.70M | Status status; |
420 | 4.70M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.70M | Defer defer([&]() { |
422 | 4.70M | if (status.ok()) { |
423 | 4.70M | local_state->update_output_block_counters(*block); |
424 | 4.70M | } |
425 | 4.70M | }); |
426 | 4.70M | if (has_projection()) { |
427 | 290k | local_state->clear_origin_block(); |
428 | 290k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 290k | if (UNLIKELY(!status.ok())) { |
430 | 27 | return status; |
431 | 27 | } |
432 | 290k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 290k | return status; |
434 | 290k | } |
435 | 4.41M | status = get_block(state, block, eos); |
436 | 4.41M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 4.41M | return status; |
438 | 4.41M | } |
439 | | |
440 | 2.98M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.98M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.55k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.55k | *eos = true; |
444 | 9.55k | } |
445 | | |
446 | 2.98M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.98M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.98M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.98M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.98M | if (op_name == arg_op_name) { |
452 | 2.98M | *eos = true; |
453 | 2.98M | } |
454 | 2.98M | }); |
455 | | |
456 | 2.98M | if (auto rows = block->rows()) { |
457 | 765k | _num_rows_returned += rows; |
458 | 765k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 765k | } |
460 | 2.98M | } |
461 | | |
462 | 29.9k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 29.9k | auto result = state->get_sink_local_state_result(); |
464 | 29.9k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 29.9k | return result.value()->terminate(state); |
468 | 29.9k | } |
469 | | |
470 | 20.1k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 20.1k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 20.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 20.1k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 20.1k | return fmt::to_string(debug_string_buffer); |
476 | 20.1k | } |
477 | | |
478 | 20.1k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 20.1k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 20.1k | } |
481 | | |
482 | 342k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 342k | std::string op_name = "UNKNOWN_SINK"; |
484 | 342k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 343k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 343k | op_name = it->second; |
488 | 343k | } |
489 | 342k | _name = op_name + "_OPERATOR"; |
490 | 342k | return Status::OK(); |
491 | 342k | } |
492 | | |
493 | 296k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 296k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 296k | _nereids_id = tnode.nereids_id; |
496 | 296k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 296k | _name = substr + "_SINK_OPERATOR"; |
498 | 296k | return Status::OK(); |
499 | 296k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.83M | LocalSinkStateInfo& info) { |
504 | 1.83M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.83M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.83M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.83M | return Status::OK(); |
508 | 1.83M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 117k | LocalSinkStateInfo& info) { | 504 | 117k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 117k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 117k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 117k | return Status::OK(); | 508 | 117k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 410k | LocalSinkStateInfo& info) { | 504 | 410k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 410k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 410k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 410k | return Status::OK(); | 508 | 410k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3 | LocalSinkStateInfo& info) { | 504 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3 | return Status::OK(); | 508 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 356 | LocalSinkStateInfo& info) { | 504 | 356 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 356 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 356 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 356 | return Status::OK(); | 508 | 356 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 46.3k | LocalSinkStateInfo& info) { | 504 | 46.3k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 46.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 46.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 46.3k | return Status::OK(); | 508 | 46.3k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 30 | LocalSinkStateInfo& info) { | 504 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 30 | return Status::OK(); | 508 | 30 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 9.49k | LocalSinkStateInfo& info) { | 504 | 9.49k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9.49k | return Status::OK(); | 508 | 9.49k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 40 | LocalSinkStateInfo& info) { | 504 | 40 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 40 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 40 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 40 | return Status::OK(); | 508 | 40 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 227k | LocalSinkStateInfo& info) { | 504 | 227k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 227k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 227k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 227k | return Status::OK(); | 508 | 227k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 34 | LocalSinkStateInfo& info) { | 504 | 34 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 34 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 34 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 34 | return Status::OK(); | 508 | 34 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 283k | LocalSinkStateInfo& info) { | 504 | 283k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 283k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 283k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 283k | return Status::OK(); | 508 | 283k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 88.7k | LocalSinkStateInfo& info) { | 504 | 88.7k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 88.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 88.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 88.7k | return Status::OK(); | 508 | 88.7k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 81.0k | LocalSinkStateInfo& info) { | 504 | 81.0k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 81.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 81.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 81.0k | return Status::OK(); | 508 | 81.0k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 152 | LocalSinkStateInfo& info) { | 504 | 152 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 152 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 152 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 152 | return Status::OK(); | 508 | 152 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 543k | LocalSinkStateInfo& info) { | 504 | 543k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 543k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 543k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 543k | return Status::OK(); | 508 | 543k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.28k | LocalSinkStateInfo& info) { | 504 | 6.28k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.28k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.28k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.28k | return Status::OK(); | 508 | 6.28k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.59k | LocalSinkStateInfo& info) { | 504 | 8.59k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.59k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.59k | return Status::OK(); | 508 | 8.59k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.08k | LocalSinkStateInfo& info) { | 504 | 2.08k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.08k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.08k | return Status::OK(); | 508 | 2.08k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 301 | LocalSinkStateInfo& info) { | 504 | 301 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 301 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 301 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 301 | return Status::OK(); | 508 | 301 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.80k | LocalSinkStateInfo& info) { | 504 | 4.80k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.80k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.80k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.80k | return Status::OK(); | 508 | 4.80k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.54k | LocalSinkStateInfo& info) { | 504 | 2.54k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.54k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.54k | return Status::OK(); | 508 | 2.54k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.60k | LocalSinkStateInfo& info) { | 504 | 2.60k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.60k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.60k | return Status::OK(); | 508 | 2.60k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.45k | LocalSinkStateInfo& info) { | 504 | 2.45k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.45k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.45k | return Status::OK(); | 508 | 2.45k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1 | LocalSinkStateInfo& info) { | 504 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1 | return Status::OK(); | 508 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 567 | LocalSinkStateInfo& info) { | 504 | 567 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 567 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 567 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 567 | return Status::OK(); | 508 | 567 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 106 | LocalSinkStateInfo& info) { | 504 | 106 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 106 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 106 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 106 | return Status::OK(); | 508 | 106 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.44M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
513 | 0 | LocalExchangeSharedState>) { |
514 | 0 | return nullptr; |
515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
516 | 0 | MultiCastSharedState>) { |
517 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
518 | 1.44M | } else { |
519 | 1.44M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.44M | ss->id = operator_id(); |
521 | 1.44M | for (auto& dest : dests_id()) { |
522 | 1.44M | ss->related_op_ids.insert(dest); |
523 | 1.44M | } |
524 | 1.44M | return ss; |
525 | 1.44M | } |
526 | 1.44M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 102k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 102k | } else { | 519 | 102k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 102k | ss->id = operator_id(); | 521 | 102k | for (auto& dest : dests_id()) { | 522 | 102k | ss->related_op_ids.insert(dest); | 523 | 102k | } | 524 | 102k | return ss; | 525 | 102k | } | 526 | 102k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 411k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 411k | } else { | 519 | 411k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 411k | ss->id = operator_id(); | 521 | 411k | for (auto& dest : dests_id()) { | 522 | 410k | ss->related_op_ids.insert(dest); | 523 | 410k | } | 524 | 411k | return ss; | 525 | 411k | } | 526 | 411k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 3 | } else { | 519 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 3 | ss->id = operator_id(); | 521 | 3 | for (auto& dest : dests_id()) { | 522 | 3 | ss->related_op_ids.insert(dest); | 523 | 3 | } | 524 | 3 | return ss; | 525 | 3 | } | 526 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 356 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 356 | } else { | 519 | 356 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 356 | ss->id = operator_id(); | 521 | 356 | for (auto& dest : dests_id()) { | 522 | 356 | ss->related_op_ids.insert(dest); | 523 | 356 | } | 524 | 356 | return ss; | 525 | 356 | } | 526 | 356 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 46.4k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 46.4k | } else { | 519 | 46.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 46.4k | ss->id = operator_id(); | 521 | 46.4k | for (auto& dest : dests_id()) { | 522 | 46.1k | ss->related_op_ids.insert(dest); | 523 | 46.1k | } | 524 | 46.4k | return ss; | 525 | 46.4k | } | 526 | 46.4k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 30 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 30 | } else { | 519 | 30 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 30 | ss->id = operator_id(); | 521 | 30 | for (auto& dest : dests_id()) { | 522 | 30 | ss->related_op_ids.insert(dest); | 523 | 30 | } | 524 | 30 | return ss; | 525 | 30 | } | 526 | 30 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 9.57k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 9.57k | } else { | 519 | 9.57k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 9.57k | ss->id = operator_id(); | 521 | 9.57k | for (auto& dest : dests_id()) { | 522 | 9.56k | ss->related_op_ids.insert(dest); | 523 | 9.56k | } | 524 | 9.57k | return ss; | 525 | 9.57k | } | 526 | 9.57k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 46 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 46 | } else { | 519 | 46 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 46 | ss->id = operator_id(); | 521 | 48 | for (auto& dest : dests_id()) { | 522 | 48 | ss->related_op_ids.insert(dest); | 523 | 48 | } | 524 | 46 | return ss; | 525 | 46 | } | 526 | 46 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 228k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 228k | } else { | 519 | 228k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 228k | ss->id = operator_id(); | 521 | 229k | for (auto& dest : dests_id()) { | 522 | 229k | ss->related_op_ids.insert(dest); | 523 | 229k | } | 524 | 228k | return ss; | 525 | 228k | } | 526 | 228k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 36 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 36 | } else { | 519 | 36 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 36 | ss->id = operator_id(); | 521 | 36 | for (auto& dest : dests_id()) { | 522 | 36 | ss->related_op_ids.insert(dest); | 523 | 36 | } | 524 | 36 | return ss; | 525 | 36 | } | 526 | 36 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 89.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 89.1k | } else { | 519 | 89.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 89.1k | ss->id = operator_id(); | 521 | 89.2k | for (auto& dest : dests_id()) { | 522 | 89.2k | ss->related_op_ids.insert(dest); | 523 | 89.2k | } | 524 | 89.1k | return ss; | 525 | 89.1k | } | 526 | 89.1k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 151 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 151 | } else { | 519 | 151 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 151 | ss->id = operator_id(); | 521 | 151 | for (auto& dest : dests_id()) { | 522 | 151 | ss->related_op_ids.insert(dest); | 523 | 151 | } | 524 | 151 | return ss; | 525 | 151 | } | 526 | 151 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 545k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 545k | } else { | 519 | 545k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 545k | ss->id = operator_id(); | 521 | 545k | for (auto& dest : dests_id()) { | 522 | 541k | ss->related_op_ids.insert(dest); | 523 | 541k | } | 524 | 545k | return ss; | 525 | 545k | } | 526 | 545k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.32k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 6.32k | } else { | 519 | 6.32k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.32k | ss->id = operator_id(); | 521 | 6.32k | for (auto& dest : dests_id()) { | 522 | 6.32k | ss->related_op_ids.insert(dest); | 523 | 6.32k | } | 524 | 6.32k | return ss; | 525 | 6.32k | } | 526 | 6.32k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 402 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 402 | } else { | 519 | 402 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 402 | ss->id = operator_id(); | 521 | 403 | for (auto& dest : dests_id()) { | 522 | 403 | ss->related_op_ids.insert(dest); | 523 | 403 | } | 524 | 402 | return ss; | 525 | 402 | } | 526 | 402 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.63k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.63k | } else { | 519 | 2.63k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.63k | ss->id = operator_id(); | 521 | 2.64k | for (auto& dest : dests_id()) { | 522 | 2.64k | ss->related_op_ids.insert(dest); | 523 | 2.64k | } | 524 | 2.63k | return ss; | 525 | 2.63k | } | 526 | 2.63k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.47k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.47k | } else { | 519 | 2.47k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.47k | ss->id = operator_id(); | 521 | 2.47k | for (auto& dest : dests_id()) { | 522 | 2.46k | ss->related_op_ids.insert(dest); | 523 | 2.46k | } | 524 | 2.47k | return ss; | 525 | 2.47k | } | 526 | 2.47k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 570 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 570 | } else { | 519 | 570 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 570 | ss->id = operator_id(); | 521 | 570 | for (auto& dest : dests_id()) { | 522 | 568 | ss->related_op_ids.insert(dest); | 523 | 568 | } | 524 | 570 | return ss; | 525 | 570 | } | 526 | 570 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 106 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 106 | } else { | 519 | 106 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 106 | ss->id = operator_id(); | 521 | 106 | for (auto& dest : dests_id()) { | 522 | 106 | ss->related_op_ids.insert(dest); | 523 | 106 | } | 524 | 106 | return ss; | 525 | 106 | } | 526 | 106 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.22M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.22M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.22M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.22M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.22M | return Status::OK(); |
534 | 2.22M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 69.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 69.2k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 69.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 69.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 69.2k | return Status::OK(); | 534 | 69.2k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 241k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 241k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 241k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 241k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 241k | return Status::OK(); | 534 | 241k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 136 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 136 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 136 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 136 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 136 | return Status::OK(); | 534 | 136 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.08k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.08k | return Status::OK(); | 534 | 3.08k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 9.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 9.42k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 9.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 9.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 9.42k | return Status::OK(); | 534 | 9.42k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 9.21k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 9.21k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 9.21k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 9.21k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 9.21k | return Status::OK(); | 534 | 9.21k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 27 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 27 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 27 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 27 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 27 | return Status::OK(); | 534 | 27 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 217k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 217k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 217k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 217k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 217k | return Status::OK(); | 534 | 217k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 88.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 88.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 88.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 88.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 88.6k | return Status::OK(); | 534 | 88.6k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 82.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 82.0k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 82.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 82.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 82.0k | return Status::OK(); | 534 | 82.0k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 142 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 142 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 142 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 142 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 142 | return Status::OK(); | 534 | 142 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.54k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.54k | return Status::OK(); | 534 | 4.54k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 316k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 316k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 316k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 316k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 316k | return Status::OK(); | 534 | 316k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.50k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.50k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.50k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.50k | return Status::OK(); | 534 | 1.50k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.27k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.27k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.27k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.27k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.27k | return Status::OK(); | 534 | 6.27k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 27 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 27 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 27 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 27 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 27 | return Status::OK(); | 534 | 27 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.59k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.59k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.59k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.59k | return Status::OK(); | 534 | 1.59k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 53.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 53.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 53.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 53.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 53.8k | return Status::OK(); | 534 | 53.8k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.27k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.27k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.27k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.27k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.27k | return Status::OK(); | 534 | 5.27k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 301 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 301 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 301 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 301 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 301 | return Status::OK(); | 534 | 301 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.58k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.58k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.58k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.58k | return Status::OK(); | 534 | 2.58k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.43k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.43k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.43k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.43k | return Status::OK(); | 534 | 2.43k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 316 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 316 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 316 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 316 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 316 | return Status::OK(); | 534 | 316 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.60k | return Status::OK(); | 534 | 1.60k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.3k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.3k | return Status::OK(); | 534 | 10.3k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 721k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 721k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 721k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 721k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 721k | return Status::OK(); | 534 | 721k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 14 | return Status::OK(); | 534 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 169 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 169 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 169 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 169 | return Status::OK(); | 534 | 169 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.20k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.20k | return Status::OK(); | 534 | 2.20k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 785 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 785 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 785 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 785 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 785 | return Status::OK(); | 534 | 785 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.05k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.05k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.05k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.05k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.05k | return Status::OK(); | 534 | 1.05k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.11k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.11k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.11k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.11k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.11k | return Status::OK(); | 534 | 8.11k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 359k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 359k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 359k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 359k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 359k | return Status::OK(); | 534 | 359k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.83M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.21M | : _num_rows_returned(0), |
542 | 2.21M | _rows_returned_counter(nullptr), |
543 | 2.21M | _parent(parent), |
544 | 2.21M | _state(state), |
545 | 2.21M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.22M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.22M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.22M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.22M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.22M | _operator_profile->set_metadata(_parent->node_id()); |
553 | | // indent is false so that source operator will have same |
554 | | // indentation_level with its parent operator. |
555 | 2.22M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.22M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.22M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.22M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.22M | if constexpr (!is_fake_shared) { |
560 | 1.27M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 814k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 814k | .first.get() |
563 | 814k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 814k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 814k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 814k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 814k | } else if (info.shared_state) { |
569 | 392k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
570 | 0 | DCHECK(false); |
571 | 0 | } |
572 | | // For UnionSourceOperator without children, there is no shared state. |
573 | 392k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 392k | _dependency = _shared_state->create_source_dependency( |
576 | 392k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 392k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 392k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 392k | } else { |
580 | 70.2k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 8.82k | DCHECK(false); |
582 | 8.82k | } |
583 | 70.2k | } |
584 | 1.27M | } |
585 | | |
586 | 2.22M | if (must_set_shared_state() && _shared_state == nullptr) { |
587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
588 | 0 | } |
589 | | |
590 | 2.22M | _rows_returned_counter = |
591 | 2.22M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.22M | _blocks_returned_counter = |
593 | 2.22M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.22M | _output_block_bytes_counter = |
595 | 2.22M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.22M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.22M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.22M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.22M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.22M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.22M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.22M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.22M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.22M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.22M | _memory_used_counter = |
606 | 2.22M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.22M | _common_profile->add_info_string("IsColocate", |
608 | 2.22M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.22M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.22M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.22M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.22M | return Status::OK(); |
613 | 2.22M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 69.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 69.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 69.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 69.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 69.5k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 69.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 69.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 69.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 69.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 69.5k | if constexpr (!is_fake_shared) { | 560 | 69.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 14.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 14.4k | .first.get() | 563 | 14.4k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 14.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 14.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 14.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 55.0k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 54.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 54.1k | _dependency = _shared_state->create_source_dependency( | 576 | 54.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 54.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 54.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 54.1k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 933 | } | 584 | 69.5k | } | 585 | | | 586 | 69.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 69.5k | _rows_returned_counter = | 591 | 69.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 69.5k | _blocks_returned_counter = | 593 | 69.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 69.5k | _output_block_bytes_counter = | 595 | 69.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 69.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 69.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 69.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 69.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 69.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 69.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 69.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 69.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 69.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 69.5k | _memory_used_counter = | 606 | 69.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 69.5k | _common_profile->add_info_string("IsColocate", | 608 | 69.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 69.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 69.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 69.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 69.5k | return Status::OK(); | 613 | 69.5k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 1 | if constexpr (!is_fake_shared) { | 560 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 1 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 1 | _dependency = _shared_state->create_source_dependency( | 576 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 1 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 1 | } | 585 | | | 586 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 1 | _rows_returned_counter = | 591 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 1 | _blocks_returned_counter = | 593 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 1 | _output_block_bytes_counter = | 595 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 1 | _memory_used_counter = | 606 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 1 | _common_profile->add_info_string("IsColocate", | 608 | 1 | std::to_string(_parent->is_colocated_operator())); | 609 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 1 | return Status::OK(); | 613 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 228k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 228k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 228k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 228k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 228k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 228k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 228k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 228k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 228k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 228k | if constexpr (!is_fake_shared) { | 560 | 228k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 228k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 220k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 220k | _dependency = _shared_state->create_source_dependency( | 576 | 220k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 220k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 220k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 220k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 8.12k | } | 584 | 228k | } | 585 | | | 586 | 228k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 228k | _rows_returned_counter = | 591 | 228k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 228k | _blocks_returned_counter = | 593 | 228k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 228k | _output_block_bytes_counter = | 595 | 228k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 228k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 228k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 228k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 228k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 228k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 228k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 228k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 228k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 228k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 228k | _memory_used_counter = | 606 | 228k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 228k | _common_profile->add_info_string("IsColocate", | 608 | 228k | std::to_string(_parent->is_colocated_operator())); | 609 | 228k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 228k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 228k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 228k | return Status::OK(); | 613 | 228k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 27 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 27 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 27 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 27 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 27 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 27 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 27 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 27 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 27 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 27 | if constexpr (!is_fake_shared) { | 560 | 27 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 27 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 27 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 27 | _dependency = _shared_state->create_source_dependency( | 576 | 27 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 27 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 27 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 27 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 27 | } | 585 | | | 586 | 27 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 27 | _rows_returned_counter = | 591 | 27 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 27 | _blocks_returned_counter = | 593 | 27 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 27 | _output_block_bytes_counter = | 595 | 27 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 27 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 27 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 27 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 27 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 27 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 27 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 27 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 27 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 27 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 27 | _memory_used_counter = | 606 | 27 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 27 | _common_profile->add_info_string("IsColocate", | 608 | 27 | std::to_string(_parent->is_colocated_operator())); | 609 | 27 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 27 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 27 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 27 | return Status::OK(); | 613 | 27 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.32k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.32k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.32k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.32k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.32k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 6.32k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.32k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.32k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.32k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.32k | if constexpr (!is_fake_shared) { | 560 | 6.32k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 6.32k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 6.26k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.26k | _dependency = _shared_state->create_source_dependency( | 576 | 6.26k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.26k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 56 | } | 584 | 6.32k | } | 585 | | | 586 | 6.32k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 6.32k | _rows_returned_counter = | 591 | 6.32k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.32k | _blocks_returned_counter = | 593 | 6.32k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.32k | _output_block_bytes_counter = | 595 | 6.32k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.32k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.32k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.32k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.32k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.32k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.32k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.32k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.32k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.32k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.32k | _memory_used_counter = | 606 | 6.32k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.32k | _common_profile->add_info_string("IsColocate", | 608 | 6.32k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.32k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.32k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.32k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.32k | return Status::OK(); | 613 | 6.32k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 9.51k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 9.51k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 9.51k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 9.51k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 9.51k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 9.51k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 9.51k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 9.51k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 9.51k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 9.51k | if constexpr (!is_fake_shared) { | 560 | 9.51k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 9.51k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 9.13k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 9.13k | _dependency = _shared_state->create_source_dependency( | 576 | 9.13k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 9.13k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 9.13k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 9.13k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 384 | } | 584 | 9.51k | } | 585 | | | 586 | 9.51k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 9.51k | _rows_returned_counter = | 591 | 9.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 9.51k | _blocks_returned_counter = | 593 | 9.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 9.51k | _output_block_bytes_counter = | 595 | 9.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 9.51k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 9.51k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 9.51k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 9.51k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 9.51k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 9.51k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 9.51k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 9.51k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 9.51k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 9.51k | _memory_used_counter = | 606 | 9.51k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 9.51k | _common_profile->add_info_string("IsColocate", | 608 | 9.51k | std::to_string(_parent->is_colocated_operator())); | 609 | 9.51k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 9.51k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 9.51k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 9.51k | return Status::OK(); | 613 | 9.51k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 89.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 89.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 89.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 89.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 89.1k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 89.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 89.1k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 89.1k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 89.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 89.1k | if constexpr (!is_fake_shared) { | 560 | 89.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 89.1k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 87.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 87.6k | _dependency = _shared_state->create_source_dependency( | 576 | 87.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 87.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 87.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 87.6k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.53k | } | 584 | 89.1k | } | 585 | | | 586 | 89.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 89.1k | _rows_returned_counter = | 591 | 89.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 89.1k | _blocks_returned_counter = | 593 | 89.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 89.1k | _output_block_bytes_counter = | 595 | 89.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 89.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 89.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 89.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 89.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 89.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 89.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 89.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 89.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 89.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 89.1k | _memory_used_counter = | 606 | 89.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 89.1k | _common_profile->add_info_string("IsColocate", | 608 | 89.1k | std::to_string(_parent->is_colocated_operator())); | 609 | 89.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 89.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 89.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 89.1k | return Status::OK(); | 613 | 89.1k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 82.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 82.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 82.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 82.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 82.0k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 82.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 82.0k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 82.0k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 82.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 82.0k | if constexpr (!is_fake_shared) { | 560 | 82.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 81.8k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 81.8k | .first.get() | 563 | 81.8k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 81.8k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 81.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 81.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 81.8k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 178 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 178 | } | 584 | 82.0k | } | 585 | | | 586 | 82.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 82.0k | _rows_returned_counter = | 591 | 82.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 82.0k | _blocks_returned_counter = | 593 | 82.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 82.0k | _output_block_bytes_counter = | 595 | 82.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 82.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 82.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 82.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 82.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 82.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 82.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 82.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 82.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 82.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 82.0k | _memory_used_counter = | 606 | 82.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 82.0k | _common_profile->add_info_string("IsColocate", | 608 | 82.0k | std::to_string(_parent->is_colocated_operator())); | 609 | 82.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 82.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 82.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 82.0k | return Status::OK(); | 613 | 82.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 142 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 142 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 142 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 142 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 142 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 142 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 142 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 142 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 142 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 142 | if constexpr (!is_fake_shared) { | 560 | 142 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 142 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 141 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 141 | _dependency = _shared_state->create_source_dependency( | 576 | 141 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 141 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 141 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 141 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1 | } | 584 | 142 | } | 585 | | | 586 | 142 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 142 | _rows_returned_counter = | 591 | 142 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 142 | _blocks_returned_counter = | 593 | 142 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 142 | _output_block_bytes_counter = | 595 | 142 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 142 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 142 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 142 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 142 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 142 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 142 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 142 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 142 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 142 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 142 | _memory_used_counter = | 606 | 142 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 142 | _common_profile->add_info_string("IsColocate", | 608 | 142 | std::to_string(_parent->is_colocated_operator())); | 609 | 142 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 142 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 142 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 142 | return Status::OK(); | 613 | 142 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 951k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 951k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 951k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 951k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 951k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 951k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 951k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 951k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 951k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | | if constexpr (!is_fake_shared) { | 560 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | | .first.get() | 563 | | ->template cast<SharedStateArg>(); | 564 | | | 565 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | | _dependency = _shared_state->create_source_dependency( | 576 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | | } | 584 | | } | 585 | | | 586 | 951k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 951k | _rows_returned_counter = | 591 | 951k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 951k | _blocks_returned_counter = | 593 | 951k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 951k | _output_block_bytes_counter = | 595 | 951k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 951k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 951k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 951k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 951k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 951k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 951k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 951k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 951k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 951k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 951k | _memory_used_counter = | 606 | 951k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 951k | _common_profile->add_info_string("IsColocate", | 608 | 951k | std::to_string(_parent->is_colocated_operator())); | 609 | 951k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 951k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 951k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 951k | return Status::OK(); | 613 | 951k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 53.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 53.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 53.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 53.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 53.8k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 53.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 53.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 53.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 53.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 53.8k | if constexpr (!is_fake_shared) { | 560 | 53.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 53.8k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 3.81k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 3.81k | _dependency = _shared_state->create_source_dependency( | 576 | 3.81k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 3.81k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 3.81k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 49.9k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 49.9k | } | 584 | 53.8k | } | 585 | | | 586 | 53.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 53.8k | _rows_returned_counter = | 591 | 53.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 53.8k | _blocks_returned_counter = | 593 | 53.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 53.8k | _output_block_bytes_counter = | 595 | 53.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 53.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 53.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 53.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 53.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 53.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 53.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 53.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 53.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 53.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 53.8k | _memory_used_counter = | 606 | 53.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 53.8k | _common_profile->add_info_string("IsColocate", | 608 | 53.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 53.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 53.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 53.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 53.8k | return Status::OK(); | 613 | 53.8k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 26 | if constexpr (!is_fake_shared) { | 560 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 26 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 26 | _dependency = _shared_state->create_source_dependency( | 576 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 26 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 26 | } | 585 | | | 586 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 26 | _rows_returned_counter = | 591 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 26 | _blocks_returned_counter = | 593 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 26 | _output_block_bytes_counter = | 595 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 26 | _memory_used_counter = | 606 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 26 | _common_profile->add_info_string("IsColocate", | 608 | 26 | std::to_string(_parent->is_colocated_operator())); | 609 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 26 | return Status::OK(); | 613 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.28k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.28k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.28k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.28k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.28k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 5.28k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.28k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.28k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.28k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.28k | if constexpr (!is_fake_shared) { | 560 | 5.28k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 5.28k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 5.24k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.24k | _dependency = _shared_state->create_source_dependency( | 576 | 5.24k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.24k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.24k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.24k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 39 | } | 584 | 5.28k | } | 585 | | | 586 | 5.28k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 5.28k | _rows_returned_counter = | 591 | 5.28k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.28k | _blocks_returned_counter = | 593 | 5.28k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.28k | _output_block_bytes_counter = | 595 | 5.28k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.28k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.28k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.28k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.28k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.28k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.28k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.28k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.28k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.28k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.28k | _memory_used_counter = | 606 | 5.28k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.28k | _common_profile->add_info_string("IsColocate", | 608 | 5.28k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.28k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.28k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.28k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.28k | return Status::OK(); | 613 | 5.28k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 403 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 403 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 403 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 403 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 403 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 403 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 403 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 403 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 403 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 403 | if constexpr (!is_fake_shared) { | 560 | 403 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 403 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 399 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 399 | _dependency = _shared_state->create_source_dependency( | 576 | 399 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 399 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 399 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 399 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 4 | } | 584 | 403 | } | 585 | | | 586 | 403 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 403 | _rows_returned_counter = | 591 | 403 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 403 | _blocks_returned_counter = | 593 | 403 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 403 | _output_block_bytes_counter = | 595 | 403 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 403 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 403 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 403 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 403 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 403 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 403 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 403 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 403 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 403 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 403 | _memory_used_counter = | 606 | 403 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 403 | _common_profile->add_info_string("IsColocate", | 608 | 403 | std::to_string(_parent->is_colocated_operator())); | 609 | 403 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 403 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 403 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 403 | return Status::OK(); | 613 | 403 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.10k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.10k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.10k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.10k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.10k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 5.10k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.10k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.10k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.10k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.10k | if constexpr (!is_fake_shared) { | 560 | 5.10k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 5.10k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.87k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.87k | _dependency = _shared_state->create_source_dependency( | 576 | 4.87k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.87k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.87k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.87k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 234 | } | 584 | 5.10k | } | 585 | | | 586 | 5.10k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 5.10k | _rows_returned_counter = | 591 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.10k | _blocks_returned_counter = | 593 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.10k | _output_block_bytes_counter = | 595 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.10k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.10k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.10k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.10k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.10k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.10k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.10k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.10k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.10k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.10k | _memory_used_counter = | 606 | 5.10k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.10k | _common_profile->add_info_string("IsColocate", | 608 | 5.10k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.10k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.10k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.10k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.10k | return Status::OK(); | 613 | 5.10k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 726k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 726k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 726k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 726k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 726k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 726k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 726k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 726k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 726k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 726k | if constexpr (!is_fake_shared) { | 560 | 726k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 718k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 718k | .first.get() | 563 | 718k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 718k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 718k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 718k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 718k | } else if (info.shared_state) { | 569 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | 0 | DCHECK(false); | 571 | 0 | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.82k | } else { | 580 | 8.82k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 8.82k | DCHECK(false); | 582 | 8.82k | } | 583 | 8.82k | } | 584 | 726k | } | 585 | | | 586 | 726k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 726k | _rows_returned_counter = | 591 | 726k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 726k | _blocks_returned_counter = | 593 | 726k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 726k | _output_block_bytes_counter = | 595 | 726k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 726k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 726k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 726k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 726k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 726k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 726k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 726k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 726k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 726k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 726k | _memory_used_counter = | 606 | 726k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 726k | _common_profile->add_info_string("IsColocate", | 608 | 726k | std::to_string(_parent->is_colocated_operator())); | 609 | 726k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 726k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 726k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 726k | return Status::OK(); | 613 | 726k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 169 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 169 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 169 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 169 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 169 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 169 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 169 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 169 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 169 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 169 | if constexpr (!is_fake_shared) { | 560 | 169 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 169 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 169 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 169 | _dependency = _shared_state->create_source_dependency( | 576 | 169 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 169 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 169 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 169 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 169 | } | 585 | | | 586 | 169 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 169 | _rows_returned_counter = | 591 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 169 | _blocks_returned_counter = | 593 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 169 | _output_block_bytes_counter = | 595 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 169 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 169 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 169 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 169 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 169 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 169 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 169 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 169 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 169 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 169 | _memory_used_counter = | 606 | 169 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 169 | _common_profile->add_info_string("IsColocate", | 608 | 169 | std::to_string(_parent->is_colocated_operator())); | 609 | 169 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 169 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 169 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 169 | return Status::OK(); | 613 | 169 | } |
|
614 | | |
615 | | template <typename SharedStateArg> |
616 | 2.23M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.23M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.54M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 304k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 304k | } |
621 | 2.23M | if (_parent->has_projection()) { |
622 | 378k | const auto& projection = *_parent->_projection; |
623 | 378k | _projections.resize(projection.projections.size()); |
624 | 2.36M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.98M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.98M | } |
627 | 378k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 391k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 12.9k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 199k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 186k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 186k | state, _intermediate_projections[i][j])); |
633 | 186k | } |
634 | 12.9k | } |
635 | 378k | } |
636 | 2.23M | return Status::OK(); |
637 | 2.23M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 69.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 69.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 71.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.56k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.56k | } | 621 | 69.7k | if (_parent->has_projection()) { | 622 | 69.7k | const auto& projection = *_parent->_projection; | 623 | 69.7k | _projections.resize(projection.projections.size()); | 624 | 382k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 312k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 312k | } | 627 | 69.7k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 76.7k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 7.00k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 159k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 152k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 152k | state, _intermediate_projections[i][j])); | 633 | 152k | } | 634 | 7.00k | } | 635 | 69.7k | } | 636 | 69.7k | return Status::OK(); | 637 | 69.7k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 229k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 229k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 229k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 229k | if (_parent->has_projection()) { | 622 | 80 | const auto& projection = *_parent->_projection; | 623 | 80 | _projections.resize(projection.projections.size()); | 624 | 405 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 80 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 80 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 80 | } | 636 | 229k | return Status::OK(); | 637 | 229k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 27 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 27 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 27 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 27 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 27 | return Status::OK(); | 637 | 27 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.33k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.33k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.41k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 82 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 82 | } | 621 | 6.33k | if (_parent->has_projection()) { | 622 | 6.33k | const auto& projection = *_parent->_projection; | 623 | 6.33k | _projections.resize(projection.projections.size()); | 624 | 28.4k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 22.0k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 22.0k | } | 627 | 6.33k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.34k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 18 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 162 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 144 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 144 | state, _intermediate_projections[i][j])); | 633 | 144 | } | 634 | 18 | } | 635 | 6.33k | } | 636 | 6.33k | return Status::OK(); | 637 | 6.33k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 9.63k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 9.63k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 10.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 854 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 854 | } | 621 | 9.63k | if (_parent->has_projection()) { | 622 | 5.35k | const auto& projection = *_parent->_projection; | 623 | 5.35k | _projections.resize(projection.projections.size()); | 624 | 22.0k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 16.6k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 16.6k | } | 627 | 5.35k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 5.44k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 88 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 674 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 586 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 586 | state, _intermediate_projections[i][j])); | 633 | 586 | } | 634 | 88 | } | 635 | 5.35k | } | 636 | 9.63k | return Status::OK(); | 637 | 9.63k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 89.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 89.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 91.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.72k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.72k | } | 621 | 89.3k | if (_parent->has_projection()) { | 622 | 30.9k | const auto& projection = *_parent->_projection; | 623 | 30.9k | _projections.resize(projection.projections.size()); | 624 | 280k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 249k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 249k | } | 627 | 30.9k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 31.1k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 170 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.29k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.12k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.12k | state, _intermediate_projections[i][j])); | 633 | 1.12k | } | 634 | 170 | } | 635 | 30.9k | } | 636 | 89.3k | return Status::OK(); | 637 | 89.3k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 81.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 81.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 81.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 22 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 22 | } | 621 | 81.9k | if (_parent->has_projection()) { | 622 | 152 | const auto& projection = *_parent->_projection; | 623 | 152 | _projections.resize(projection.projections.size()); | 624 | 706 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 554 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 554 | } | 627 | 152 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 152 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 152 | } | 636 | 81.9k | return Status::OK(); | 637 | 81.9k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 146 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 146 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 146 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 146 | if (_parent->has_projection()) { | 622 | 120 | const auto& projection = *_parent->_projection; | 623 | 120 | _projections.resize(projection.projections.size()); | 624 | 360 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 240 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 240 | } | 627 | 120 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 120 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 120 | } | 636 | 146 | return Status::OK(); | 637 | 146 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 957k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 957k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.25M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 299k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 299k | } | 621 | 957k | if (_parent->has_projection()) { | 622 | 254k | const auto& projection = *_parent->_projection; | 623 | 254k | _projections.resize(projection.projections.size()); | 624 | 1.54M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.28M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.28M | } | 627 | 254k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 259k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 5.53k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 34.8k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 29.2k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 29.2k | state, _intermediate_projections[i][j])); | 633 | 29.2k | } | 634 | 5.53k | } | 635 | 254k | } | 636 | 957k | return Status::OK(); | 637 | 957k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 54.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 54.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 54.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 54.0k | if (_parent->has_projection()) { | 622 | 11.3k | const auto& projection = *_parent->_projection; | 623 | 11.3k | _projections.resize(projection.projections.size()); | 624 | 110k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 99.4k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 99.4k | } | 627 | 11.3k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.5k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 130 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 2.58k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 2.45k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 2.45k | state, _intermediate_projections[i][j])); | 633 | 2.45k | } | 634 | 130 | } | 635 | 11.3k | } | 636 | 54.0k | return Status::OK(); | 637 | 54.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.26k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.26k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.00k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 738 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 738 | } | 621 | 5.26k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 5.26k | return Status::OK(); | 637 | 5.26k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 403 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 403 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 403 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 403 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 403 | return Status::OK(); | 637 | 403 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.14k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.14k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.14k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 5.14k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 228 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 168 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 168 | } | 627 | 60 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 60 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 60 | } | 636 | 5.14k | return Status::OK(); | 637 | 5.14k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 730k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 730k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 730k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 730k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 730k | return Status::OK(); | 637 | 730k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 169 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 169 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 176 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 169 | if (_parent->has_projection()) { | 622 | 166 | const auto& projection = *_parent->_projection; | 623 | 166 | _projections.resize(projection.projections.size()); | 624 | 491 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 166 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 169 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 3 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 8 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 8 | state, _intermediate_projections[i][j])); | 633 | 8 | } | 634 | 3 | } | 635 | 166 | } | 636 | 169 | return Status::OK(); | 637 | 169 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 6.70k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 6.70k | if (_terminated) { |
642 | 2 | return Status::OK(); |
643 | 2 | } |
644 | 6.70k | _terminated = true; |
645 | 6.70k | return Status::OK(); |
646 | 6.70k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 422 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 422 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 422 | _terminated = true; | 645 | 422 | return Status::OK(); | 646 | 422 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 28 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 28 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 28 | _terminated = true; | 645 | 28 | return Status::OK(); | 646 | 28 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 47 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 47 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 47 | _terminated = true; | 645 | 47 | return Status::OK(); | 646 | 47 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 49 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 49 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 49 | _terminated = true; | 645 | 49 | return Status::OK(); | 646 | 49 | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 4.91k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 4.91k | if (_terminated) { | 642 | 1 | return Status::OK(); | 643 | 1 | } | 644 | 4.90k | _terminated = true; | 645 | 4.90k | return Status::OK(); | 646 | 4.91k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 25 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 25 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 25 | _terminated = true; | 645 | 25 | return Status::OK(); | 646 | 25 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 2 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 2 | _terminated = true; | 645 | 2 | return Status::OK(); | 646 | 2 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 329 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 329 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 329 | _terminated = true; | 645 | 329 | return Status::OK(); | 646 | 329 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 861 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 861 | if (_terminated) { | 642 | 1 | return Status::OK(); | 643 | 1 | } | 644 | 860 | _terminated = true; | 645 | 860 | return Status::OK(); | 646 | 861 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 34 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 34 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 34 | _terminated = true; | 645 | 34 | return Status::OK(); | 646 | 34 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.49M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.49M | if (_closed) { |
651 | 260k | return Status::OK(); |
652 | 260k | } |
653 | 2.23M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.28M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.28M | } |
656 | 2.23M | _closed = true; |
657 | 2.23M | return Status::OK(); |
658 | 2.49M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 69.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 69.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 69.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 69.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 69.6k | } | 656 | 69.6k | _closed = true; | 657 | 69.6k | return Status::OK(); | 658 | 69.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4 | } | 656 | 4 | _closed = true; | 657 | 4 | return Status::OK(); | 658 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 455k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 455k | if (_closed) { | 651 | 228k | return Status::OK(); | 652 | 228k | } | 653 | 226k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 226k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 226k | } | 656 | 226k | _closed = true; | 657 | 226k | return Status::OK(); | 658 | 455k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 27 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 27 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 27 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 27 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 27 | } | 656 | 27 | _closed = true; | 657 | 27 | return Status::OK(); | 658 | 27 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.32k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.32k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.32k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.32k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.32k | } | 656 | 6.32k | _closed = true; | 657 | 6.32k | return Status::OK(); | 658 | 6.32k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 19.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 19.5k | if (_closed) { | 651 | 9.91k | return Status::OK(); | 652 | 9.91k | } | 653 | 9.61k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 9.61k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 9.61k | } | 656 | 9.61k | _closed = true; | 657 | 9.61k | return Status::OK(); | 658 | 19.5k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 89.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 89.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 89.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 89.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 89.1k | } | 656 | 89.1k | _closed = true; | 657 | 89.1k | return Status::OK(); | 658 | 89.1k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 81.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 81.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 81.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 81.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 81.6k | } | 656 | 81.6k | _closed = true; | 657 | 81.6k | return Status::OK(); | 658 | 81.6k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 141 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 141 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 141 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 141 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 141 | } | 656 | 141 | _closed = true; | 657 | 141 | return Status::OK(); | 658 | 141 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 973k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 973k | if (_closed) { | 651 | 15.6k | return Status::OK(); | 652 | 15.6k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 957k | _closed = true; | 657 | 957k | return Status::OK(); | 658 | 973k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 54.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 54.0k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 54.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 54.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 54.0k | } | 656 | 54.0k | _closed = true; | 657 | 54.0k | return Status::OK(); | 658 | 54.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 28 | if (_closed) { | 651 | 14 | return Status::OK(); | 652 | 14 | } | 653 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 14 | } | 656 | 14 | _closed = true; | 657 | 14 | return Status::OK(); | 658 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.25k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.25k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.25k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.25k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.25k | } | 656 | 5.25k | _closed = true; | 657 | 5.25k | return Status::OK(); | 658 | 5.25k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 598 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 598 | if (_closed) { | 651 | 300 | return Status::OK(); | 652 | 300 | } | 653 | 298 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 298 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 298 | } | 656 | 298 | _closed = true; | 657 | 298 | return Status::OK(); | 658 | 598 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.5k | if (_closed) { | 651 | 5.40k | return Status::OK(); | 652 | 5.40k | } | 653 | 5.14k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.14k | } | 656 | 5.14k | _closed = true; | 657 | 5.14k | return Status::OK(); | 658 | 10.5k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 731k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 731k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 731k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 731k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 731k | } | 656 | 731k | _closed = true; | 657 | 731k | return Status::OK(); | 658 | 731k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 336 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 336 | if (_closed) { | 651 | 176 | return Status::OK(); | 652 | 176 | } | 653 | 160 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 160 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 160 | } | 656 | 160 | _closed = true; | 657 | 160 | return Status::OK(); | 658 | 336 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.84M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.84M | _operator_profile = |
664 | 1.84M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.84M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.84M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
667 | | |
668 | | // indentation is true |
669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
670 | | // So we should set the indentation to true. |
671 | 1.84M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.84M | _operator_profile->add_child(_common_profile, true); |
673 | 1.84M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.84M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.84M | _wait_for_finish_dependency_timer = |
677 | 1.84M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.84M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.84M | if constexpr (!is_fake_shared) { |
680 | 1.29M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.29M | info.shared_state_map.end()) { |
682 | 381k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 284k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 284k | } |
685 | 381k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 381k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 381k | ? 0 |
688 | 381k | : info.task_idx] |
689 | 381k | .get(); |
690 | 381k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 918k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 918k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 918k | _dependency = _shared_state->create_sink_dependency( |
697 | 918k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 918k | } |
699 | 1.29M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.29M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.29M | } |
702 | | |
703 | 1.84M | if (must_set_shared_state() && _shared_state == nullptr) { |
704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
705 | 0 | } |
706 | | |
707 | 1.84M | _rows_input_counter = |
708 | 1.84M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.84M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.84M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.84M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.84M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.84M | _memory_used_counter = |
714 | 1.84M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.84M | _common_profile->add_info_string("IsColocate", |
716 | 1.84M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.84M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.84M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.84M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.84M | return Status::OK(); |
721 | 1.84M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 117k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 117k | _operator_profile = | 664 | 117k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 117k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 117k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 117k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 117k | _operator_profile->add_child(_common_profile, true); | 673 | 117k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 117k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 117k | _wait_for_finish_dependency_timer = | 677 | 117k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 117k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 117k | if constexpr (!is_fake_shared) { | 680 | 117k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 117k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 14.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 14.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 14.6k | ? 0 | 688 | 14.6k | : info.task_idx] | 689 | 14.6k | .get(); | 690 | 14.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 102k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 102k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 102k | _dependency = _shared_state->create_sink_dependency( | 697 | 102k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 102k | } | 699 | 117k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 117k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 117k | } | 702 | | | 703 | 117k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 117k | _rows_input_counter = | 708 | 117k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 117k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 117k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 117k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 117k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 117k | _memory_used_counter = | 714 | 117k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 117k | _common_profile->add_info_string("IsColocate", | 716 | 117k | std::to_string(_parent->is_colocated_operator())); | 717 | 117k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 117k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 117k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 117k | return Status::OK(); | 721 | 117k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2 | _operator_profile = | 664 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2 | _operator_profile->add_child(_common_profile, true); | 673 | 2 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2 | _wait_for_finish_dependency_timer = | 677 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2 | if constexpr (!is_fake_shared) { | 680 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2 | _dependency = _shared_state->create_sink_dependency( | 697 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2 | } | 699 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2 | } | 702 | | | 703 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2 | _rows_input_counter = | 708 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2 | _memory_used_counter = | 714 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2 | _common_profile->add_info_string("IsColocate", | 716 | 2 | std::to_string(_parent->is_colocated_operator())); | 717 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2 | return Status::OK(); | 721 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 228k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 228k | _operator_profile = | 664 | 228k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 228k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 228k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 228k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 228k | _operator_profile->add_child(_common_profile, true); | 673 | 228k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 228k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 228k | _wait_for_finish_dependency_timer = | 677 | 228k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 228k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 228k | if constexpr (!is_fake_shared) { | 680 | 228k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 228k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 228k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 228k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 228k | _dependency = _shared_state->create_sink_dependency( | 697 | 228k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 228k | } | 699 | 228k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 228k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 228k | } | 702 | | | 703 | 228k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 228k | _rows_input_counter = | 708 | 228k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 228k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 228k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 228k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 228k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 228k | _memory_used_counter = | 714 | 228k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 228k | _common_profile->add_info_string("IsColocate", | 716 | 228k | std::to_string(_parent->is_colocated_operator())); | 717 | 228k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 228k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 228k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 228k | return Status::OK(); | 721 | 228k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 34 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 34 | _operator_profile = | 664 | 34 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 34 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 34 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 34 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 34 | _operator_profile->add_child(_common_profile, true); | 673 | 34 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 34 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 34 | _wait_for_finish_dependency_timer = | 677 | 34 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 34 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 34 | if constexpr (!is_fake_shared) { | 680 | 34 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 34 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 34 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 34 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 34 | _dependency = _shared_state->create_sink_dependency( | 697 | 34 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 34 | } | 699 | 34 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 34 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 34 | } | 702 | | | 703 | 34 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 34 | _rows_input_counter = | 708 | 34 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 34 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 34 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 34 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 34 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 34 | _memory_used_counter = | 714 | 34 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 34 | _common_profile->add_info_string("IsColocate", | 716 | 34 | std::to_string(_parent->is_colocated_operator())); | 717 | 34 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 34 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 34 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 34 | return Status::OK(); | 721 | 34 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.31k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.31k | _operator_profile = | 664 | 6.31k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.31k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.31k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 6.31k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.31k | _operator_profile->add_child(_common_profile, true); | 673 | 6.31k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.31k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.31k | _wait_for_finish_dependency_timer = | 677 | 6.31k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.31k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.31k | if constexpr (!is_fake_shared) { | 680 | 6.31k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.31k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 6.31k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.31k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.31k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.31k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.31k | } | 699 | 6.31k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.31k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.31k | } | 702 | | | 703 | 6.31k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 6.31k | _rows_input_counter = | 708 | 6.31k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.31k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.31k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.31k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.31k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.31k | _memory_used_counter = | 714 | 6.31k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.31k | _common_profile->add_info_string("IsColocate", | 716 | 6.31k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.31k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.31k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.31k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.31k | return Status::OK(); | 721 | 6.31k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 9.55k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 9.55k | _operator_profile = | 664 | 9.55k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 9.55k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 9.55k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 9.55k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 9.55k | _operator_profile->add_child(_common_profile, true); | 673 | 9.55k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 9.55k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 9.55k | _wait_for_finish_dependency_timer = | 677 | 9.55k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 9.55k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 9.55k | if constexpr (!is_fake_shared) { | 680 | 9.55k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 9.55k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 9.55k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 9.55k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 9.55k | _dependency = _shared_state->create_sink_dependency( | 697 | 9.55k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 9.55k | } | 699 | 9.55k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 9.55k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 9.55k | } | 702 | | | 703 | 9.55k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 9.55k | _rows_input_counter = | 708 | 9.55k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 9.55k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 9.55k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 9.55k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 9.55k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 9.55k | _memory_used_counter = | 714 | 9.55k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 9.55k | _common_profile->add_info_string("IsColocate", | 716 | 9.55k | std::to_string(_parent->is_colocated_operator())); | 717 | 9.55k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 9.55k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 9.55k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 9.55k | return Status::OK(); | 721 | 9.55k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 89.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 89.1k | _operator_profile = | 664 | 89.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 89.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 89.1k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 89.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 89.1k | _operator_profile->add_child(_common_profile, true); | 673 | 89.1k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 89.1k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 89.1k | _wait_for_finish_dependency_timer = | 677 | 89.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 89.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 89.1k | if constexpr (!is_fake_shared) { | 680 | 89.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 89.1k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 89.1k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 89.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 89.1k | _dependency = _shared_state->create_sink_dependency( | 697 | 89.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 89.1k | } | 699 | 89.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 89.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 89.1k | } | 702 | | | 703 | 89.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 89.1k | _rows_input_counter = | 708 | 89.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 89.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 89.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 89.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 89.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 89.1k | _memory_used_counter = | 714 | 89.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 89.1k | _common_profile->add_info_string("IsColocate", | 716 | 89.1k | std::to_string(_parent->is_colocated_operator())); | 717 | 89.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 89.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 89.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 89.1k | return Status::OK(); | 721 | 89.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 81.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 81.7k | _operator_profile = | 664 | 81.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 81.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 81.7k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 81.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 81.7k | _operator_profile->add_child(_common_profile, true); | 673 | 81.7k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 81.7k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 81.7k | _wait_for_finish_dependency_timer = | 677 | 81.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 81.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 81.7k | if constexpr (!is_fake_shared) { | 680 | 81.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 81.8k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 81.8k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 81.8k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 81.8k | ? 0 | 688 | 81.8k | : info.task_idx] | 689 | 81.8k | .get(); | 690 | 81.8k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 81.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 81.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 81.7k | } | 702 | | | 703 | 81.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 81.7k | _rows_input_counter = | 708 | 81.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 81.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 81.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 81.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 81.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 81.7k | _memory_used_counter = | 714 | 81.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 81.7k | _common_profile->add_info_string("IsColocate", | 716 | 81.7k | std::to_string(_parent->is_colocated_operator())); | 717 | 81.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 81.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 81.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 81.7k | return Status::OK(); | 721 | 81.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 152 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 152 | _operator_profile = | 664 | 152 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 152 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 152 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 152 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 152 | _operator_profile->add_child(_common_profile, true); | 673 | 152 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 152 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 152 | _wait_for_finish_dependency_timer = | 677 | 152 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 152 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 152 | if constexpr (!is_fake_shared) { | 680 | 152 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 152 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 152 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 152 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 152 | _dependency = _shared_state->create_sink_dependency( | 697 | 152 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 152 | } | 699 | 152 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 152 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 152 | } | 702 | | | 703 | 152 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 152 | _rows_input_counter = | 708 | 152 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 152 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 152 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 152 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 152 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 152 | _memory_used_counter = | 714 | 152 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 152 | _common_profile->add_info_string("IsColocate", | 716 | 152 | std::to_string(_parent->is_colocated_operator())); | 717 | 152 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 152 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 152 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 152 | return Status::OK(); | 721 | 152 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 547k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 547k | _operator_profile = | 664 | 547k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 547k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 547k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 547k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 547k | _operator_profile->add_child(_common_profile, true); | 673 | 547k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 547k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 547k | _wait_for_finish_dependency_timer = | 677 | 547k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 547k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | | if constexpr (!is_fake_shared) { | 680 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | | ? 0 | 688 | | : info.task_idx] | 689 | | .get(); | 690 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | | _dependency = _shared_state->create_sink_dependency( | 697 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | | } | 699 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | | } | 702 | | | 703 | 547k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 547k | _rows_input_counter = | 708 | 547k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 547k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 547k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 547k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 547k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 547k | _memory_used_counter = | 714 | 547k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 547k | _common_profile->add_info_string("IsColocate", | 716 | 547k | std::to_string(_parent->is_colocated_operator())); | 717 | 547k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 547k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 547k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 547k | return Status::OK(); | 721 | 547k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.60k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.60k | _operator_profile = | 664 | 8.60k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.60k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.60k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.60k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.60k | _operator_profile->add_child(_common_profile, true); | 673 | 8.60k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.60k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.60k | _wait_for_finish_dependency_timer = | 677 | 8.60k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.60k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.60k | if constexpr (!is_fake_shared) { | 680 | 8.60k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.60k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.60k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.60k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.60k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.60k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.60k | } | 699 | 8.60k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.60k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.60k | } | 702 | | | 703 | 8.60k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.60k | _rows_input_counter = | 708 | 8.60k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.60k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.60k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.60k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.60k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.60k | _memory_used_counter = | 714 | 8.60k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.60k | _common_profile->add_info_string("IsColocate", | 716 | 8.60k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.60k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.60k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.60k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.60k | return Status::OK(); | 721 | 8.60k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 403 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 403 | _operator_profile = | 664 | 403 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 403 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 403 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 403 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 403 | _operator_profile->add_child(_common_profile, true); | 673 | 403 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 403 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 403 | _wait_for_finish_dependency_timer = | 677 | 403 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 403 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 403 | if constexpr (!is_fake_shared) { | 680 | 403 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 403 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 403 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 403 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 403 | _dependency = _shared_state->create_sink_dependency( | 697 | 403 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 403 | } | 699 | 403 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 403 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 403 | } | 702 | | | 703 | 403 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 403 | _rows_input_counter = | 708 | 403 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 403 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 403 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 403 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 403 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 403 | _memory_used_counter = | 714 | 403 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 403 | _common_profile->add_info_string("IsColocate", | 716 | 403 | std::to_string(_parent->is_colocated_operator())); | 717 | 403 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 403 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 403 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 403 | return Status::OK(); | 721 | 403 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.08k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.08k | _operator_profile = | 664 | 2.08k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.08k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.08k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2.08k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.08k | _operator_profile->add_child(_common_profile, true); | 673 | 2.08k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.08k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.08k | _wait_for_finish_dependency_timer = | 677 | 2.08k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.08k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.08k | if constexpr (!is_fake_shared) { | 680 | 2.08k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.08k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2.08k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.08k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.08k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.08k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.08k | } | 699 | 2.08k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.08k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.08k | } | 702 | | | 703 | 2.08k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2.08k | _rows_input_counter = | 708 | 2.08k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.08k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.08k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.08k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.08k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.08k | _memory_used_counter = | 714 | 2.08k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.08k | _common_profile->add_info_string("IsColocate", | 716 | 2.08k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.08k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.08k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.08k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.08k | return Status::OK(); | 721 | 2.08k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.5k | _operator_profile = | 664 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.5k | _operator_profile->add_child(_common_profile, true); | 673 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.5k | _wait_for_finish_dependency_timer = | 677 | 12.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.5k | if constexpr (!is_fake_shared) { | 680 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.5k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.5k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.5k | } | 699 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.5k | } | 702 | | | 703 | 12.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.5k | _rows_input_counter = | 708 | 12.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.5k | _memory_used_counter = | 714 | 12.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.5k | _common_profile->add_info_string("IsColocate", | 716 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.5k | return Status::OK(); | 721 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 284k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 284k | _operator_profile = | 664 | 284k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 284k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 284k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 284k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 284k | _operator_profile->add_child(_common_profile, true); | 673 | 284k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 284k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 284k | _wait_for_finish_dependency_timer = | 677 | 284k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 284k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 284k | if constexpr (!is_fake_shared) { | 680 | 284k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 284k | info.shared_state_map.end()) { | 682 | 284k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 284k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 284k | } | 685 | 284k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 284k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 284k | ? 0 | 688 | 284k | : info.task_idx] | 689 | 284k | .get(); | 690 | 284k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | 18.4E | DCHECK(false); | 694 | 18.4E | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 284k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 284k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 284k | } | 702 | | | 703 | 284k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 284k | _rows_input_counter = | 708 | 284k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 284k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 284k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 284k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 284k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 284k | _memory_used_counter = | 714 | 284k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 284k | _common_profile->add_info_string("IsColocate", | 716 | 284k | std::to_string(_parent->is_colocated_operator())); | 717 | 284k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 284k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 284k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 284k | return Status::OK(); | 721 | 284k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 458k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 458k | _operator_profile = | 664 | 458k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 458k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 458k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 458k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 458k | _operator_profile->add_child(_common_profile, true); | 673 | 458k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 458k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 458k | _wait_for_finish_dependency_timer = | 677 | 458k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 458k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 458k | if constexpr (!is_fake_shared) { | 680 | 458k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 458k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 458k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 458k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 458k | _dependency = _shared_state->create_sink_dependency( | 697 | 458k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 458k | } | 699 | 458k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 458k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 458k | } | 702 | | | 703 | 458k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 458k | _rows_input_counter = | 708 | 458k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 458k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 458k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 458k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 458k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 458k | _memory_used_counter = | 714 | 458k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 458k | _common_profile->add_info_string("IsColocate", | 716 | 458k | std::to_string(_parent->is_colocated_operator())); | 717 | 458k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 458k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 458k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 458k | return Status::OK(); | 721 | 458k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 25 | _operator_profile = | 664 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 25 | _operator_profile->add_child(_common_profile, true); | 673 | 25 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 25 | _wait_for_finish_dependency_timer = | 677 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 25 | if constexpr (!is_fake_shared) { | 680 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 25 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 25 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 25 | _dependency = _shared_state->create_sink_dependency( | 697 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 25 | } | 699 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 25 | } | 702 | | | 703 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 25 | _rows_input_counter = | 708 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 25 | _memory_used_counter = | 714 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 25 | _common_profile->add_info_string("IsColocate", | 716 | 25 | std::to_string(_parent->is_colocated_operator())); | 717 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 25 | return Status::OK(); | 721 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 338 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 338 | _operator_profile = | 664 | 338 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 338 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 338 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 338 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 338 | _operator_profile->add_child(_common_profile, true); | 673 | 338 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 338 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 338 | _wait_for_finish_dependency_timer = | 677 | 338 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 338 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 338 | if constexpr (!is_fake_shared) { | 680 | 338 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 338 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 338 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 338 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 338 | _dependency = _shared_state->create_sink_dependency( | 697 | 338 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 338 | } | 699 | 338 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 338 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 338 | } | 702 | | | 703 | 338 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 338 | _rows_input_counter = | 708 | 338 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 338 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 338 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 338 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 338 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 338 | _memory_used_counter = | 714 | 338 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 338 | _common_profile->add_info_string("IsColocate", | 716 | 338 | std::to_string(_parent->is_colocated_operator())); | 717 | 338 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 338 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 338 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 338 | return Status::OK(); | 721 | 338 | } |
|
722 | | |
723 | | template <typename SharedState> |
724 | 1.85M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.85M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.85M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.30M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.30M | } |
731 | 1.85M | _closed = true; |
732 | 1.85M | return Status::OK(); |
733 | 1.85M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 117k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 117k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 117k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 117k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 117k | } | 731 | 117k | _closed = true; | 732 | 117k | return Status::OK(); | 733 | 117k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1 | } | 731 | 1 | _closed = true; | 732 | 1 | return Status::OK(); | 733 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 228k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 228k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 228k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 228k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 228k | } | 731 | 228k | _closed = true; | 732 | 228k | return Status::OK(); | 733 | 228k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 25 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 25 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 23 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 23 | } | 731 | 23 | _closed = true; | 732 | 23 | return Status::OK(); | 733 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.29k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.29k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.29k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.29k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.29k | } | 731 | 6.29k | _closed = true; | 732 | 6.29k | return Status::OK(); | 733 | 6.29k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 9.59k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 9.59k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 9.59k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 9.59k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 9.59k | } | 731 | 9.59k | _closed = true; | 732 | 9.59k | return Status::OK(); | 733 | 9.59k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 88.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 88.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 88.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 88.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 88.9k | } | 731 | 88.9k | _closed = true; | 732 | 88.9k | return Status::OK(); | 733 | 88.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 81.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 81.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 81.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 81.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 81.6k | } | 731 | 81.6k | _closed = true; | 732 | 81.6k | return Status::OK(); | 733 | 81.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 141 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 141 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 141 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 141 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 141 | } | 731 | 141 | _closed = true; | 732 | 141 | return Status::OK(); | 733 | 141 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 550k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 550k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | | } | 731 | 550k | _closed = true; | 732 | 550k | return Status::OK(); | 733 | 550k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.61k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.61k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.61k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.61k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.61k | } | 731 | 8.61k | _closed = true; | 732 | 8.61k | return Status::OK(); | 733 | 8.61k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 300 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 300 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 300 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 300 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 300 | } | 731 | 300 | _closed = true; | 732 | 300 | return Status::OK(); | 733 | 300 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.09k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.09k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.09k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.09k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.09k | } | 731 | 2.09k | _closed = true; | 732 | 2.09k | return Status::OK(); | 733 | 2.09k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.5k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.5k | } | 731 | 12.5k | _closed = true; | 732 | 12.5k | return Status::OK(); | 733 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 285k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 285k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 285k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 285k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 285k | } | 731 | 285k | _closed = true; | 732 | 285k | return Status::OK(); | 733 | 285k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 462k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 462k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 462k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 462k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 462k | } | 731 | 462k | _closed = true; | 732 | 462k | return Status::OK(); | 733 | 462k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 14 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 14 | } | 731 | 14 | _closed = true; | 732 | 14 | return Status::OK(); | 733 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 338 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 338 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 338 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 338 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 338 | } | 731 | 338 | _closed = true; | 732 | 338 | return Status::OK(); | 733 | 338 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 6.85k | bool* eos) { |
738 | 6.85k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 6.84k | return pull(state, block, eos); |
740 | 6.85k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 38 | bool* eos) { | 738 | 38 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 38 | return pull(state, block, eos); | 740 | 38 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 6.81k | bool* eos) { | 738 | 6.81k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 6.80k | return pull(state, block, eos); | 740 | 6.81k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 617k | bool* eos) { |
745 | 617k | auto& local_state = get_local_state(state); |
746 | 617k | if (need_more_input_data(state)) { |
747 | 586k | local_state._child_block->clear_column_data( |
748 | 586k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 586k | .num_materialized_slots()); |
750 | 586k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 586k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 586k | *eos = local_state._child_eos; |
753 | 586k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 79.9k | return Status::OK(); |
755 | 79.9k | } |
756 | 506k | { |
757 | 506k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 506k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 506k | } |
760 | 506k | } |
761 | | |
762 | 537k | if (!need_more_input_data(state)) { |
763 | 507k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 507k | bool new_eos = false; |
765 | 507k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 507k | if (new_eos) { |
767 | 427k | *eos = true; |
768 | 427k | } else if (!need_more_input_data(state)) { |
769 | 25.0k | *eos = false; |
770 | 25.0k | } |
771 | 507k | } |
772 | 537k | return Status::OK(); |
773 | 537k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 144k | bool* eos) { | 745 | 144k | auto& local_state = get_local_state(state); | 746 | 144k | if (need_more_input_data(state)) { | 747 | 125k | local_state._child_block->clear_column_data( | 748 | 125k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 125k | .num_materialized_slots()); | 750 | 125k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 125k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 125k | *eos = local_state._child_eos; | 753 | 125k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 39.0k | return Status::OK(); | 755 | 39.0k | } | 756 | 86.1k | { | 757 | 86.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 86.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 86.1k | } | 760 | 86.1k | } | 761 | | | 762 | 105k | if (!need_more_input_data(state)) { | 763 | 105k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 105k | bool new_eos = false; | 765 | 105k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 105k | if (new_eos) { | 767 | 45.3k | *eos = true; | 768 | 60.1k | } else if (!need_more_input_data(state)) { | 769 | 11.9k | *eos = false; | 770 | 11.9k | } | 771 | 105k | } | 772 | 105k | return Status::OK(); | 773 | 105k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.48k | bool* eos) { | 745 | 4.48k | auto& local_state = get_local_state(state); | 746 | 4.48k | if (need_more_input_data(state)) { | 747 | 2.44k | local_state._child_block->clear_column_data( | 748 | 2.44k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.44k | .num_materialized_slots()); | 750 | 2.44k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.44k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.44k | *eos = local_state._child_eos; | 753 | 2.44k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 345 | return Status::OK(); | 755 | 345 | } | 756 | 2.10k | { | 757 | 2.10k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 2.10k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 2.10k | } | 760 | 2.10k | } | 761 | | | 762 | 4.15k | if (!need_more_input_data(state)) { | 763 | 4.15k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 4.15k | bool new_eos = false; | 765 | 4.15k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 4.15k | if (new_eos) { | 767 | 1.50k | *eos = true; | 768 | 2.65k | } else if (!need_more_input_data(state)) { | 769 | 2.04k | *eos = false; | 770 | 2.04k | } | 771 | 4.15k | } | 772 | 4.13k | return Status::OK(); | 773 | 4.13k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.79k | bool* eos) { | 745 | 1.79k | auto& local_state = get_local_state(state); | 746 | 1.79k | if (need_more_input_data(state)) { | 747 | 1.79k | local_state._child_block->clear_column_data( | 748 | 1.79k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.79k | .num_materialized_slots()); | 750 | 1.79k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.79k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.79k | *eos = local_state._child_eos; | 753 | 1.79k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 763 | return Status::OK(); | 755 | 763 | } | 756 | 1.02k | { | 757 | 1.02k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.02k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.02k | } | 760 | 1.02k | } | 761 | | | 762 | 1.02k | if (!need_more_input_data(state)) { | 763 | 1.02k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.02k | bool new_eos = false; | 765 | 1.02k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.02k | if (new_eos) { | 767 | 785 | *eos = true; | 768 | 785 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.02k | } | 772 | 1.02k | return Status::OK(); | 773 | 1.02k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 20.7k | bool* eos) { | 745 | 20.7k | auto& local_state = get_local_state(state); | 746 | 20.8k | if (need_more_input_data(state)) { | 747 | 20.8k | local_state._child_block->clear_column_data( | 748 | 20.8k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 20.8k | .num_materialized_slots()); | 750 | 20.8k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 20.8k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 20.8k | *eos = local_state._child_eos; | 753 | 20.8k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.72k | return Status::OK(); | 755 | 4.72k | } | 756 | 16.0k | { | 757 | 16.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 16.0k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 16.0k | } | 760 | 16.0k | } | 761 | | | 762 | 16.0k | if (!need_more_input_data(state)) { | 763 | 8.17k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 8.17k | bool new_eos = false; | 765 | 8.17k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 8.17k | if (new_eos) { | 767 | 8.05k | *eos = true; | 768 | 8.05k | } else if (!need_more_input_data(state)) { | 769 | 17 | *eos = false; | 770 | 17 | } | 771 | 8.17k | } | 772 | 16.0k | return Status::OK(); | 773 | 16.0k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 416k | bool* eos) { | 745 | 416k | auto& local_state = get_local_state(state); | 746 | 416k | if (need_more_input_data(state)) { | 747 | 416k | local_state._child_block->clear_column_data( | 748 | 416k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 416k | .num_materialized_slots()); | 750 | 416k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 416k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 416k | *eos = local_state._child_eos; | 753 | 416k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 33.4k | return Status::OK(); | 755 | 33.4k | } | 756 | 383k | { | 757 | 383k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 383k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 383k | } | 760 | 383k | } | 761 | | | 762 | 382k | if (!need_more_input_data(state)) { | 763 | 361k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 361k | bool new_eos = false; | 765 | 361k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 361k | if (new_eos) { | 767 | 360k | *eos = true; | 768 | 360k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 361k | } | 772 | 382k | return Status::OK(); | 773 | 382k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 22.3k | bool* eos) { | 745 | 22.3k | auto& local_state = get_local_state(state); | 746 | 22.3k | if (need_more_input_data(state)) { | 747 | 11.6k | local_state._child_block->clear_column_data( | 748 | 11.6k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 11.6k | .num_materialized_slots()); | 750 | 11.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 11.6k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 11.6k | *eos = local_state._child_eos; | 753 | 11.6k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 648 | return Status::OK(); | 755 | 648 | } | 756 | 11.0k | { | 757 | 11.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 11.0k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 11.0k | } | 760 | 11.0k | } | 761 | | | 762 | 21.7k | if (!need_more_input_data(state)) { | 763 | 21.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 21.0k | bool new_eos = false; | 765 | 21.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 21.0k | if (new_eos) { | 767 | 6.29k | *eos = true; | 768 | 14.8k | } else if (!need_more_input_data(state)) { | 769 | 10.6k | *eos = false; | 770 | 10.6k | } | 771 | 21.0k | } | 772 | 21.7k | return Status::OK(); | 773 | 21.7k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 7.65k | bool* eos) { | 745 | 7.65k | auto& local_state = get_local_state(state); | 746 | 7.65k | if (need_more_input_data(state)) { | 747 | 7.30k | local_state._child_block->clear_column_data( | 748 | 7.30k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.30k | .num_materialized_slots()); | 750 | 7.30k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.30k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.30k | *eos = local_state._child_eos; | 753 | 7.30k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 965 | return Status::OK(); | 755 | 965 | } | 756 | 6.34k | { | 757 | 6.34k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.34k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.34k | } | 760 | 6.34k | } | 761 | | | 762 | 6.69k | if (!need_more_input_data(state)) { | 763 | 6.69k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.69k | bool new_eos = false; | 765 | 6.69k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.69k | if (new_eos) { | 767 | 4.54k | *eos = true; | 768 | 4.54k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 6.69k | } | 772 | 6.68k | return Status::OK(); | 773 | 6.68k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 46.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 46.4k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 46.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 46.4k | "AsyncWriterDependency", true); |
781 | 46.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 46.4k | _finish_dependency)); |
783 | | |
784 | 46.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 46.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 46.4k | return Status::OK(); |
787 | 46.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 356 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 356 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 356 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 356 | "AsyncWriterDependency", true); | 781 | 356 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 356 | _finish_dependency)); | 783 | | | 784 | 356 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 356 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 356 | return Status::OK(); | 787 | 356 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 46.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 46.0k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 46.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 46.0k | "AsyncWriterDependency", true); | 781 | 46.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 46.0k | _finish_dependency)); | 783 | | | 784 | 46.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 46.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 46.0k | return Status::OK(); | 787 | 46.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 30 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 30 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 30 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 30 | "AsyncWriterDependency", true); | 781 | 30 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 30 | _finish_dependency)); | 783 | | | 784 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 30 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 30 | return Status::OK(); | 787 | 30 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
788 | | |
789 | | template <typename Writer, typename Parent> |
790 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
791 | 46.9k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 46.9k | RETURN_IF_ERROR(Base::open(state)); |
793 | 46.9k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 365k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 318k | RETURN_IF_ERROR( |
796 | 318k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 318k | } |
798 | 46.9k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 46.9k | return Status::OK(); |
800 | 46.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 356 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 356 | RETURN_IF_ERROR(Base::open(state)); | 793 | 356 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.84k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.49k | RETURN_IF_ERROR( | 796 | 1.49k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.49k | } | 798 | 356 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 356 | return Status::OK(); | 800 | 356 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 46.5k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 46.5k | RETURN_IF_ERROR(Base::open(state)); | 793 | 46.5k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 363k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 316k | RETURN_IF_ERROR( | 796 | 316k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 316k | } | 798 | 46.5k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 46.5k | return Status::OK(); | 800 | 46.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 30 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 30 | RETURN_IF_ERROR(Base::open(state)); | 793 | 30 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 540 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 510 | RETURN_IF_ERROR( | 796 | 510 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 510 | } | 798 | 30 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 30 | return Status::OK(); | 800 | 30 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
801 | | |
802 | | template <typename Writer, typename Parent> |
803 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
804 | 63.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 63.2k | return _writer->sink(block, eos); |
806 | 63.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.87k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.87k | return _writer->sink(block, eos); | 806 | 1.87k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 61.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 61.3k | return _writer->sink(block, eos); | 806 | 61.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 30 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 30 | return _writer->sink(block, eos); | 806 | 30 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
807 | | |
808 | | template <typename Writer, typename Parent> |
809 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
810 | 47.0k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 47.0k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 47.0k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 47.0k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
816 | | // if the init failed, the _writer may be nullptr. so here need check |
817 | 47.0k | if (_writer) { |
818 | 47.0k | Status st = _writer->get_writer_status(); |
819 | 47.0k | if (exec_status.ok()) { |
820 | 46.9k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 46.9k | : Status::Cancelled("force close")); |
822 | 46.9k | } else { |
823 | 91 | _writer->force_close(exec_status); |
824 | 91 | } |
825 | | // If there is an error in process_block thread, then we should get the writer |
826 | | // status before call force_close. For example, the thread may failed in commit |
827 | | // transaction. |
828 | 47.0k | RETURN_IF_ERROR(st); |
829 | 47.0k | } |
830 | 46.9k | return Base::close(state, exec_status); |
831 | 47.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 344 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 344 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 344 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 344 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 344 | if (_writer) { | 818 | 344 | Status st = _writer->get_writer_status(); | 819 | 344 | if (exec_status.ok()) { | 820 | 344 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 344 | : Status::Cancelled("force close")); | 822 | 344 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 344 | RETURN_IF_ERROR(st); | 829 | 344 | } | 830 | 344 | return Base::close(state, exec_status); | 831 | 344 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 46.6k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 46.6k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 46.6k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 46.6k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 46.7k | if (_writer) { | 818 | 46.7k | Status st = _writer->get_writer_status(); | 819 | 46.7k | if (exec_status.ok()) { | 820 | 46.6k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 46.6k | : Status::Cancelled("force close")); | 822 | 46.6k | } else { | 823 | 91 | _writer->force_close(exec_status); | 824 | 91 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 46.7k | RETURN_IF_ERROR(st); | 829 | 46.7k | } | 830 | 46.6k | return Base::close(state, exec_status); | 831 | 46.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 30 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 30 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 30 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 30 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 30 | if (_writer) { | 818 | 30 | Status st = _writer->get_writer_status(); | 819 | 30 | if (exec_status.ok()) { | 820 | 30 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 30 | : Status::Cancelled("force close")); | 822 | 30 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 30 | RETURN_IF_ERROR(st); | 829 | 30 | } | 830 | 30 | return Base::close(state, exec_status); | 831 | 30 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
832 | | |
833 | | // An instantiation added outside the macros below needs the matching |
834 | | // 'extern template' declaration in the operator's header (enforced by |
835 | | // build-support/check-extern-template-pairing.py). Instantiations expanded |
836 | | // through DECLARE_OPERATOR are invisible to that check -- macro bodies are |
837 | | // skipped -- so their extern pairing has to be kept in sync by hand. |
838 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
839 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
840 | | DECLARE_OPERATOR(ResultSinkLocalState) |
841 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
842 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
843 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
844 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
845 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
846 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
847 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
848 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
849 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
850 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
851 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
852 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
853 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
854 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
855 | | DECLARE_OPERATOR(SortSinkLocalState) |
856 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
857 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
858 | | DECLARE_OPERATOR(AggSinkLocalState) |
859 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
860 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
861 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
862 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
863 | | DECLARE_OPERATOR(UnionSinkLocalState) |
864 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
865 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
866 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
867 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
868 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
869 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
870 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
871 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
872 | | DECLARE_OPERATOR(CacheSinkLocalState) |
873 | | DECLARE_OPERATOR(DictSinkLocalState) |
874 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
875 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
876 | | |
877 | | #undef DECLARE_OPERATOR |
878 | | |
879 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
880 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
881 | | DECLARE_OPERATOR(OlapScanLocalState) |
882 | | DECLARE_OPERATOR(GroupCommitLocalState) |
883 | | DECLARE_OPERATOR(JDBCScanLocalState) |
884 | | DECLARE_OPERATOR(FileScanLocalState) |
885 | | DECLARE_OPERATOR(AnalyticLocalState) |
886 | | DECLARE_OPERATOR(SortLocalState) |
887 | | DECLARE_OPERATOR(SpillSortLocalState) |
888 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
889 | | DECLARE_OPERATOR(AggLocalState) |
890 | | DECLARE_OPERATOR(BucketedAggLocalState) |
891 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
892 | | DECLARE_OPERATOR(TableFunctionLocalState) |
893 | | DECLARE_OPERATOR(ExchangeLocalState) |
894 | | DECLARE_OPERATOR(RepeatLocalState) |
895 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
896 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
897 | | DECLARE_OPERATOR(EmptySetLocalState) |
898 | | DECLARE_OPERATOR(UnionSourceLocalState) |
899 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
900 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
901 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
902 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
903 | | DECLARE_OPERATOR(DataGenLocalState) |
904 | | DECLARE_OPERATOR(SchemaScanLocalState) |
905 | | DECLARE_OPERATOR(MetaScanLocalState) |
906 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
907 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
908 | | DECLARE_OPERATOR(CacheSourceLocalState) |
909 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
910 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
911 | | |
912 | | #ifdef BE_TEST |
913 | | DECLARE_OPERATOR(MockLocalState) |
914 | | DECLARE_OPERATOR(MockScanLocalState) |
915 | | #endif |
916 | | #undef DECLARE_OPERATOR |
917 | | |
918 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
919 | | template class StreamingOperatorX<SelectLocalState>; |
920 | | |
921 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
922 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
923 | | template class StatefulOperatorX<RepeatLocalState>; |
924 | | template class StatefulOperatorX<MaterializationLocalState>; |
925 | | template class StatefulOperatorX<StreamingAggLocalState>; |
926 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
927 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
928 | | template class StatefulOperatorX<TableFunctionLocalState>; |
929 | | |
930 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
931 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
932 | | template class PipelineXSinkLocalState<SortSharedState>; |
933 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
934 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
935 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
936 | | template class PipelineXSinkLocalState<AggSharedState>; |
937 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
938 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
939 | | template class PipelineXSinkLocalState<FakeSharedState>; |
940 | | template class PipelineXSinkLocalState<UnionSharedState>; |
941 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
942 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
943 | | template class PipelineXSinkLocalState<SetSharedState>; |
944 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
945 | | template class PipelineXSinkLocalState<BasicSharedState>; |
946 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
947 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
948 | | |
949 | | template class PipelineXLocalState<HashJoinSharedState>; |
950 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
951 | | template class PipelineXLocalState<SortSharedState>; |
952 | | template class PipelineXLocalState<SpillSortSharedState>; |
953 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
954 | | template class PipelineXLocalState<AnalyticSharedState>; |
955 | | template class PipelineXLocalState<AggSharedState>; |
956 | | template class PipelineXLocalState<BucketedAggSharedState>; |
957 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
958 | | template class PipelineXLocalState<FakeSharedState>; |
959 | | template class PipelineXLocalState<UnionSharedState>; |
960 | | template class PipelineXLocalState<DataQueueSharedState>; |
961 | | template class PipelineXLocalState<MultiCastSharedState>; |
962 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
963 | | template class PipelineXLocalState<SetSharedState>; |
964 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
965 | | template class PipelineXLocalState<BasicSharedState>; |
966 | | template class PipelineXLocalState<RecCTESharedState>; |
967 | | |
968 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
969 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
970 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
971 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
972 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
973 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
974 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
975 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
976 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
977 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
978 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
979 | | |
980 | | #ifdef BE_TEST |
981 | | template class OperatorX<DummyOperatorLocalState>; |
982 | | template class DataSinkOperatorX<DummySinkLocalState>; |
983 | | #endif |
984 | | |
985 | | } // namespace doris |