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.81M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.81M | if (_parent->nereids_id() == -1) { |
122 | 956k | return fmt::format("(id={})", _parent->node_id()); |
123 | 956k | } else { |
124 | 858k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 858k | } |
126 | 1.81M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 68.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 68.0k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 68.0k | } else { | 124 | 68.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 68.0k | } | 126 | 68.0k | } |
_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 | 244k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 244k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 244k | } else { | 124 | 244k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 244k | } | 126 | 244k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 37 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 37 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 37 | } else { | 124 | 37 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 37 | } | 126 | 37 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 6.51k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.51k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 6.51k | } else { | 124 | 6.51k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 6.51k | } | 126 | 6.51k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 11.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 11.7k | if (_parent->nereids_id() == -1) { | 122 | 16 | return fmt::format("(id={})", _parent->node_id()); | 123 | 11.7k | } else { | 124 | 11.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 11.7k | } | 126 | 11.7k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 95.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 95.2k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 95.2k | } else { | 124 | 95.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 95.2k | } | 126 | 95.2k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 78.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 78.1k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 78.1k | } else { | 124 | 78.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 78.1k | } | 126 | 78.1k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 146 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 146 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 146 | } else { | 124 | 146 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 146 | } | 126 | 146 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 561k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 561k | if (_parent->nereids_id() == -1) { | 122 | 269k | return fmt::format("(id={})", _parent->node_id()); | 123 | 291k | } else { | 124 | 291k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 291k | } | 126 | 561k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 55.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 55.6k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 55.6k | } else { | 124 | 55.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 55.6k | } | 126 | 55.6k | } |
_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.26k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.26k | if (_parent->nereids_id() == -1) { | 122 | 5.25k | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.25k | } else { | 124 | 10 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 10 | } | 126 | 5.26k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 421 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 421 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 319 | } else { | 124 | 319 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 319 | } | 126 | 421 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.05k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.05k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.04k | } else { | 124 | 5.04k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.04k | } | 126 | 5.05k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 684k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 684k | if (_parent->nereids_id() == -1) { | 122 | 681k | return fmt::format("(id={})", _parent->node_id()); | 123 | 681k | } else { | 124 | 2.28k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 2.28k | } | 126 | 684k | } |
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.27M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.27M | if (_parent->nereids_id() == -1) { |
131 | 700k | return fmt::format("(id={})", _parent->node_id()); |
132 | 700k | } else { |
133 | 572k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 572k | } |
135 | 1.27M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 116k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 116k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 116k | } else { | 133 | 116k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 116k | } | 135 | 116k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2 | if (_parent->nereids_id() == -1) { | 131 | 1 | return fmt::format("(id={})", _parent->node_id()); | 132 | 1 | } else { | 133 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1 | } | 135 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 252k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 252k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 252k | } else { | 133 | 252k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 252k | } | 135 | 252k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 44 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 44 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 44 | } else { | 133 | 44 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 44 | } | 135 | 44 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6.54k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.54k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.54k | } else { | 133 | 6.54k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.54k | } | 135 | 6.54k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 11.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 11.8k | if (_parent->nereids_id() == -1) { | 131 | 16 | return fmt::format("(id={})", _parent->node_id()); | 132 | 11.7k | } else { | 133 | 11.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 11.7k | } | 135 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 96.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 96.3k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 96.3k | } else { | 133 | 96.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 96.3k | } | 135 | 96.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 77.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 77.9k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 77.9k | } else { | 133 | 77.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 77.9k | } | 135 | 77.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 156 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 156 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 156 | } else { | 133 | 156 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 156 | } | 135 | 156 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 17 | if (_parent->nereids_id() == -1) { | 131 | 13 | return fmt::format("(id={})", _parent->node_id()); | 132 | 13 | } else { | 133 | 4 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 4 | } | 135 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 10.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 10.8k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 10.8k | } else { | 133 | 10.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 10.8k | } | 135 | 10.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 423 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 423 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 321 | } else { | 133 | 321 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 321 | } | 135 | 423 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.6k | if (_parent->nereids_id() == -1) { | 131 | 12.6k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 271k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 272k | if (_parent->nereids_id() == -1) { | 131 | 272k | 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 | 271k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 414k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 415k | if (_parent->nereids_id() == -1) { | 131 | 415k | 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 | 414k | } |
_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 | 31.1k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 31.1k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 31.1k | _terminated = true; |
143 | 31.1k | return Status::OK(); |
144 | 31.1k | } _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.43k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.43k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.43k | _terminated = true; | 143 | 2.43k | return Status::OK(); | 144 | 2.43k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2 | _terminated = true; | 143 | 2 | return Status::OK(); | 144 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3 | _terminated = true; | 143 | 3 | return Status::OK(); | 144 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.96k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.96k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.96k | _terminated = true; | 143 | 1.96k | return Status::OK(); | 144 | 1.96k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 995 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 995 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 995 | _terminated = true; | 143 | 995 | return Status::OK(); | 144 | 995 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 595 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 595 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 595 | _terminated = true; | 143 | 595 | return Status::OK(); | 144 | 595 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 448 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 448 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 448 | _terminated = true; | 143 | 448 | return Status::OK(); | 144 | 448 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 5 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 5 | _terminated = true; | 143 | 5 | return Status::OK(); | 144 | 5 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 213 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 213 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 213 | _terminated = true; | 143 | 213 | return Status::OK(); | 144 | 213 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 31 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 31 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 31 | _terminated = true; | 143 | 31 | return Status::OK(); | 144 | 31 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 296 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 296 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 296 | _terminated = true; | 143 | 296 | return Status::OK(); | 144 | 296 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 128 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 128 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 128 | _terminated = true; | 143 | 128 | return Status::OK(); | 144 | 128 | } |
|
145 | | |
146 | 313k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 313k | return _child && _child->is_serial_operator() && !is_source() |
148 | 313k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 313k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 313k | } |
151 | | |
152 | 22.0k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 22.0k | if (!_child) { |
154 | 20.8k | return false; |
155 | 20.8k | } |
156 | 1.18k | if (_child->is_serial_operator()) { |
157 | 153 | return true; |
158 | 153 | } |
159 | 1.03k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 1.03k | return child_distribution.need_local_exchange() && |
161 | 1.03k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.18k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 14.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 14.7k | fmt::memory_buffer debug_string_buffer; |
167 | 14.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 14.7k | return fmt::to_string(debug_string_buffer); |
169 | 14.7k | } 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 | 14.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 14.7k | fmt::memory_buffer debug_string_buffer; | 167 | 14.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 14.7k | return fmt::to_string(debug_string_buffer); | 169 | 14.7k | } |
_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 | 14.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 14.7k | fmt::memory_buffer debug_string_buffer; |
174 | 14.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 14.7k | return fmt::to_string(debug_string_buffer); |
176 | 14.7k | } 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 | 14.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 14.7k | fmt::memory_buffer debug_string_buffer; | 174 | 14.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 14.7k | return fmt::to_string(debug_string_buffer); | 176 | 14.7k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 14.7k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 14.7k | fmt::memory_buffer debug_string_buffer; |
180 | 14.7k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 14.7k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 14.7k | _is_serial_operator); |
183 | 14.7k | return fmt::to_string(debug_string_buffer); |
184 | 14.7k | } |
185 | | |
186 | 14.7k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 14.7k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 14.7k | } |
189 | | |
190 | 680k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 680k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 680k | _nereids_id = tnode.nereids_id; |
193 | 680k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 5.60k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 5.60k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 5.60k | 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 | 5.60k | } |
206 | 680k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 680k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 680k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 680k | } else if (tnode.__isset.conjuncts) { |
212 | 276k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 276k | VExprContextSPtr context; |
214 | 276k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 276k | _conjuncts.emplace_back(context); |
216 | 276k | } |
217 | 101k | } |
218 | | |
219 | | // create the projections expr |
220 | 680k | if (tnode.__isset.projections) { |
221 | 267k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 267k | } |
223 | 680k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 5.61k | DCHECK(has_projection()) << "no final projections"; |
225 | 5.61k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 9.35k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 9.35k | VExprContextSPtrs projections; |
228 | 9.35k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 9.35k | _projection->intermediate_projections.push_back(projections); |
230 | 9.35k | } |
231 | 5.61k | } |
232 | 680k | return Status::OK(); |
233 | 680k | } |
234 | | |
235 | 707k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 707k | for (auto& conjunct : _conjuncts) { |
237 | 276k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 276k | } |
239 | 707k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 657k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 340k | return a->execute_cost() < b->execute_cost(); |
242 | 340k | }); |
243 | 657k | }; |
244 | | |
245 | 707k | if (has_projection()) { |
246 | 267k | auto& projection = *_projection; |
247 | 276k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 9.35k | const auto& input_row_desc = |
249 | 9.35k | i == 0 ? operator_row_desc_before_projection() |
250 | 9.35k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 9.35k | RETURN_IF_ERROR( |
252 | 9.35k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 9.35k | } |
254 | 267k | const auto& final_projection_input_row_desc = |
255 | 267k | projection.intermediate_output_row_descriptors.empty() |
256 | 267k | ? operator_row_desc_before_projection() |
257 | 267k | : projection.intermediate_output_row_descriptors.back(); |
258 | 267k | RETURN_IF_ERROR( |
259 | 267k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 267k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 267k | projection.output_row_descriptor)); |
262 | 267k | } |
263 | | |
264 | 707k | for (auto& conjunct : _conjuncts) { |
265 | 276k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 276k | } |
267 | 707k | if (has_projection()) { |
268 | 267k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 267k | for (auto& projections : _projection->intermediate_projections) { |
270 | 9.35k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 9.35k | } |
272 | 267k | } |
273 | 707k | if (_child && !is_source()) { |
274 | 96.2k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 96.2k | } |
276 | | |
277 | 707k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 707k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 707k | return Status::OK(); |
283 | 707k | } |
284 | | |
285 | 8.05k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 8.05k | if (_child && !is_source()) { |
287 | 895 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 895 | } |
289 | 8.05k | auto result = state->get_local_state_result(operator_id()); |
290 | 8.05k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 8.05k | return result.value()->terminate(state); |
294 | 8.05k | } |
295 | | |
296 | 4.84M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.84M | if (_child && !is_source()) { |
298 | 711k | RETURN_IF_ERROR(_child->close(state)); |
299 | 711k | } |
300 | 4.84M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.84M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.84M | return result.value()->close(state); |
305 | 4.84M | } |
306 | | |
307 | 305k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 305k | _origin_block.clear_column_data( |
309 | 305k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 305k | } |
311 | | |
312 | 868k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 868k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 868k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 868k | return Status::OK(); |
317 | 868k | } |
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 | 305k | Block* output_block) const { |
326 | 305k | auto* local_state = state->get_local_state(operator_id()); |
327 | 305k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 305k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 305k | const size_t rows = origin_block->rows(); |
330 | 305k | if (rows == 0) { |
331 | 164k | return Status::OK(); |
332 | 164k | } |
333 | 141k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 141k | { |
336 | 141k | Block input_block = *origin_block; |
337 | | |
338 | 141k | ColumnsWithTypeAndName new_columns; |
339 | 141k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 3.07k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 3.07k | new_columns.resize(projections.size()); |
345 | 51.8k | for (int i = 0; i < projections.size(); i++) { |
346 | 48.7k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 48.7k | 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 | 48.7k | } |
355 | 3.07k | Block tmp_block {new_columns}; |
356 | 3.07k | input_block.swap(tmp_block); |
357 | 3.07k | } |
358 | | |
359 | 141k | 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 | 141k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 141k | output_block, _projection->output_row_descriptor); |
368 | 141k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 141k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 141k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 785k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 643k | ColumnPtr column_ptr; |
374 | 643k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 643k | 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 | 643k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 643k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 643k | if (column_ptr->is_exclusive()) { |
386 | 228k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 414k | } else { |
388 | 414k | shared_columns[i] = std::move(column_ptr); |
389 | 414k | } |
390 | 643k | } |
391 | | |
392 | 141k | scoped_mutable_block.restore(); |
393 | 785k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 643k | if (shared_columns[i]) { |
395 | 414k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 414k | } |
397 | 643k | } |
398 | 141k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 141k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 141k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 141k | return Status::OK(); |
405 | 141k | } |
406 | | |
407 | 4.30M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.30M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.30M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.30M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.30M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.30M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.30M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.30M | return Status::OK(); |
415 | 4.30M | } |
416 | 4.30M | } |
417 | 4.30M | }); |
418 | | |
419 | 4.30M | Status status; |
420 | 4.30M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.30M | Defer defer([&]() { |
422 | 4.30M | if (status.ok()) { |
423 | 4.30M | local_state->update_output_block_counters(*block); |
424 | 4.30M | } |
425 | 4.30M | }); |
426 | 4.30M | if (has_projection()) { |
427 | 305k | local_state->clear_origin_block(); |
428 | 305k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 305k | if (UNLIKELY(!status.ok())) { |
430 | 25 | return status; |
431 | 25 | } |
432 | 305k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 305k | return status; |
434 | 305k | } |
435 | 3.99M | status = get_block(state, block, eos); |
436 | 3.99M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.99M | return status; |
438 | 3.99M | } |
439 | | |
440 | 2.96M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.96M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.62k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.62k | *eos = true; |
444 | 9.62k | } |
445 | | |
446 | 2.96M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.96M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.96M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.96M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.96M | if (op_name == arg_op_name) { |
452 | 2.96M | *eos = true; |
453 | 2.96M | } |
454 | 2.96M | }); |
455 | | |
456 | 2.96M | if (auto rows = block->rows()) { |
457 | 766k | _num_rows_returned += rows; |
458 | 766k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 766k | } |
460 | 2.96M | } |
461 | | |
462 | 31.1k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 31.1k | auto result = state->get_sink_local_state_result(); |
464 | 31.1k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 31.1k | return result.value()->terminate(state); |
468 | 31.1k | } |
469 | | |
470 | 14.7k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 14.7k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 14.7k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 14.7k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 14.7k | return fmt::to_string(debug_string_buffer); |
476 | 14.7k | } |
477 | | |
478 | 14.7k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 14.7k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 14.7k | } |
481 | | |
482 | 351k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 351k | std::string op_name = "UNKNOWN_SINK"; |
484 | 351k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 352k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 352k | op_name = it->second; |
488 | 352k | } |
489 | 351k | _name = op_name + "_OPERATOR"; |
490 | 351k | return Status::OK(); |
491 | 351k | } |
492 | | |
493 | 305k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 305k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 305k | _nereids_id = tnode.nereids_id; |
496 | 305k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 305k | _name = substr + "_SINK_OPERATOR"; |
498 | 305k | return Status::OK(); |
499 | 305k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.80M | LocalSinkStateInfo& info) { |
504 | 1.80M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.80M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.80M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.80M | return Status::OK(); |
508 | 1.80M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 116k | LocalSinkStateInfo& info) { | 504 | 116k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 116k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 116k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 116k | return Status::OK(); | 508 | 116k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 368k | LocalSinkStateInfo& info) { | 504 | 368k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 368k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 368k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 368k | return Status::OK(); | 508 | 368k | } |
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 | 360 | LocalSinkStateInfo& info) { | 504 | 360 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 360 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 360 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 360 | return Status::OK(); | 508 | 360 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 47.8k | LocalSinkStateInfo& info) { | 504 | 47.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 47.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 47.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 47.8k | return Status::OK(); | 508 | 47.8k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 26 | LocalSinkStateInfo& info) { | 504 | 26 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 26 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 26 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 26 | return Status::OK(); | 508 | 26 | } |
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 | 11.8k | LocalSinkStateInfo& info) { | 504 | 11.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 11.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 11.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 11.8k | return Status::OK(); | 508 | 11.8k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 15 | LocalSinkStateInfo& info) { | 504 | 15 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 15 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 15 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 15 | return Status::OK(); | 508 | 15 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 253k | LocalSinkStateInfo& info) { | 504 | 253k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 253k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 253k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 253k | return Status::OK(); | 508 | 253k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 44 | LocalSinkStateInfo& info) { | 504 | 44 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 44 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 44 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 44 | return Status::OK(); | 508 | 44 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 272k | LocalSinkStateInfo& info) { | 504 | 272k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 272k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 272k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 272k | return Status::OK(); | 508 | 272k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 96.6k | LocalSinkStateInfo& info) { | 504 | 96.6k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 96.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 96.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 96.6k | return Status::OK(); | 508 | 96.6k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 77.8k | LocalSinkStateInfo& info) { | 504 | 77.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 77.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 77.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 77.8k | return Status::OK(); | 508 | 77.8k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 156 | LocalSinkStateInfo& info) { | 504 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 156 | return Status::OK(); | 508 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 525k | LocalSinkStateInfo& info) { | 504 | 525k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 525k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 525k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 525k | return Status::OK(); | 508 | 525k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.54k | LocalSinkStateInfo& info) { | 504 | 6.54k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.54k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.54k | return Status::OK(); | 508 | 6.54k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 10.8k | LocalSinkStateInfo& info) { | 504 | 10.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 10.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 10.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 10.8k | return Status::OK(); | 508 | 10.8k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.04k | LocalSinkStateInfo& info) { | 504 | 2.04k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.04k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.04k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.04k | return Status::OK(); | 508 | 2.04k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 321 | LocalSinkStateInfo& info) { | 504 | 321 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 321 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 321 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 321 | return Status::OK(); | 508 | 321 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.85k | LocalSinkStateInfo& info) { | 504 | 4.85k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.85k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.85k | return Status::OK(); | 508 | 4.85k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.55k | LocalSinkStateInfo& info) { | 504 | 2.55k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.55k | return Status::OK(); | 508 | 2.55k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.65k | LocalSinkStateInfo& info) { | 504 | 2.65k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.65k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.65k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.65k | return Status::OK(); | 508 | 2.65k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.49k | LocalSinkStateInfo& info) { | 504 | 2.49k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.49k | return Status::OK(); | 508 | 2.49k | } |
_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 | 562 | LocalSinkStateInfo& info) { | 504 | 562 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 562 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 562 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 562 | return Status::OK(); | 508 | 562 | } |
_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 | 104 | LocalSinkStateInfo& info) { | 504 | 104 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 104 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 104 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 104 | return Status::OK(); | 508 | 104 | } |
_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.42M | 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.42M | } else { |
519 | 1.42M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.42M | ss->id = operator_id(); |
521 | 1.42M | for (auto& dest : dests_id()) { |
522 | 1.41M | ss->related_op_ids.insert(dest); |
523 | 1.41M | } |
524 | 1.42M | return ss; |
525 | 1.42M | } |
526 | 1.42M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 104k | 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 | 104k | } else { | 519 | 104k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 104k | ss->id = operator_id(); | 521 | 104k | for (auto& dest : dests_id()) { | 522 | 104k | ss->related_op_ids.insert(dest); | 523 | 104k | } | 524 | 104k | return ss; | 525 | 104k | } | 526 | 104k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 368k | 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 | 368k | } else { | 519 | 368k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 368k | ss->id = operator_id(); | 521 | 368k | for (auto& dest : dests_id()) { | 522 | 368k | ss->related_op_ids.insert(dest); | 523 | 368k | } | 524 | 368k | return ss; | 525 | 368k | } | 526 | 368k | } |
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 | 360 | 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 | 360 | } else { | 519 | 360 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 360 | ss->id = operator_id(); | 521 | 360 | for (auto& dest : dests_id()) { | 522 | 360 | ss->related_op_ids.insert(dest); | 523 | 360 | } | 524 | 360 | return ss; | 525 | 360 | } | 526 | 360 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 48.0k | 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 | 48.0k | } else { | 519 | 48.0k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 48.0k | ss->id = operator_id(); | 521 | 48.0k | for (auto& dest : dests_id()) { | 522 | 47.4k | ss->related_op_ids.insert(dest); | 523 | 47.4k | } | 524 | 48.0k | return ss; | 525 | 48.0k | } | 526 | 48.0k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 26 | 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 | 26 | } else { | 519 | 26 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 26 | ss->id = operator_id(); | 521 | 26 | for (auto& dest : dests_id()) { | 522 | 26 | ss->related_op_ids.insert(dest); | 523 | 26 | } | 524 | 26 | return ss; | 525 | 26 | } | 526 | 26 | } |
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 | 11.8k | 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 | 11.8k | } else { | 519 | 11.8k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 11.8k | ss->id = operator_id(); | 521 | 11.8k | for (auto& dest : dests_id()) { | 522 | 11.8k | ss->related_op_ids.insert(dest); | 523 | 11.8k | } | 524 | 11.8k | return ss; | 525 | 11.8k | } | 526 | 11.8k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 15 | 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 | 15 | } else { | 519 | 15 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 15 | ss->id = operator_id(); | 521 | 15 | for (auto& dest : dests_id()) { | 522 | 11 | ss->related_op_ids.insert(dest); | 523 | 11 | } | 524 | 15 | return ss; | 525 | 15 | } | 526 | 15 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 254k | 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 | 254k | } else { | 519 | 254k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 254k | ss->id = operator_id(); | 521 | 254k | for (auto& dest : dests_id()) { | 522 | 253k | ss->related_op_ids.insert(dest); | 523 | 253k | } | 524 | 254k | return ss; | 525 | 254k | } | 526 | 254k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_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 | 46 | for (auto& dest : dests_id()) { | 522 | 46 | ss->related_op_ids.insert(dest); | 523 | 46 | } | 524 | 46 | return ss; | 525 | 46 | } | 526 | 46 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 96.9k | 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 | 96.9k | } else { | 519 | 96.9k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 96.9k | ss->id = operator_id(); | 521 | 97.0k | for (auto& dest : dests_id()) { | 522 | 97.0k | ss->related_op_ids.insert(dest); | 523 | 97.0k | } | 524 | 96.9k | return ss; | 525 | 96.9k | } | 526 | 96.9k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 155 | 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 | 155 | } else { | 519 | 155 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 155 | ss->id = operator_id(); | 521 | 155 | for (auto& dest : dests_id()) { | 522 | 155 | ss->related_op_ids.insert(dest); | 523 | 155 | } | 524 | 155 | return ss; | 525 | 155 | } | 526 | 155 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 527k | 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 | 527k | } else { | 519 | 527k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 527k | ss->id = operator_id(); | 521 | 527k | for (auto& dest : dests_id()) { | 522 | 517k | ss->related_op_ids.insert(dest); | 523 | 517k | } | 524 | 527k | return ss; | 525 | 527k | } | 526 | 527k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.56k | 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.56k | } else { | 519 | 6.56k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.56k | ss->id = operator_id(); | 521 | 6.56k | for (auto& dest : dests_id()) { | 522 | 6.55k | ss->related_op_ids.insert(dest); | 523 | 6.55k | } | 524 | 6.56k | return ss; | 525 | 6.56k | } | 526 | 6.56k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 423 | 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 | 423 | } else { | 519 | 423 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 423 | ss->id = operator_id(); | 521 | 423 | for (auto& dest : dests_id()) { | 522 | 423 | ss->related_op_ids.insert(dest); | 523 | 423 | } | 524 | 423 | return ss; | 525 | 423 | } | 526 | 423 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.65k | 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.65k | } else { | 519 | 2.65k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.65k | ss->id = operator_id(); | 521 | 2.65k | for (auto& dest : dests_id()) { | 522 | 2.64k | ss->related_op_ids.insert(dest); | 523 | 2.64k | } | 524 | 2.65k | return ss; | 525 | 2.65k | } | 526 | 2.65k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.49k | 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.49k | } else { | 519 | 2.49k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.49k | ss->id = operator_id(); | 521 | 2.49k | for (auto& dest : dests_id()) { | 522 | 2.48k | ss->related_op_ids.insert(dest); | 523 | 2.48k | } | 524 | 2.49k | return ss; | 525 | 2.49k | } | 526 | 2.49k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 567 | 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 | 567 | } else { | 519 | 567 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 567 | ss->id = operator_id(); | 521 | 567 | for (auto& dest : dests_id()) { | 522 | 557 | ss->related_op_ids.insert(dest); | 523 | 557 | } | 524 | 567 | return ss; | 525 | 567 | } | 526 | 567 | } |
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 | 104 | ss->related_op_ids.insert(dest); | 523 | 104 | } | 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.08M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.08M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.08M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.08M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.08M | return Status::OK(); |
534 | 2.08M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 68.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 68.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 68.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 68.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 68.5k | return Status::OK(); | 534 | 68.5k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 244k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 244k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 244k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 244k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 244k | return Status::OK(); | 534 | 244k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 145 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 145 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 145 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 145 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 145 | return Status::OK(); | 534 | 145 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.21k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.21k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.21k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.21k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.21k | return Status::OK(); | 534 | 3.21k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 11.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 11.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 11.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 11.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 11.8k | return Status::OK(); | 534 | 11.8k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.9k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.9k | return Status::OK(); | 534 | 10.9k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 37 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 37 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 37 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 37 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 37 | return Status::OK(); | 534 | 37 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_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_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 96.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 96.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 96.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 96.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 96.4k | return Status::OK(); | 534 | 96.4k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 78.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 78.2k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 78.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 78.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 78.2k | return Status::OK(); | 534 | 78.2k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 146 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 146 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 146 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 146 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 146 | return Status::OK(); | 534 | 146 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.50k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.50k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.50k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.50k | return Status::OK(); | 534 | 4.50k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 270k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 270k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 270k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 270k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 270k | return Status::OK(); | 534 | 270k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.28k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.28k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.28k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.28k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.28k | return Status::OK(); | 534 | 1.28k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.53k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.53k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.53k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.53k | return Status::OK(); | 534 | 6.53k | } |
_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.53k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.53k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.53k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.53k | return Status::OK(); | 534 | 1.53k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 55.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 55.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 55.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 55.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 55.7k | return Status::OK(); | 534 | 55.7k | } |
_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 | 320 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 320 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 320 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 320 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 320 | return Status::OK(); | 534 | 320 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.65k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.65k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.65k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.65k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.65k | return Status::OK(); | 534 | 2.65k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.49k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.49k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.49k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.49k | return Status::OK(); | 534 | 2.49k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 417 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 417 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 417 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 417 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 417 | return Status::OK(); | 534 | 417 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.69k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.69k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.69k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.69k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.69k | return Status::OK(); | 534 | 1.69k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.4k | return Status::OK(); | 534 | 10.4k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 693k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 693k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 693k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 693k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 693k | return Status::OK(); | 534 | 693k | } |
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 | 792 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 792 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 792 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 792 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 792 | return Status::OK(); | 534 | 792 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.08k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.08k | return Status::OK(); | 534 | 1.08k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.58k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.58k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.58k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.58k | return Status::OK(); | 534 | 5.58k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 264k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 264k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 264k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 264k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 264k | return Status::OK(); | 534 | 264k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.79M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.06M | : _num_rows_returned(0), |
542 | 2.06M | _rows_returned_counter(nullptr), |
543 | 2.06M | _parent(parent), |
544 | 2.06M | _state(state), |
545 | 2.06M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.08M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.08M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.08M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.08M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.08M | _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.08M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.08M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.08M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.08M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.08M | if constexpr (!is_fake_shared) { |
560 | 1.27M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 776k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 776k | .first.get() |
563 | 776k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 776k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 776k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 776k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 776k | } else if (info.shared_state) { |
569 | 427k | 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 | 427k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 427k | _dependency = _shared_state->create_source_dependency( |
576 | 427k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 427k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 427k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 427k | } else { |
580 | 73.1k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 9.50k | DCHECK(false); |
582 | 9.50k | } |
583 | 73.1k | } |
584 | 1.27M | } |
585 | | |
586 | 2.08M | 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.08M | _rows_returned_counter = |
591 | 2.08M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.08M | _blocks_returned_counter = |
593 | 2.08M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.08M | _output_block_bytes_counter = |
595 | 2.08M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.08M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.08M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.08M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.08M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.08M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.08M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.08M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.08M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.08M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.08M | _memory_used_counter = |
606 | 2.08M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.08M | _common_profile->add_info_string("IsColocate", |
608 | 2.08M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.08M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.08M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.08M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.08M | return Status::OK(); |
613 | 2.08M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 68.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 68.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 68.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 68.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 68.7k | _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 | 68.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 68.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 68.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 68.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 68.7k | if constexpr (!is_fake_shared) { | 560 | 68.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 11.6k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 11.6k | .first.get() | 563 | 11.6k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 11.6k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 11.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 11.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 57.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 | 56.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 56.2k | _dependency = _shared_state->create_source_dependency( | 576 | 56.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 56.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 56.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 56.2k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 806 | } | 584 | 68.7k | } | 585 | | | 586 | 68.7k | 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 | 68.7k | _rows_returned_counter = | 591 | 68.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 68.7k | _blocks_returned_counter = | 593 | 68.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 68.7k | _output_block_bytes_counter = | 595 | 68.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 68.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 68.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 68.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 68.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 68.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 68.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 68.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 68.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 68.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 68.7k | _memory_used_counter = | 606 | 68.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 68.7k | _common_profile->add_info_string("IsColocate", | 608 | 68.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 68.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 68.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 68.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 68.7k | return Status::OK(); | 613 | 68.7k | } |
_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 | 252k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 252k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 252k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 252k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 252k | _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 | 252k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 252k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 252k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 252k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 252k | if constexpr (!is_fake_shared) { | 560 | 252k | 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 | 252k | } 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 | 242k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 242k | _dependency = _shared_state->create_source_dependency( | 576 | 242k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 242k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 242k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 242k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 9.20k | } | 584 | 252k | } | 585 | | | 586 | 252k | 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 | 252k | _rows_returned_counter = | 591 | 252k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 252k | _blocks_returned_counter = | 593 | 252k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 252k | _output_block_bytes_counter = | 595 | 252k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 252k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 252k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 252k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 252k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 252k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 252k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 252k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 252k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 252k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 252k | _memory_used_counter = | 606 | 252k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 252k | _common_profile->add_info_string("IsColocate", | 608 | 252k | std::to_string(_parent->is_colocated_operator())); | 609 | 252k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 252k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 252k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 252k | return Status::OK(); | 613 | 252k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 37 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 37 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 37 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 37 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 37 | _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 | 37 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 37 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 37 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 37 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 37 | if constexpr (!is_fake_shared) { | 560 | 37 | 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 | 37 | } 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 | 37 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 37 | _dependency = _shared_state->create_source_dependency( | 576 | 37 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 37 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 37 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 37 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 37 | } | 585 | | | 586 | 37 | 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 | 37 | _rows_returned_counter = | 591 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 37 | _blocks_returned_counter = | 593 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 37 | _output_block_bytes_counter = | 595 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 37 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 37 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 37 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 37 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 37 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 37 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 37 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 37 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 37 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 37 | _memory_used_counter = | 606 | 37 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 37 | _common_profile->add_info_string("IsColocate", | 608 | 37 | std::to_string(_parent->is_colocated_operator())); | 609 | 37 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 37 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 37 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 37 | return Status::OK(); | 613 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.55k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.55k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.55k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.55k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.55k | _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.55k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.55k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.55k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.55k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.55k | if constexpr (!is_fake_shared) { | 560 | 6.55k | 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.55k | } 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.52k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.52k | _dependency = _shared_state->create_source_dependency( | 576 | 6.52k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.52k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.52k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.52k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 35 | } | 584 | 6.55k | } | 585 | | | 586 | 6.55k | 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.55k | _rows_returned_counter = | 591 | 6.55k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.55k | _blocks_returned_counter = | 593 | 6.55k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.55k | _output_block_bytes_counter = | 595 | 6.55k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.55k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.55k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.55k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.55k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.55k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.55k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.55k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.55k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.55k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.55k | _memory_used_counter = | 606 | 6.55k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.55k | _common_profile->add_info_string("IsColocate", | 608 | 6.55k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.55k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.55k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.55k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.55k | return Status::OK(); | 613 | 6.55k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 11.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 11.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 11.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 11.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 11.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 | 11.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 11.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 11.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 11.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 11.8k | if constexpr (!is_fake_shared) { | 560 | 11.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 | 11.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 | 11.7k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 11.7k | _dependency = _shared_state->create_source_dependency( | 576 | 11.7k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 11.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 11.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 11.7k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 143 | } | 584 | 11.8k | } | 585 | | | 586 | 11.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 | 11.8k | _rows_returned_counter = | 591 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 11.8k | _blocks_returned_counter = | 593 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 11.8k | _output_block_bytes_counter = | 595 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 11.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 11.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 11.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 11.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 11.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 11.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 11.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 11.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 11.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 11.8k | _memory_used_counter = | 606 | 11.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 11.8k | _common_profile->add_info_string("IsColocate", | 608 | 11.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 11.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 11.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 11.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 11.8k | return Status::OK(); | 613 | 11.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 96.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 96.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 96.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 96.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 96.7k | _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 | 96.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 96.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 96.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 96.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 96.7k | if constexpr (!is_fake_shared) { | 560 | 96.7k | 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 | 96.7k | } 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 | 94.4k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 94.4k | _dependency = _shared_state->create_source_dependency( | 576 | 94.4k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 94.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 94.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 94.4k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2.32k | } | 584 | 96.7k | } | 585 | | | 586 | 96.7k | 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 | 96.7k | _rows_returned_counter = | 591 | 96.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 96.7k | _blocks_returned_counter = | 593 | 96.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 96.7k | _output_block_bytes_counter = | 595 | 96.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 96.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 96.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 96.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 96.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 96.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 96.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 96.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 96.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 96.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 96.7k | _memory_used_counter = | 606 | 96.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 96.7k | _common_profile->add_info_string("IsColocate", | 608 | 96.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 96.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 96.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 96.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 96.7k | return Status::OK(); | 613 | 96.7k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 78.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 78.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 78.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 78.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 78.2k | _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 | 78.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 78.2k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 78.2k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 78.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 78.2k | if constexpr (!is_fake_shared) { | 560 | 78.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 78.2k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 78.2k | .first.get() | 563 | 78.2k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 78.2k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 78.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 78.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } 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 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 78.2k | } | 585 | | | 586 | 78.2k | 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 | 78.2k | _rows_returned_counter = | 591 | 78.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 78.2k | _blocks_returned_counter = | 593 | 78.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 78.2k | _output_block_bytes_counter = | 595 | 78.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 78.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 78.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 78.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 78.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 78.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 78.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 78.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 78.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 78.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 78.2k | _memory_used_counter = | 606 | 78.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 78.2k | _common_profile->add_info_string("IsColocate", | 608 | 78.2k | std::to_string(_parent->is_colocated_operator())); | 609 | 78.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 78.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 78.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 78.2k | return Status::OK(); | 613 | 78.2k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 146 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 146 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 146 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 146 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 146 | _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 | 146 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 146 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 146 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 146 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 146 | if constexpr (!is_fake_shared) { | 560 | 146 | 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 | 146 | } 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 | 146 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 146 | _dependency = _shared_state->create_source_dependency( | 576 | 146 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 146 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 146 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 146 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 146 | } | 585 | | | 586 | 146 | 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 | 146 | _rows_returned_counter = | 591 | 146 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 146 | _blocks_returned_counter = | 593 | 146 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 146 | _output_block_bytes_counter = | 595 | 146 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 146 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 146 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 146 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 146 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 146 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 146 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 146 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 146 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 146 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 146 | _memory_used_counter = | 606 | 146 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 146 | _common_profile->add_info_string("IsColocate", | 608 | 146 | std::to_string(_parent->is_colocated_operator())); | 609 | 146 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 146 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 146 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 146 | return Status::OK(); | 613 | 146 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 811k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 811k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 811k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 811k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 811k | _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 | 811k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 811k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 811k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 811k | 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 | 811k | 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 | 811k | _rows_returned_counter = | 591 | 811k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 811k | _blocks_returned_counter = | 593 | 811k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 811k | _output_block_bytes_counter = | 595 | 811k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 811k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 811k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 811k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 811k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 811k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 811k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 811k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 811k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 811k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 811k | _memory_used_counter = | 606 | 811k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 811k | _common_profile->add_info_string("IsColocate", | 608 | 811k | std::to_string(_parent->is_colocated_operator())); | 609 | 811k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 811k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 811k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 811k | return Status::OK(); | 613 | 811k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 55.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 55.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 55.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 55.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 55.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 | 55.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 55.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 55.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 55.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 55.5k | if constexpr (!is_fake_shared) { | 560 | 55.5k | 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 | 55.5k | } 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.67k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.67k | _dependency = _shared_state->create_source_dependency( | 576 | 4.67k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.67k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.67k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 50.9k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 50.9k | } | 584 | 55.5k | } | 585 | | | 586 | 55.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 | 55.5k | _rows_returned_counter = | 591 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 55.5k | _blocks_returned_counter = | 593 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 55.5k | _output_block_bytes_counter = | 595 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 55.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 55.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 55.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 55.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 55.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 55.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 55.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 55.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 55.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 55.5k | _memory_used_counter = | 606 | 55.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 55.5k | _common_profile->add_info_string("IsColocate", | 608 | 55.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 55.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 55.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 55.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 55.5k | return Status::OK(); | 613 | 55.5k | } |
_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.25k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.25k | _dependency = _shared_state->create_source_dependency( | 576 | 5.25k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.25k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.25k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.25k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 30 | } | 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 | 421 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 421 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 421 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 421 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 421 | _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 | 421 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 421 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 421 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 421 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 421 | if constexpr (!is_fake_shared) { | 560 | 421 | 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 | 422 | } 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 | 422 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 422 | _dependency = _shared_state->create_source_dependency( | 576 | 422 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 422 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 422 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 421 | } | 585 | | | 586 | 422 | 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 | 421 | _rows_returned_counter = | 591 | 421 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 421 | _blocks_returned_counter = | 593 | 421 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 421 | _output_block_bytes_counter = | 595 | 421 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 421 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 421 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 421 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 421 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 421 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 421 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 421 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 421 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 421 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 421 | _memory_used_counter = | 606 | 421 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 421 | _common_profile->add_info_string("IsColocate", | 608 | 421 | std::to_string(_parent->is_colocated_operator())); | 609 | 421 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 421 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 421 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 421 | return Status::OK(); | 613 | 421 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.15k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.15k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.15k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.15k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.15k | _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.15k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.15k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.15k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.15k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.15k | if constexpr (!is_fake_shared) { | 560 | 5.15k | 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.15k | } 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.94k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.94k | _dependency = _shared_state->create_source_dependency( | 576 | 4.94k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.94k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.94k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.94k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 206 | } | 584 | 5.15k | } | 585 | | | 586 | 5.15k | 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.15k | _rows_returned_counter = | 591 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.15k | _blocks_returned_counter = | 593 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.15k | _output_block_bytes_counter = | 595 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.15k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.15k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.15k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.15k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.15k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.15k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.15k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.15k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.15k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.15k | _memory_used_counter = | 606 | 5.15k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.15k | _common_profile->add_info_string("IsColocate", | 608 | 5.15k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.15k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.15k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.15k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.15k | return Status::OK(); | 613 | 5.15k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 695k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 695k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 695k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 695k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 695k | _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 | 695k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 695k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 695k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 695k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 695k | if constexpr (!is_fake_shared) { | 560 | 695k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 686k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 686k | .first.get() | 563 | 686k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 686k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 686k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 686k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 686k | } 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 | 9.50k | } else { | 580 | 9.50k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 9.50k | DCHECK(false); | 582 | 9.50k | } | 583 | 9.50k | } | 584 | 695k | } | 585 | | | 586 | 695k | 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 | 695k | _rows_returned_counter = | 591 | 695k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 695k | _blocks_returned_counter = | 593 | 695k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 695k | _output_block_bytes_counter = | 595 | 695k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 695k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 695k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 695k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 695k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 695k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 695k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 695k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 695k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 695k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 695k | _memory_used_counter = | 606 | 695k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 695k | _common_profile->add_info_string("IsColocate", | 608 | 695k | std::to_string(_parent->is_colocated_operator())); | 609 | 695k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 695k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 695k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 695k | return Status::OK(); | 613 | 695k | } |
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.10M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.10M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.40M | 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.10M | if (_parent->has_projection()) { |
622 | 384k | const auto& projection = *_parent->_projection; |
623 | 384k | _projections.resize(projection.projections.size()); |
624 | 2.37M | 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 | 384k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 401k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 17.2k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 200k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 183k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 183k | state, _intermediate_projections[i][j])); |
633 | 183k | } |
634 | 17.2k | } |
635 | 384k | } |
636 | 2.10M | return Status::OK(); |
637 | 2.10M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 68.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 68.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 70.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.28k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.28k | } | 621 | 68.8k | if (_parent->has_projection()) { | 622 | 68.8k | const auto& projection = *_parent->_projection; | 623 | 68.8k | _projections.resize(projection.projections.size()); | 624 | 353k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 284k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 284k | } | 627 | 68.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 74.3k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 5.47k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 127k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 121k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 121k | state, _intermediate_projections[i][j])); | 633 | 121k | } | 634 | 5.47k | } | 635 | 68.8k | } | 636 | 68.8k | return Status::OK(); | 637 | 68.8k | } |
_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 | 255k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 255k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 255k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 255k | if (_parent->has_projection()) { | 622 | 80 | const auto& projection = *_parent->_projection; | 623 | 80 | _projections.resize(projection.projections.size()); | 624 | 402 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 322 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 322 | } | 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 | 255k | return Status::OK(); | 637 | 255k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 37 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 37 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 37 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 37 | 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 | 37 | return Status::OK(); | 637 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.58k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.58k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.68k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 100 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 100 | } | 621 | 6.58k | if (_parent->has_projection()) { | 622 | 6.58k | const auto& projection = *_parent->_projection; | 623 | 6.58k | _projections.resize(projection.projections.size()); | 624 | 29.5k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 22.9k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 22.9k | } | 627 | 6.58k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.62k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 40 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 389 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 349 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 349 | state, _intermediate_projections[i][j])); | 633 | 349 | } | 634 | 40 | } | 635 | 6.58k | } | 636 | 6.58k | return Status::OK(); | 637 | 6.58k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 11.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 11.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 12.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 705 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 705 | } | 621 | 11.8k | if (_parent->has_projection()) { | 622 | 6.49k | const auto& projection = *_parent->_projection; | 623 | 6.49k | _projections.resize(projection.projections.size()); | 624 | 26.2k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 19.7k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 19.7k | } | 627 | 6.49k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.58k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 91 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 690 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 599 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 599 | state, _intermediate_projections[i][j])); | 633 | 599 | } | 634 | 91 | } | 635 | 6.49k | } | 636 | 11.8k | return Status::OK(); | 637 | 11.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 97.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 97.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 99.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.83k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.83k | } | 621 | 97.4k | if (_parent->has_projection()) { | 622 | 30.6k | const auto& projection = *_parent->_projection; | 623 | 30.6k | _projections.resize(projection.projections.size()); | 624 | 277k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 247k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 247k | } | 627 | 30.6k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 30.8k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 202 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.38k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.18k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.18k | state, _intermediate_projections[i][j])); | 633 | 1.18k | } | 634 | 202 | } | 635 | 30.6k | } | 636 | 97.4k | return Status::OK(); | 637 | 97.4k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 78.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 78.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 78.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 21 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 21 | } | 621 | 78.2k | if (_parent->has_projection()) { | 622 | 180 | const auto& projection = *_parent->_projection; | 623 | 180 | _projections.resize(projection.projections.size()); | 624 | 848 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 668 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 668 | } | 627 | 180 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 180 | 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 | 180 | } | 636 | 78.2k | return Status::OK(); | 637 | 78.2k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 150 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 150 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 150 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 150 | if (_parent->has_projection()) { | 622 | 104 | const auto& projection = *_parent->_projection; | 623 | 104 | _projections.resize(projection.projections.size()); | 624 | 312 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 208 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 208 | } | 627 | 104 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 104 | 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 | 104 | } | 636 | 150 | return Status::OK(); | 637 | 150 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 814k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 814k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.11M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 299k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 299k | } | 621 | 814k | if (_parent->has_projection()) { | 622 | 259k | const auto& projection = *_parent->_projection; | 623 | 259k | _projections.resize(projection.projections.size()); | 624 | 1.56M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.30M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.30M | } | 627 | 259k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 270k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 11.2k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 66.0k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 54.8k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 54.8k | state, _intermediate_projections[i][j])); | 633 | 54.8k | } | 634 | 11.2k | } | 635 | 259k | } | 636 | 814k | return Status::OK(); | 637 | 814k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 56.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 56.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 56.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 | 56.0k | if (_parent->has_projection()) { | 622 | 11.9k | const auto& projection = *_parent->_projection; | 623 | 11.9k | _projections.resize(projection.projections.size()); | 624 | 112k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 100k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 100k | } | 627 | 11.9k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 12.1k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 211 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 5.00k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 4.79k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 4.79k | state, _intermediate_projections[i][j])); | 633 | 4.79k | } | 634 | 211 | } | 635 | 11.9k | } | 636 | 56.0k | return Status::OK(); | 637 | 56.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.27k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.27k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.39k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.12k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.12k | } | 621 | 5.27k | 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.27k | return Status::OK(); | 637 | 5.27k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 423 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 423 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 423 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 423 | 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 | 423 | return Status::OK(); | 637 | 423 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.23k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.23k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.23k | 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.23k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 227 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 167 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 167 | } | 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.23k | return Status::OK(); | 637 | 5.23k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 702k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 702k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 702k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 702k | 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 | 702k | return Status::OK(); | 637 | 702k | } |
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 | 8.05k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 8.05k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 8.05k | _terminated = true; |
645 | 8.05k | return Status::OK(); |
646 | 8.05k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 495 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 495 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 495 | _terminated = true; | 645 | 495 | return Status::OK(); | 646 | 495 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 23 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 23 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 23 | _terminated = true; | 645 | 23 | return Status::OK(); | 646 | 23 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 113 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 113 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 113 | _terminated = true; | 645 | 113 | return Status::OK(); | 646 | 113 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_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 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 16 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 16 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 16 | _terminated = true; | 645 | 16 | return Status::OK(); | 646 | 16 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 6.10k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 6.10k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 6.10k | _terminated = true; | 645 | 6.10k | return Status::OK(); | 646 | 6.10k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 36 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 36 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 36 | _terminated = true; | 645 | 36 | return Status::OK(); | 646 | 36 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 12 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 12 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 12 | _terminated = true; | 645 | 12 | return Status::OK(); | 646 | 12 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 236 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 236 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 236 | _terminated = true; | 645 | 236 | return Status::OK(); | 646 | 236 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 982 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 982 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 982 | _terminated = true; | 645 | 982 | return Status::OK(); | 646 | 982 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 37 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 37 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 37 | _terminated = true; | 645 | 37 | return Status::OK(); | 646 | 37 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.38M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.38M | if (_closed) { |
651 | 288k | return Status::OK(); |
652 | 288k | } |
653 | 2.10M | 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.10M | _closed = true; |
657 | 2.10M | return Status::OK(); |
658 | 2.38M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 68.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 68.8k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 68.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 68.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 68.8k | } | 656 | 68.8k | _closed = true; | 657 | 68.8k | return Status::OK(); | 658 | 68.8k | } |
_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 | 506k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 506k | if (_closed) { | 651 | 254k | return Status::OK(); | 652 | 254k | } | 653 | 252k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 252k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 252k | } | 656 | 252k | _closed = true; | 657 | 252k | return Status::OK(); | 658 | 506k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 37 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 37 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 37 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 37 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 37 | } | 656 | 37 | _closed = true; | 657 | 37 | return Status::OK(); | 658 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.57k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.57k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.57k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.57k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.57k | } | 656 | 6.57k | _closed = true; | 657 | 6.57k | return Status::OK(); | 658 | 6.57k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 23.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 23.8k | if (_closed) { | 651 | 12.0k | return Status::OK(); | 652 | 12.0k | } | 653 | 11.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 11.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 11.8k | } | 656 | 11.8k | _closed = true; | 657 | 11.8k | return Status::OK(); | 658 | 23.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 97.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 97.2k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 97.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 97.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 97.2k | } | 656 | 97.2k | _closed = true; | 657 | 97.2k | return Status::OK(); | 658 | 97.2k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 78.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 78.0k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 78.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 78.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 78.0k | } | 656 | 78.0k | _closed = true; | 657 | 78.0k | return Status::OK(); | 658 | 78.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 145 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 145 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 145 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 145 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 145 | } | 656 | 145 | _closed = true; | 657 | 145 | return Status::OK(); | 658 | 145 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 831k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 831k | if (_closed) { | 651 | 15.8k | return Status::OK(); | 652 | 15.8k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 815k | _closed = true; | 657 | 815k | return Status::OK(); | 658 | 831k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 56.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 56.0k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 56.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 56.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 56.0k | } | 656 | 56.0k | _closed = true; | 657 | 56.0k | return Status::OK(); | 658 | 56.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.24k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.24k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.24k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.24k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.24k | } | 656 | 5.24k | _closed = true; | 657 | 5.24k | return Status::OK(); | 658 | 5.24k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 641 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 641 | if (_closed) { | 651 | 321 | return Status::OK(); | 652 | 321 | } | 653 | 320 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 320 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 320 | } | 656 | 320 | _closed = true; | 657 | 320 | return Status::OK(); | 658 | 641 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.5k | if (_closed) { | 651 | 5.36k | return Status::OK(); | 652 | 5.36k | } | 653 | 5.22k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.22k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.22k | } | 656 | 5.22k | _closed = true; | 657 | 5.22k | return Status::OK(); | 658 | 10.5k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 703k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 703k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 703k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 703k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 703k | } | 656 | 703k | _closed = true; | 657 | 703k | return Status::OK(); | 658 | 703k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 334 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 334 | if (_closed) { | 651 | 174 | return Status::OK(); | 652 | 174 | } | 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 | 334 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.80M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.80M | _operator_profile = |
664 | 1.80M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.80M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.80M | _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.80M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.80M | _operator_profile->add_child(_common_profile, true); |
673 | 1.80M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.80M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.80M | _wait_for_finish_dependency_timer = |
677 | 1.80M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.80M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.80M | if constexpr (!is_fake_shared) { |
680 | 1.28M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.28M | info.shared_state_map.end()) { |
682 | 362k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 272k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 272k | } |
685 | 362k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 362k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 362k | ? 0 |
688 | 362k | : info.task_idx] |
689 | 362k | .get(); |
690 | 362k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 917k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 917k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 917k | _dependency = _shared_state->create_sink_dependency( |
697 | 917k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 917k | } |
699 | 1.28M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.28M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.28M | } |
702 | | |
703 | 1.80M | 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.80M | _rows_input_counter = |
708 | 1.80M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.80M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.80M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.80M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.80M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.80M | _memory_used_counter = |
714 | 1.80M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.80M | _common_profile->add_info_string("IsColocate", |
716 | 1.80M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.80M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.80M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.80M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.80M | return Status::OK(); |
721 | 1.80M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 116k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 116k | _operator_profile = | 664 | 116k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 116k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 116k | _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 | 116k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 116k | _operator_profile->add_child(_common_profile, true); | 673 | 116k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 116k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 116k | _wait_for_finish_dependency_timer = | 677 | 116k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 116k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 116k | if constexpr (!is_fake_shared) { | 680 | 116k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 116k | 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 | 11.9k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 11.9k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 11.9k | ? 0 | 688 | 11.9k | : info.task_idx] | 689 | 11.9k | .get(); | 690 | 11.9k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 104k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 104k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 104k | _dependency = _shared_state->create_sink_dependency( | 697 | 104k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 104k | } | 699 | 116k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 116k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 116k | } | 702 | | | 703 | 116k | 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 | 116k | _rows_input_counter = | 708 | 116k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 116k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 116k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 116k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 116k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 116k | _memory_used_counter = | 714 | 116k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 116k | _common_profile->add_info_string("IsColocate", | 716 | 116k | std::to_string(_parent->is_colocated_operator())); | 717 | 116k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 116k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 116k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 116k | return Status::OK(); | 721 | 116k | } |
_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 | 253k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 253k | _operator_profile = | 664 | 253k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 253k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 253k | _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 | 253k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 253k | _operator_profile->add_child(_common_profile, true); | 673 | 253k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 253k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 253k | _wait_for_finish_dependency_timer = | 677 | 253k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 253k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 253k | if constexpr (!is_fake_shared) { | 680 | 253k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 253k | 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 | 253k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 253k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 253k | _dependency = _shared_state->create_sink_dependency( | 697 | 253k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 253k | } | 699 | 253k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 253k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 253k | } | 702 | | | 703 | 253k | 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 | 253k | _rows_input_counter = | 708 | 253k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 253k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 253k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 253k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 253k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 253k | _memory_used_counter = | 714 | 253k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 253k | _common_profile->add_info_string("IsColocate", | 716 | 253k | std::to_string(_parent->is_colocated_operator())); | 717 | 253k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 253k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 253k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 253k | return Status::OK(); | 721 | 253k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 44 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 44 | _operator_profile = | 664 | 44 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 44 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 44 | _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 | 44 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 44 | _operator_profile->add_child(_common_profile, true); | 673 | 44 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 44 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 44 | _wait_for_finish_dependency_timer = | 677 | 44 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 44 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 44 | if constexpr (!is_fake_shared) { | 680 | 44 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 44 | 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 | 44 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 44 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 44 | _dependency = _shared_state->create_sink_dependency( | 697 | 44 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 44 | } | 699 | 44 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 44 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 44 | } | 702 | | | 703 | 44 | 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 | 44 | _rows_input_counter = | 708 | 44 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 44 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 44 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 44 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 44 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 44 | _memory_used_counter = | 714 | 44 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 44 | _common_profile->add_info_string("IsColocate", | 716 | 44 | std::to_string(_parent->is_colocated_operator())); | 717 | 44 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 44 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 44 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 44 | return Status::OK(); | 721 | 44 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.56k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.56k | _operator_profile = | 664 | 6.56k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.56k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.56k | _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.56k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.56k | _operator_profile->add_child(_common_profile, true); | 673 | 6.56k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.56k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.56k | _wait_for_finish_dependency_timer = | 677 | 6.56k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.56k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.56k | if constexpr (!is_fake_shared) { | 680 | 6.56k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.56k | 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.56k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.56k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.56k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.56k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.56k | } | 699 | 6.56k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.56k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.56k | } | 702 | | | 703 | 6.56k | 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.56k | _rows_input_counter = | 708 | 6.56k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.56k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.56k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.56k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.56k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.56k | _memory_used_counter = | 714 | 6.56k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.56k | _common_profile->add_info_string("IsColocate", | 716 | 6.56k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.56k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.56k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.56k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.56k | return Status::OK(); | 721 | 6.56k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 11.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 11.8k | _operator_profile = | 664 | 11.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 11.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 11.8k | _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 | 11.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 11.8k | _operator_profile->add_child(_common_profile, true); | 673 | 11.8k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 11.8k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 11.8k | _wait_for_finish_dependency_timer = | 677 | 11.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 11.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 11.8k | if constexpr (!is_fake_shared) { | 680 | 11.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 11.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 | 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 | 11.8k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 11.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 11.8k | _dependency = _shared_state->create_sink_dependency( | 697 | 11.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 11.8k | } | 699 | 11.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 11.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 11.8k | } | 702 | | | 703 | 11.8k | 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 | 11.8k | _rows_input_counter = | 708 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 11.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 11.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 11.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 11.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 11.8k | _memory_used_counter = | 714 | 11.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 11.8k | _common_profile->add_info_string("IsColocate", | 716 | 11.8k | std::to_string(_parent->is_colocated_operator())); | 717 | 11.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 11.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 11.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 11.8k | return Status::OK(); | 721 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 96.9k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 96.9k | _operator_profile = | 664 | 96.9k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 96.9k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 96.9k | _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 | 96.9k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 96.9k | _operator_profile->add_child(_common_profile, true); | 673 | 96.9k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 96.9k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 96.9k | _wait_for_finish_dependency_timer = | 677 | 96.9k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 96.9k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 96.9k | if constexpr (!is_fake_shared) { | 680 | 96.9k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 96.9k | 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 | 96.9k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 96.9k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 96.9k | _dependency = _shared_state->create_sink_dependency( | 697 | 96.9k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 96.9k | } | 699 | 96.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 96.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 96.9k | } | 702 | | | 703 | 96.9k | 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 | 96.9k | _rows_input_counter = | 708 | 96.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 96.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 96.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 96.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 96.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 96.9k | _memory_used_counter = | 714 | 96.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 96.9k | _common_profile->add_info_string("IsColocate", | 716 | 96.9k | std::to_string(_parent->is_colocated_operator())); | 717 | 96.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 96.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 96.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 96.9k | return Status::OK(); | 721 | 96.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 78.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 78.1k | _operator_profile = | 664 | 78.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 78.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 78.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 | 78.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 78.1k | _operator_profile->add_child(_common_profile, true); | 673 | 78.1k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 78.1k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 78.1k | _wait_for_finish_dependency_timer = | 677 | 78.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 78.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 78.1k | if constexpr (!is_fake_shared) { | 680 | 78.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 78.2k | 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 | 78.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 78.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 78.2k | ? 0 | 688 | 78.2k | : info.task_idx] | 689 | 78.2k | .get(); | 690 | 78.2k | _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 | 78.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 78.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 78.1k | } | 702 | | | 703 | 78.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 | 78.1k | _rows_input_counter = | 708 | 78.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 78.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 78.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 78.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 78.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 78.1k | _memory_used_counter = | 714 | 78.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 78.1k | _common_profile->add_info_string("IsColocate", | 716 | 78.1k | std::to_string(_parent->is_colocated_operator())); | 717 | 78.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 78.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 78.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 78.1k | return Status::OK(); | 721 | 78.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 156 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 156 | _operator_profile = | 664 | 156 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 156 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 156 | _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 | 156 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 156 | _operator_profile->add_child(_common_profile, true); | 673 | 156 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 156 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 156 | _wait_for_finish_dependency_timer = | 677 | 156 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 156 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 156 | if constexpr (!is_fake_shared) { | 680 | 156 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 156 | 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 | 156 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 156 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 156 | _dependency = _shared_state->create_sink_dependency( | 697 | 156 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 156 | } | 699 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 156 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 156 | } | 702 | | | 703 | 156 | 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 | 156 | _rows_input_counter = | 708 | 156 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 156 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 156 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 156 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 156 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 156 | _memory_used_counter = | 714 | 156 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 156 | _common_profile->add_info_string("IsColocate", | 716 | 156 | std::to_string(_parent->is_colocated_operator())); | 717 | 156 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 156 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 156 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 156 | return Status::OK(); | 721 | 156 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 527k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 527k | _operator_profile = | 664 | 527k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 527k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 527k | _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 | 527k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 527k | _operator_profile->add_child(_common_profile, true); | 673 | 527k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 527k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 527k | _wait_for_finish_dependency_timer = | 677 | 527k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 527k | 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 | 527k | 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 | 527k | _rows_input_counter = | 708 | 527k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 527k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 527k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 527k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 527k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 527k | _memory_used_counter = | 714 | 527k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 527k | _common_profile->add_info_string("IsColocate", | 716 | 527k | std::to_string(_parent->is_colocated_operator())); | 717 | 527k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 527k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 527k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 527k | return Status::OK(); | 721 | 527k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 10.9k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 10.9k | _operator_profile = | 664 | 10.9k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 10.9k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 10.9k | _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 | 10.9k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 10.9k | _operator_profile->add_child(_common_profile, true); | 673 | 10.9k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 10.9k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 10.9k | _wait_for_finish_dependency_timer = | 677 | 10.9k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 10.9k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 10.9k | if constexpr (!is_fake_shared) { | 680 | 10.9k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 10.9k | 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 | 10.9k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 10.9k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 10.9k | _dependency = _shared_state->create_sink_dependency( | 697 | 10.9k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 10.9k | } | 699 | 10.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 10.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 10.9k | } | 702 | | | 703 | 10.9k | 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 | 10.9k | _rows_input_counter = | 708 | 10.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 10.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 10.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 10.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 10.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 10.9k | _memory_used_counter = | 714 | 10.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 10.9k | _common_profile->add_info_string("IsColocate", | 716 | 10.9k | std::to_string(_parent->is_colocated_operator())); | 717 | 10.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 10.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 10.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 10.9k | return Status::OK(); | 721 | 10.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 423 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 423 | _operator_profile = | 664 | 423 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 423 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 423 | _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 | 423 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 423 | _operator_profile->add_child(_common_profile, true); | 673 | 423 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 423 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 423 | _wait_for_finish_dependency_timer = | 677 | 423 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 423 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 423 | if constexpr (!is_fake_shared) { | 680 | 423 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 423 | 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 | 423 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 423 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 423 | _dependency = _shared_state->create_sink_dependency( | 697 | 423 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 423 | } | 699 | 423 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 423 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 423 | } | 702 | | | 703 | 423 | 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 | 423 | _rows_input_counter = | 708 | 423 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 423 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 423 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 423 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 423 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 423 | _memory_used_counter = | 714 | 423 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 423 | _common_profile->add_info_string("IsColocate", | 716 | 423 | std::to_string(_parent->is_colocated_operator())); | 717 | 423 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 423 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 423 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 423 | return Status::OK(); | 721 | 423 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.05k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.05k | _operator_profile = | 664 | 2.05k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.05k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.05k | _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.05k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.05k | _operator_profile->add_child(_common_profile, true); | 673 | 2.05k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.05k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.05k | _wait_for_finish_dependency_timer = | 677 | 2.05k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.05k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.05k | if constexpr (!is_fake_shared) { | 680 | 2.05k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.05k | 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.05k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.05k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.05k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.05k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.05k | } | 699 | 2.05k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.05k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.05k | } | 702 | | | 703 | 2.05k | 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.05k | _rows_input_counter = | 708 | 2.05k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.05k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.05k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.05k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.05k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.05k | _memory_used_counter = | 714 | 2.05k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.05k | _common_profile->add_info_string("IsColocate", | 716 | 2.05k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.05k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.05k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.05k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.05k | return Status::OK(); | 721 | 2.05k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.6k | _operator_profile = | 664 | 12.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.6k | _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.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.6k | _operator_profile->add_child(_common_profile, true); | 673 | 12.6k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.6k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.6k | _wait_for_finish_dependency_timer = | 677 | 12.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.6k | if constexpr (!is_fake_shared) { | 680 | 12.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.6k | 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.6k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.6k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.6k | } | 699 | 12.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.6k | } | 702 | | | 703 | 12.6k | 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.6k | _rows_input_counter = | 708 | 12.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.6k | _memory_used_counter = | 714 | 12.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.6k | _common_profile->add_info_string("IsColocate", | 716 | 12.6k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.6k | return Status::OK(); | 721 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 272k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 272k | _operator_profile = | 664 | 272k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 272k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 272k | _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 | 272k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 272k | _operator_profile->add_child(_common_profile, true); | 673 | 272k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 272k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 272k | _wait_for_finish_dependency_timer = | 677 | 272k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 272k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 272k | if constexpr (!is_fake_shared) { | 680 | 272k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 272k | info.shared_state_map.end()) { | 682 | 272k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 272k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 272k | } | 685 | 272k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 272k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 272k | ? 0 | 688 | 272k | : info.task_idx] | 689 | 272k | .get(); | 690 | 272k | _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 | 272k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 272k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 272k | } | 702 | | | 703 | 272k | 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 | 272k | _rows_input_counter = | 708 | 272k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 272k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 272k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 272k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 272k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 272k | _memory_used_counter = | 714 | 272k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 272k | _common_profile->add_info_string("IsColocate", | 716 | 272k | std::to_string(_parent->is_colocated_operator())); | 717 | 272k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 272k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 272k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 272k | return Status::OK(); | 721 | 272k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 417k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 417k | _operator_profile = | 664 | 417k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 417k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 417k | _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 | 417k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 417k | _operator_profile->add_child(_common_profile, true); | 673 | 417k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 417k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 417k | _wait_for_finish_dependency_timer = | 677 | 417k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 417k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 417k | if constexpr (!is_fake_shared) { | 680 | 417k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 417k | 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 | 417k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 417k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 417k | _dependency = _shared_state->create_sink_dependency( | 697 | 417k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 417k | } | 699 | 417k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 417k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 417k | } | 702 | | | 703 | 417k | 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 | 417k | _rows_input_counter = | 708 | 417k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 417k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 417k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 417k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 417k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 417k | _memory_used_counter = | 714 | 417k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 417k | _common_profile->add_info_string("IsColocate", | 716 | 417k | std::to_string(_parent->is_colocated_operator())); | 717 | 417k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 417k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 417k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 417k | return Status::OK(); | 721 | 417k | } |
_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.81M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.81M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.81M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.28M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.28M | } |
731 | 1.81M | _closed = true; |
732 | 1.81M | return Status::OK(); |
733 | 1.81M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 116k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 116k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 116k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 116k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 116k | } | 731 | 116k | _closed = true; | 732 | 116k | return Status::OK(); | 733 | 116k | } |
_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 | 254k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 254k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 254k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 254k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 254k | } | 731 | 254k | _closed = true; | 732 | 254k | return Status::OK(); | 733 | 254k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 35 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 35 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 33 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 33 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 33 | } | 731 | 33 | _closed = true; | 732 | 33 | return Status::OK(); | 733 | 35 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.53k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.53k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.53k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.53k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.53k | } | 731 | 6.53k | _closed = true; | 732 | 6.53k | return Status::OK(); | 733 | 6.53k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 11.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 11.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 11.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 11.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 11.7k | } | 731 | 11.7k | _closed = true; | 732 | 11.7k | return Status::OK(); | 733 | 11.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 96.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 96.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 96.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 96.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 96.9k | } | 731 | 96.9k | _closed = true; | 732 | 96.9k | return Status::OK(); | 733 | 96.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 77.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 77.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 77.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 77.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 77.9k | } | 731 | 77.9k | _closed = true; | 732 | 77.9k | return Status::OK(); | 733 | 77.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 145 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 145 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 145 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 145 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 145 | } | 731 | 145 | _closed = true; | 732 | 145 | return Status::OK(); | 733 | 145 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 533k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 533k | 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 | 533k | _closed = true; | 732 | 533k | return Status::OK(); | 733 | 533k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 11.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 11.0k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 11.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 11.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 11.0k | } | 731 | 11.0k | _closed = true; | 732 | 11.0k | return Status::OK(); | 733 | 11.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 320 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 320 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 320 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 320 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 320 | } | 731 | 320 | _closed = true; | 732 | 320 | return Status::OK(); | 733 | 320 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.06k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.06k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.06k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.06k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.06k | } | 731 | 2.06k | _closed = true; | 732 | 2.06k | return Status::OK(); | 733 | 2.06k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.6k | } | 731 | 12.6k | _closed = true; | 732 | 12.6k | return Status::OK(); | 733 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 273k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 273k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 273k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 273k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 273k | } | 731 | 273k | _closed = true; | 732 | 273k | return Status::OK(); | 733 | 273k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 419k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 419k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 419k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 419k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 419k | } | 731 | 419k | _closed = true; | 732 | 419k | return Status::OK(); | 733 | 419k | } |
_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 | 7.71k | bool* eos) { |
738 | 7.71k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 7.71k | return pull(state, block, eos); |
740 | 7.71k | } _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 | 7.67k | bool* eos) { | 738 | 7.67k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 7.67k | return pull(state, block, eos); | 740 | 7.67k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 524k | bool* eos) { |
745 | 524k | auto& local_state = get_local_state(state); |
746 | 524k | if (need_more_input_data(state)) { |
747 | 493k | local_state._child_block->clear_column_data( |
748 | 493k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 493k | .num_materialized_slots()); |
750 | 493k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 493k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 493k | *eos = local_state._child_eos; |
753 | 493k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 90.5k | return Status::OK(); |
755 | 90.5k | } |
756 | 403k | { |
757 | 403k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 403k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 403k | } |
760 | 403k | } |
761 | | |
762 | 433k | if (!need_more_input_data(state)) { |
763 | 409k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 409k | bool new_eos = false; |
765 | 409k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 409k | if (new_eos) { |
767 | 327k | *eos = true; |
768 | 327k | } else if (!need_more_input_data(state)) { |
769 | 23.5k | *eos = false; |
770 | 23.5k | } |
771 | 409k | } |
772 | 433k | return Status::OK(); |
773 | 433k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 152k | bool* eos) { | 745 | 152k | auto& local_state = get_local_state(state); | 746 | 152k | if (need_more_input_data(state)) { | 747 | 134k | local_state._child_block->clear_column_data( | 748 | 134k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 134k | .num_materialized_slots()); | 750 | 134k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 134k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 134k | *eos = local_state._child_eos; | 753 | 134k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 46.3k | return Status::OK(); | 755 | 46.3k | } | 756 | 87.8k | { | 757 | 87.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 87.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 87.8k | } | 760 | 87.8k | } | 761 | | | 762 | 106k | if (!need_more_input_data(state)) { | 763 | 106k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 106k | bool new_eos = false; | 765 | 106k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 106k | if (new_eos) { | 767 | 44.4k | *eos = true; | 768 | 62.0k | } else if (!need_more_input_data(state)) { | 769 | 10.9k | *eos = false; | 770 | 10.9k | } | 771 | 106k | } | 772 | 106k | return Status::OK(); | 773 | 106k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.36k | bool* eos) { | 745 | 4.36k | auto& local_state = get_local_state(state); | 746 | 4.36k | if (need_more_input_data(state)) { | 747 | 2.39k | local_state._child_block->clear_column_data( | 748 | 2.39k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.39k | .num_materialized_slots()); | 750 | 2.39k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.39k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.39k | *eos = local_state._child_eos; | 753 | 2.39k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 496 | return Status::OK(); | 755 | 496 | } | 756 | 1.90k | { | 757 | 1.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.90k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.90k | } | 760 | 1.90k | } | 761 | | | 762 | 3.90k | if (!need_more_input_data(state)) { | 763 | 3.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.90k | bool new_eos = false; | 765 | 3.90k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.90k | if (new_eos) { | 767 | 1.27k | *eos = true; | 768 | 2.62k | } else if (!need_more_input_data(state)) { | 769 | 1.97k | *eos = false; | 770 | 1.97k | } | 771 | 3.90k | } | 772 | 3.86k | return Status::OK(); | 773 | 3.86k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.87k | bool* eos) { | 745 | 1.87k | auto& local_state = get_local_state(state); | 746 | 1.87k | if (need_more_input_data(state)) { | 747 | 1.87k | local_state._child_block->clear_column_data( | 748 | 1.87k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.87k | .num_materialized_slots()); | 750 | 1.87k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.87k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.87k | *eos = local_state._child_eos; | 753 | 1.87k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 773 | return Status::OK(); | 755 | 773 | } | 756 | 1.10k | { | 757 | 1.10k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.10k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.10k | } | 760 | 1.10k | } | 761 | | | 762 | 1.10k | if (!need_more_input_data(state)) { | 763 | 1.10k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.10k | bool new_eos = false; | 765 | 1.10k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.10k | if (new_eos) { | 767 | 793 | *eos = true; | 768 | 793 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.10k | } | 772 | 1.10k | return Status::OK(); | 773 | 1.10k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 14.1k | bool* eos) { | 745 | 14.1k | auto& local_state = get_local_state(state); | 746 | 14.1k | if (need_more_input_data(state)) { | 747 | 14.1k | local_state._child_block->clear_column_data( | 748 | 14.1k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 14.1k | .num_materialized_slots()); | 750 | 14.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 14.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 14.1k | *eos = local_state._child_eos; | 753 | 14.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.26k | return Status::OK(); | 755 | 4.26k | } | 756 | 9.86k | { | 757 | 9.86k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 9.86k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 9.86k | } | 760 | 9.86k | } | 761 | | | 762 | 9.85k | if (!need_more_input_data(state)) { | 763 | 5.59k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.59k | bool new_eos = false; | 765 | 5.59k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.59k | if (new_eos) { | 767 | 5.49k | *eos = true; | 768 | 5.49k | } else if (!need_more_input_data(state)) { | 769 | 7 | *eos = false; | 770 | 7 | } | 771 | 5.59k | } | 772 | 9.85k | return Status::OK(); | 773 | 9.85k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 320k | bool* eos) { | 745 | 320k | auto& local_state = get_local_state(state); | 746 | 321k | if (need_more_input_data(state)) { | 747 | 321k | local_state._child_block->clear_column_data( | 748 | 321k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 321k | .num_materialized_slots()); | 750 | 321k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 321k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 321k | *eos = local_state._child_eos; | 753 | 321k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 36.6k | return Status::OK(); | 755 | 36.6k | } | 756 | 285k | { | 757 | 285k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 285k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 285k | } | 760 | 285k | } | 761 | | | 762 | 284k | if (!need_more_input_data(state)) { | 763 | 264k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 264k | bool new_eos = false; | 765 | 264k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 264k | if (new_eos) { | 767 | 264k | *eos = true; | 768 | 264k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 264k | } | 772 | 284k | return Status::OK(); | 773 | 284k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 22.1k | bool* eos) { | 745 | 22.1k | auto& local_state = get_local_state(state); | 746 | 22.1k | if (need_more_input_data(state)) { | 747 | 11.8k | local_state._child_block->clear_column_data( | 748 | 11.8k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 11.8k | .num_materialized_slots()); | 750 | 11.8k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 11.8k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 11.8k | *eos = local_state._child_eos; | 753 | 11.8k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 923 | return Status::OK(); | 755 | 923 | } | 756 | 10.9k | { | 757 | 10.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.9k | } | 760 | 10.9k | } | 761 | | | 762 | 21.2k | if (!need_more_input_data(state)) { | 763 | 20.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 20.7k | bool new_eos = false; | 765 | 20.7k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 20.7k | if (new_eos) { | 767 | 6.53k | *eos = true; | 768 | 14.1k | } else if (!need_more_input_data(state)) { | 769 | 10.2k | *eos = false; | 770 | 10.2k | } | 771 | 20.7k | } | 772 | 21.2k | return Status::OK(); | 773 | 21.2k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 7.87k | bool* eos) { | 745 | 7.87k | auto& local_state = get_local_state(state); | 746 | 7.87k | if (need_more_input_data(state)) { | 747 | 7.51k | local_state._child_block->clear_column_data( | 748 | 7.51k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.51k | .num_materialized_slots()); | 750 | 7.51k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.51k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.51k | *eos = local_state._child_eos; | 753 | 7.51k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 1.11k | return Status::OK(); | 755 | 1.11k | } | 756 | 6.40k | { | 757 | 6.40k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.40k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.40k | } | 760 | 6.40k | } | 761 | | | 762 | 6.76k | if (!need_more_input_data(state)) { | 763 | 6.76k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.76k | bool new_eos = false; | 765 | 6.76k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.76k | if (new_eos) { | 767 | 4.40k | *eos = true; | 768 | 4.40k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 6.76k | } | 772 | 6.75k | return Status::OK(); | 773 | 6.75k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 47.8k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 47.8k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 47.8k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 47.8k | "AsyncWriterDependency", true); |
781 | 47.8k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 47.8k | _finish_dependency)); |
783 | | |
784 | 47.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 47.8k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 47.8k | return Status::OK(); |
787 | 47.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 360 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 360 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 360 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 360 | "AsyncWriterDependency", true); | 781 | 360 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 360 | _finish_dependency)); | 783 | | | 784 | 360 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 360 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 360 | return Status::OK(); | 787 | 360 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 47.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 47.4k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 47.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 47.4k | "AsyncWriterDependency", true); | 781 | 47.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 47.4k | _finish_dependency)); | 783 | | | 784 | 47.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 47.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 47.4k | return Status::OK(); | 787 | 47.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 26 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 26 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 26 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 26 | "AsyncWriterDependency", true); | 781 | 26 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 26 | _finish_dependency)); | 783 | | | 784 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 26 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 26 | return Status::OK(); | 787 | 26 | } |
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 | 48.5k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 48.5k | RETURN_IF_ERROR(Base::open(state)); |
793 | 48.5k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 392k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 343k | RETURN_IF_ERROR( |
796 | 343k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 343k | } |
798 | 48.5k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 48.5k | return Status::OK(); |
800 | 48.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 359 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 359 | RETURN_IF_ERROR(Base::open(state)); | 793 | 359 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.86k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.50k | RETURN_IF_ERROR( | 796 | 1.50k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.50k | } | 798 | 359 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 359 | return Status::OK(); | 800 | 359 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 48.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 48.1k | RETURN_IF_ERROR(Base::open(state)); | 793 | 48.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 389k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 341k | RETURN_IF_ERROR( | 796 | 341k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 341k | } | 798 | 48.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 48.1k | return Status::OK(); | 800 | 48.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 26 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 26 | RETURN_IF_ERROR(Base::open(state)); | 793 | 26 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 468 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 442 | RETURN_IF_ERROR( | 796 | 442 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 442 | } | 798 | 26 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 26 | return Status::OK(); | 800 | 26 | } |
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 | 64.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 64.0k | return _writer->sink(block, eos); |
806 | 64.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.67k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.67k | return _writer->sink(block, eos); | 806 | 1.67k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 62.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 62.3k | return _writer->sink(block, eos); | 806 | 62.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 26 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 26 | return _writer->sink(block, eos); | 806 | 26 | } |
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 | 48.6k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 48.6k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 48.6k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 48.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 | 48.7k | if (_writer) { |
818 | 48.7k | Status st = _writer->get_writer_status(); |
819 | 48.7k | if (exec_status.ok()) { |
820 | 48.6k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 48.6k | : Status::Cancelled("force close")); |
822 | 48.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 | 48.7k | RETURN_IF_ERROR(st); |
829 | 48.7k | } |
830 | 48.6k | return Base::close(state, exec_status); |
831 | 48.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 346 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 346 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 346 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 346 | 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 | 346 | if (_writer) { | 818 | 346 | Status st = _writer->get_writer_status(); | 819 | 346 | if (exec_status.ok()) { | 820 | 346 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 346 | : Status::Cancelled("force close")); | 822 | 346 | } 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 | 346 | RETURN_IF_ERROR(st); | 829 | 346 | } | 830 | 346 | return Base::close(state, exec_status); | 831 | 346 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 48.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 48.3k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 48.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 48.3k | 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 | 48.3k | if (_writer) { | 818 | 48.3k | Status st = _writer->get_writer_status(); | 819 | 48.3k | if (exec_status.ok()) { | 820 | 48.2k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 48.2k | : Status::Cancelled("force close")); | 822 | 48.2k | } 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 | 48.3k | RETURN_IF_ERROR(st); | 829 | 48.3k | } | 830 | 48.2k | return Base::close(state, exec_status); | 831 | 48.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 26 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 26 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 26 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 26 | 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 | 26 | if (_writer) { | 818 | 26 | Status st = _writer->get_writer_status(); | 819 | 26 | if (exec_status.ok()) { | 820 | 26 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 26 | : Status::Cancelled("force close")); | 822 | 26 | } 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 | 26 | RETURN_IF_ERROR(st); | 829 | 26 | } | 830 | 26 | return Base::close(state, exec_status); | 831 | 26 | } |
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 |