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/paimon_table_sink_operator.h" |
68 | | #include "exec/operator/partition_sort_sink_operator.h" |
69 | | #include "exec/operator/partition_sort_source_operator.h" |
70 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
71 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
72 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
73 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
75 | | #include "exec/operator/rec_cte_scan_operator.h" |
76 | | #include "exec/operator/rec_cte_sink_operator.h" |
77 | | #include "exec/operator/rec_cte_source_operator.h" |
78 | | #include "exec/operator/repeat_operator.h" |
79 | | #include "exec/operator/result_file_sink_operator.h" |
80 | | #include "exec/operator/result_sink_operator.h" |
81 | | #include "exec/operator/schema_scan_operator.h" |
82 | | #include "exec/operator/select_operator.h" |
83 | | #include "exec/operator/set_probe_sink_operator.h" |
84 | | #include "exec/operator/set_sink_operator.h" |
85 | | #include "exec/operator/set_source_operator.h" |
86 | | #include "exec/operator/sort_sink_operator.h" |
87 | | #include "exec/operator/sort_source_operator.h" |
88 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
89 | | #include "exec/operator/spill_sort_sink_operator.h" |
90 | | #include "exec/operator/spill_sort_source_operator.h" |
91 | | #include "exec/operator/streaming_aggregation_operator.h" |
92 | | #include "exec/operator/table_function_operator.h" |
93 | | #include "exec/operator/tvf_table_sink_operator.h" |
94 | | #include "exec/operator/union_sink_operator.h" |
95 | | #include "exec/operator/union_source_operator.h" |
96 | | #include "exec/pipeline/dependency.h" |
97 | | #include "exec/pipeline/pipeline.h" |
98 | | #include "exprs/vexpr.h" |
99 | | #include "exprs/vexpr_context.h" |
100 | | #include "runtime/runtime_profile.h" |
101 | | #include "runtime/runtime_profile_counter_names.h" |
102 | | #include "util/debug_util.h" |
103 | | #include "util/string_util.h" |
104 | | |
105 | | namespace doris { |
106 | | class RowDescriptor; |
107 | | class RuntimeState; |
108 | | } // namespace doris |
109 | | |
110 | | namespace doris { |
111 | | |
112 | 0 | Status OperatorBase::close(RuntimeState* state) { |
113 | 0 | if (_is_closed) { |
114 | 0 | return Status::OK(); |
115 | 0 | } |
116 | 0 | _is_closed = true; |
117 | 0 | return Status::OK(); |
118 | 0 | } |
119 | | |
120 | | template <typename SharedStateArg> |
121 | 1.99M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
122 | 1.99M | if (_parent->nereids_id() == -1) { |
123 | 1.05M | return fmt::format("(id={})", _parent->node_id()); |
124 | 1.05M | } else { |
125 | 943k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
126 | 943k | } |
127 | 1.99M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 67.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 67.8k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 67.8k | } else { | 125 | 67.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 67.8k | } | 127 | 67.8k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 1 | if (_parent->nereids_id() == -1) { | 123 | 1 | return fmt::format("(id={})", _parent->node_id()); | 124 | 1 | } else { | 125 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 0 | } | 127 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 219k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 219k | if (_parent->nereids_id() == -1) { | 123 | 12 | return fmt::format("(id={})", _parent->node_id()); | 124 | 219k | } else { | 125 | 219k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 219k | } | 127 | 219k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 26 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 26 | } else { | 125 | 26 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 26 | } | 127 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 6.23k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 6.23k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 6.23k | } else { | 125 | 6.23k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 6.23k | } | 127 | 6.23k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 8.39k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 8.39k | if (_parent->nereids_id() == -1) { | 123 | 16 | return fmt::format("(id={})", _parent->node_id()); | 124 | 8.37k | } else { | 125 | 8.37k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 8.37k | } | 127 | 8.39k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 100k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 100k | if (_parent->nereids_id() == -1) { | 123 | 29 | return fmt::format("(id={})", _parent->node_id()); | 124 | 100k | } else { | 125 | 100k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 100k | } | 127 | 100k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 76.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 76.3k | if (_parent->nereids_id() == -1) { | 123 | 2 | return fmt::format("(id={})", _parent->node_id()); | 124 | 76.3k | } else { | 125 | 76.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 76.3k | } | 127 | 76.3k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 140 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 140 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 140 | } else { | 125 | 140 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 140 | } | 127 | 140 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 734k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 734k | if (_parent->nereids_id() == -1) { | 123 | 330k | return fmt::format("(id={})", _parent->node_id()); | 124 | 403k | } else { | 125 | 403k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 403k | } | 127 | 734k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 55.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 55.6k | if (_parent->nereids_id() == -1) { | 123 | 2 | return fmt::format("(id={})", _parent->node_id()); | 124 | 55.6k | } else { | 125 | 55.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 55.6k | } | 127 | 55.6k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 26 | if (_parent->nereids_id() == -1) { | 123 | 26 | return fmt::format("(id={})", _parent->node_id()); | 124 | 26 | } else { | 125 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 0 | } | 127 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 4.86k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 4.86k | if (_parent->nereids_id() == -1) { | 123 | 4.86k | return fmt::format("(id={})", _parent->node_id()); | 124 | 18.4E | } else { | 125 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 18.4E | } | 127 | 4.86k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 400 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 400 | if (_parent->nereids_id() == -1) { | 123 | 102 | return fmt::format("(id={})", _parent->node_id()); | 124 | 298 | } else { | 125 | 298 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 298 | } | 127 | 400 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 5.09k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.09k | if (_parent->nereids_id() == -1) { | 123 | 13 | return fmt::format("(id={})", _parent->node_id()); | 124 | 5.08k | } else { | 125 | 5.08k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 5.08k | } | 127 | 5.09k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 719k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 719k | if (_parent->nereids_id() == -1) { | 123 | 719k | return fmt::format("(id={})", _parent->node_id()); | 124 | 18.4E | } else { | 125 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 18.4E | } | 127 | 719k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 169 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 169 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 169 | } else { | 125 | 169 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 169 | } | 127 | 169 | } |
|
128 | | |
129 | | template <typename SharedStateArg> |
130 | 1.31M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
131 | 1.31M | if (_parent->nereids_id() == -1) { |
132 | 777k | return fmt::format("(id={})", _parent->node_id()); |
133 | 777k | } else { |
134 | 540k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
135 | 540k | } |
136 | 1.31M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 116k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 116k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 116k | } else { | 134 | 116k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 116k | } | 136 | 116k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 2 | if (_parent->nereids_id() == -1) { | 132 | 1 | return fmt::format("(id={})", _parent->node_id()); | 133 | 1 | } else { | 134 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 1 | } | 136 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 221k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 221k | if (_parent->nereids_id() == -1) { | 132 | 9 | return fmt::format("(id={})", _parent->node_id()); | 133 | 221k | } else { | 134 | 221k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 221k | } | 136 | 221k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 33 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 33 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 33 | } else { | 134 | 33 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 33 | } | 136 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 6.26k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 6.26k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 6.26k | } else { | 134 | 6.26k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 6.26k | } | 136 | 6.26k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 8.44k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 8.44k | if (_parent->nereids_id() == -1) { | 132 | 16 | return fmt::format("(id={})", _parent->node_id()); | 133 | 8.42k | } else { | 134 | 8.42k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 8.42k | } | 136 | 8.44k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 101k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 101k | if (_parent->nereids_id() == -1) { | 132 | 29 | return fmt::format("(id={})", _parent->node_id()); | 133 | 101k | } else { | 134 | 101k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 101k | } | 136 | 101k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 76.2k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 76.2k | if (_parent->nereids_id() == -1) { | 132 | 4 | return fmt::format("(id={})", _parent->node_id()); | 133 | 76.2k | } else { | 134 | 76.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 76.2k | } | 136 | 76.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 150 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 150 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 150 | } else { | 134 | 150 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 150 | } | 136 | 150 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 12 | if (_parent->nereids_id() == -1) { | 132 | 12 | return fmt::format("(id={})", _parent->node_id()); | 133 | 12 | } else { | 134 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 0 | } | 136 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 10.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 10.0k | if (_parent->nereids_id() == -1) { | 132 | 3 | return fmt::format("(id={})", _parent->node_id()); | 133 | 10.0k | } else { | 134 | 10.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 10.0k | } | 136 | 10.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 400 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 400 | if (_parent->nereids_id() == -1) { | 132 | 102 | return fmt::format("(id={})", _parent->node_id()); | 133 | 298 | } else { | 134 | 298 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 298 | } | 136 | 400 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 12.4k | if (_parent->nereids_id() == -1) { | 132 | 12.4k | return fmt::format("(id={})", _parent->node_id()); | 133 | 18.4E | } else { | 134 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 18.4E | } | 136 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 289k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 289k | if (_parent->nereids_id() == -1) { | 132 | 289k | return fmt::format("(id={})", _parent->node_id()); | 133 | 18.4E | } else { | 134 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 18.4E | } | 136 | 289k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 474k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 474k | if (_parent->nereids_id() == -1) { | 132 | 474k | return fmt::format("(id={})", _parent->node_id()); | 133 | 18.4E | } else { | 134 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 18.4E | } | 136 | 474k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 25 | if (_parent->nereids_id() == -1) { | 132 | 25 | return fmt::format("(id={})", _parent->node_id()); | 133 | 25 | } else { | 134 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 0 | } | 136 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 338 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 338 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 338 | } else { | 134 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 338 | } | 136 | 338 | } |
|
137 | | |
138 | | template <typename SharedStateArg> |
139 | 31.1k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
140 | 31.1k | if (_terminated) { |
141 | 0 | return Status::OK(); |
142 | 0 | } |
143 | 31.1k | _terminated = true; |
144 | 31.1k | return Status::OK(); |
145 | 31.1k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 24.0k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 24.0k | _terminated = true; | 144 | 24.0k | return Status::OK(); | 145 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2.80k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2.80k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2.80k | _terminated = true; | 144 | 2.80k | return Status::OK(); | 145 | 2.80k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 8 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 8 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 8 | _terminated = true; | 144 | 8 | return Status::OK(); | 145 | 8 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 7 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 7 | _terminated = true; | 144 | 7 | return Status::OK(); | 145 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 1.91k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 1.91k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 1.91k | _terminated = true; | 144 | 1.91k | return Status::OK(); | 145 | 1.91k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 674 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 674 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 674 | _terminated = true; | 144 | 674 | return Status::OK(); | 145 | 674 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 734 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 734 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 734 | _terminated = true; | 144 | 734 | return Status::OK(); | 145 | 734 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 352 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 352 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 352 | _terminated = true; | 144 | 352 | return Status::OK(); | 145 | 352 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 7 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 7 | _terminated = true; | 144 | 7 | return Status::OK(); | 145 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 161 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 161 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 161 | _terminated = true; | 144 | 161 | return Status::OK(); | 145 | 161 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 8 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 8 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 8 | _terminated = true; | 144 | 8 | return Status::OK(); | 145 | 8 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 289 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 289 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 289 | _terminated = true; | 144 | 289 | return Status::OK(); | 145 | 289 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 130 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 130 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 130 | _terminated = true; | 144 | 130 | return Status::OK(); | 145 | 130 | } |
|
146 | | |
147 | 317k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
148 | 317k | return _child && _child->is_serial_operator() && !is_source() |
149 | 317k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
150 | 317k | : DataDistribution(TLocalPartitionType::NOOP); |
151 | 317k | } |
152 | | |
153 | 26.4k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
154 | 26.4k | if (!_child) { |
155 | 25.2k | return false; |
156 | 25.2k | } |
157 | 1.21k | if (_child->is_serial_operator()) { |
158 | 153 | return true; |
159 | 153 | } |
160 | 1.05k | const auto child_distribution = _child->required_data_distribution(state); |
161 | 1.05k | return child_distribution.need_local_exchange() && |
162 | 1.05k | !is_shuffled_exchange(child_distribution.distribution_type); |
163 | 1.21k | } |
164 | | |
165 | | template <typename SharedStateArg> |
166 | 12.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
167 | 12.7k | fmt::memory_buffer debug_string_buffer; |
168 | 12.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
169 | 12.7k | return fmt::to_string(debug_string_buffer); |
170 | 12.7k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 3 | fmt::memory_buffer debug_string_buffer; | 168 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 3 | return fmt::to_string(debug_string_buffer); | 170 | 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 | 166 | 12.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 12.7k | fmt::memory_buffer debug_string_buffer; | 168 | 12.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 12.7k | return fmt::to_string(debug_string_buffer); | 170 | 12.7k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 1 | fmt::memory_buffer debug_string_buffer; | 168 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 1 | return fmt::to_string(debug_string_buffer); | 170 | 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 |
171 | | |
172 | | template <typename SharedStateArg> |
173 | 12.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
174 | 12.7k | fmt::memory_buffer debug_string_buffer; |
175 | 12.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
176 | 12.7k | return fmt::to_string(debug_string_buffer); |
177 | 12.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 | 173 | 12.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 12.7k | fmt::memory_buffer debug_string_buffer; | 175 | 12.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 12.7k | return fmt::to_string(debug_string_buffer); | 177 | 12.7k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
178 | | |
179 | 12.7k | std::string OperatorXBase::debug_string(int indentation_level) const { |
180 | 12.7k | fmt::memory_buffer debug_string_buffer; |
181 | 12.7k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
182 | 12.7k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
183 | 12.7k | _is_serial_operator); |
184 | 12.7k | return fmt::to_string(debug_string_buffer); |
185 | 12.7k | } |
186 | | |
187 | 12.7k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
188 | 12.7k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
189 | 12.7k | } |
190 | | |
191 | 692k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
192 | 692k | std::string node_name = print_plan_node_type(tnode.node_type); |
193 | 692k | _nereids_id = tnode.nereids_id; |
194 | 692k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
195 | 6.62k | if (!has_projection()) { |
196 | 0 | return Status::InternalError("no final output tuple id"); |
197 | 0 | } |
198 | 6.62k | if (tnode.intermediate_output_tuple_id_list.size() != |
199 | 6.62k | tnode.intermediate_projections_list.size()) { |
200 | 0 | return Status::InternalError( |
201 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
202 | 0 | "intermediate_projections_list size:{}", |
203 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
204 | 0 | tnode.intermediate_projections_list.size()); |
205 | 0 | } |
206 | 6.62k | } |
207 | 692k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
208 | 692k | _op_name = substr + "_OPERATOR"; |
209 | | |
210 | 692k | if (tnode.__isset.vconjunct) { |
211 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
212 | 692k | } else if (tnode.__isset.conjuncts) { |
213 | 281k | for (const auto& conjunct : tnode.conjuncts) { |
214 | 281k | VExprContextSPtr context; |
215 | 281k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
216 | 281k | _conjuncts.emplace_back(context); |
217 | 281k | } |
218 | 104k | } |
219 | | |
220 | | // create the projections expr |
221 | 692k | if (tnode.__isset.projections) { |
222 | 274k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
223 | 274k | } |
224 | 692k | if (!tnode.intermediate_projections_list.empty()) { |
225 | 6.62k | DCHECK(has_projection()) << "no final projections"; |
226 | 6.62k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
227 | 11.8k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
228 | 11.8k | VExprContextSPtrs projections; |
229 | 11.8k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
230 | 11.8k | _projection->intermediate_projections.push_back(projections); |
231 | 11.8k | } |
232 | 6.62k | } |
233 | 692k | return Status::OK(); |
234 | 692k | } |
235 | | |
236 | 720k | Status OperatorXBase::prepare(RuntimeState* state) { |
237 | 720k | for (auto& conjunct : _conjuncts) { |
238 | 280k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
239 | 280k | } |
240 | 720k | if (state->enable_adjust_conjunct_order_by_cost()) { |
241 | 669k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
242 | 344k | return a->execute_cost() < b->execute_cost(); |
243 | 344k | }); |
244 | 669k | }; |
245 | | |
246 | 720k | if (has_projection()) { |
247 | 273k | auto& projection = *_projection; |
248 | 285k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
249 | 11.8k | const auto& input_row_desc = |
250 | 11.8k | i == 0 ? operator_row_desc_before_projection() |
251 | 11.8k | : projection.intermediate_output_row_descriptors[i - 1]; |
252 | 11.8k | RETURN_IF_ERROR( |
253 | 11.8k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
254 | 11.8k | } |
255 | 273k | const auto& final_projection_input_row_desc = |
256 | 273k | projection.intermediate_output_row_descriptors.empty() |
257 | 273k | ? operator_row_desc_before_projection() |
258 | 273k | : projection.intermediate_output_row_descriptors.back(); |
259 | 273k | RETURN_IF_ERROR( |
260 | 273k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
261 | 273k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
262 | 273k | projection.output_row_descriptor)); |
263 | 273k | } |
264 | | |
265 | 720k | for (auto& conjunct : _conjuncts) { |
266 | 280k | RETURN_IF_ERROR(conjunct->open(state)); |
267 | 280k | } |
268 | 720k | if (has_projection()) { |
269 | 274k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
270 | 273k | for (auto& projections : _projection->intermediate_projections) { |
271 | 11.8k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
272 | 11.8k | } |
273 | 273k | } |
274 | 720k | if (_child && !is_source()) { |
275 | 94.9k | RETURN_IF_ERROR(_child->prepare(state)); |
276 | 94.9k | } |
277 | | |
278 | 720k | if (VExpr::contains_blockable_function(_conjuncts) || |
279 | 720k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
280 | 0 | _blockable = true; |
281 | 0 | } |
282 | | |
283 | 720k | return Status::OK(); |
284 | 720k | } |
285 | | |
286 | 7.82k | Status OperatorXBase::terminate(RuntimeState* state) { |
287 | 7.82k | if (_child && !is_source()) { |
288 | 705 | RETURN_IF_ERROR(_child->terminate(state)); |
289 | 705 | } |
290 | 7.82k | auto result = state->get_local_state_result(operator_id()); |
291 | 7.82k | if (!result) { |
292 | 0 | return result.error(); |
293 | 0 | } |
294 | 7.82k | return result.value()->terminate(state); |
295 | 7.82k | } |
296 | | |
297 | 5.43M | Status OperatorXBase::close(RuntimeState* state) { |
298 | 5.43M | if (_child && !is_source()) { |
299 | 935k | RETURN_IF_ERROR(_child->close(state)); |
300 | 935k | } |
301 | 5.43M | auto result = state->get_local_state_result(operator_id()); |
302 | 5.43M | if (!result) { |
303 | 0 | return result.error(); |
304 | 0 | } |
305 | 5.43M | return result.value()->close(state); |
306 | 5.43M | } |
307 | | |
308 | 294k | void PipelineXLocalStateBase::clear_origin_block() { |
309 | 294k | _origin_block.clear_column_data(_parent->operator_row_desc_before_projection().num_slots()); |
310 | 294k | } |
311 | | |
312 | 850k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 850k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 850k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 850k | return Status::OK(); |
317 | 850k | } |
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 | 294k | Block* output_block) const { |
326 | 294k | auto* local_state = state->get_local_state(operator_id()); |
327 | 294k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 294k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 294k | const size_t rows = origin_block->rows(); |
330 | 294k | if (rows == 0) { |
331 | 152k | return Status::OK(); |
332 | 152k | } |
333 | 142k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 142k | { |
336 | 142k | Block input_block = *origin_block; |
337 | | |
338 | 142k | ColumnsWithTypeAndName new_columns; |
339 | 142k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 4.69k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 4.69k | new_columns.resize(projections.size()); |
345 | 81.3k | for (int i = 0; i < projections.size(); i++) { |
346 | 76.6k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 76.6k | 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 | 76.6k | } |
355 | 4.68k | Block tmp_block {new_columns}; |
356 | 4.68k | input_block.swap(tmp_block); |
357 | 4.68k | } |
358 | | |
359 | 142k | 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 | 142k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 142k | output_block, _projection->output_row_descriptor); |
368 | 142k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 142k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 142k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 792k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 650k | ColumnPtr column_ptr; |
374 | 650k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 650k | if (column_ptr->size() != rows) { |
376 | 0 | return Status::InternalError( |
377 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
378 | 0 | column_ptr->size(), rows, |
379 | 0 | local_state->_projections[i]->root()->debug_string()); |
380 | 0 | } |
381 | 650k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 650k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 650k | if (column_ptr->is_exclusive()) { |
386 | 236k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 413k | } else { |
388 | 413k | shared_columns[i] = std::move(column_ptr); |
389 | 413k | } |
390 | 650k | } |
391 | | |
392 | 142k | scoped_mutable_block.restore(); |
393 | 792k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 650k | if (shared_columns[i]) { |
395 | 413k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 413k | } |
397 | 650k | } |
398 | 142k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 142k | local_state->_parent->operator_row_desc_before_projection().num_slots()); |
402 | 142k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 142k | return Status::OK(); |
405 | 142k | } |
406 | | |
407 | 4.24M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.24M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.24M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.24M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.24M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.24M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.24M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.24M | return Status::OK(); |
415 | 4.24M | } |
416 | 4.24M | } |
417 | 4.24M | }); |
418 | | |
419 | 4.24M | Status status; |
420 | 4.24M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.24M | Defer defer([&]() { |
422 | 4.24M | if (status.ok()) { |
423 | 4.24M | local_state->update_output_block_counters(*block); |
424 | 4.24M | } |
425 | 4.24M | }); |
426 | 4.24M | if (has_projection()) { |
427 | 294k | local_state->clear_origin_block(); |
428 | 294k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 294k | if (UNLIKELY(!status.ok())) { |
430 | 26 | return status; |
431 | 26 | } |
432 | 294k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 294k | return status; |
434 | 294k | } |
435 | 3.94M | status = get_block(state, block, eos); |
436 | 3.94M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.94M | return status; |
438 | 3.94M | } |
439 | | |
440 | 2.82M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.82M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.85k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.85k | *eos = true; |
444 | 9.85k | } |
445 | | |
446 | 2.82M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.82M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.82M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.82M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.82M | if (op_name == arg_op_name) { |
452 | 2.82M | *eos = true; |
453 | 2.82M | } |
454 | 2.82M | }); |
455 | | |
456 | 2.82M | if (auto rows = block->rows()) { |
457 | 770k | _num_rows_returned += rows; |
458 | 770k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 770k | } |
460 | 2.82M | } |
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 | 12.7k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 12.7k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 12.7k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 12.7k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 12.7k | return fmt::to_string(debug_string_buffer); |
476 | 12.7k | } |
477 | | |
478 | 12.7k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 12.7k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 12.7k | } |
481 | | |
482 | 360k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 360k | std::string op_name = "UNKNOWN_SINK"; |
484 | 360k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 361k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 361k | op_name = it->second; |
488 | 361k | } |
489 | 360k | _name = op_name + "_OPERATOR"; |
490 | 360k | return Status::OK(); |
491 | 360k | } |
492 | | |
493 | 310k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 310k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 310k | _nereids_id = tnode.nereids_id; |
496 | 310k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 310k | _name = substr + "_SINK_OPERATOR"; |
498 | 310k | return Status::OK(); |
499 | 310k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.87M | LocalSinkStateInfo& info) { |
504 | 1.87M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.87M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.87M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.87M | return Status::OK(); |
508 | 1.87M | } _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 | 427k | LocalSinkStateInfo& info) { | 504 | 427k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 427k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 427k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 427k | return Status::OK(); | 508 | 427k | } |
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 | 352 | LocalSinkStateInfo& info) { | 504 | 352 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 352 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 352 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 352 | return Status::OK(); | 508 | 352 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 48.0k | LocalSinkStateInfo& info) { | 504 | 48.0k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 48.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 48.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 48.0k | return Status::OK(); | 508 | 48.0k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 28 | LocalSinkStateInfo& info) { | 504 | 28 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 28 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 28 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 28 | return Status::OK(); | 508 | 28 | } |
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_25PaimonTableSinkLocalStateEE17setup_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 | 8.42k | LocalSinkStateInfo& info) { | 504 | 8.42k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.42k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.42k | return Status::OK(); | 508 | 8.42k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 9 | LocalSinkStateInfo& info) { | 504 | 9 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9 | return Status::OK(); | 508 | 9 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 222k | LocalSinkStateInfo& info) { | 504 | 222k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 222k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 222k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 222k | return Status::OK(); | 508 | 222k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 33 | LocalSinkStateInfo& info) { | 504 | 33 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 33 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 33 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 33 | return Status::OK(); | 508 | 33 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 289k | LocalSinkStateInfo& info) { | 504 | 289k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 289k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 289k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 289k | return Status::OK(); | 508 | 289k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 101k | LocalSinkStateInfo& info) { | 504 | 101k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 101k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 101k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 101k | return Status::OK(); | 508 | 101k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 76.3k | LocalSinkStateInfo& info) { | 504 | 76.3k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 76.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 76.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 76.3k | return Status::OK(); | 508 | 76.3k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 150 | LocalSinkStateInfo& info) { | 504 | 150 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 150 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 150 | return Status::OK(); | 508 | 150 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 552k | LocalSinkStateInfo& info) { | 504 | 552k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 552k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 552k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 552k | return Status::OK(); | 508 | 552k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.27k | LocalSinkStateInfo& info) { | 504 | 6.27k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.27k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.27k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.27k | return Status::OK(); | 508 | 6.27k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 10.0k | LocalSinkStateInfo& info) { | 504 | 10.0k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 10.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 10.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 10.0k | return Status::OK(); | 508 | 10.0k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1.92k | LocalSinkStateInfo& info) { | 504 | 1.92k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1.92k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1.92k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1.92k | return Status::OK(); | 508 | 1.92k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 299 | LocalSinkStateInfo& info) { | 504 | 299 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 299 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 299 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 299 | return Status::OK(); | 508 | 299 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.77k | LocalSinkStateInfo& info) { | 504 | 4.77k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.77k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.77k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.77k | return Status::OK(); | 508 | 4.77k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.52k | LocalSinkStateInfo& info) { | 504 | 2.52k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.52k | return Status::OK(); | 508 | 2.52k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.60k | LocalSinkStateInfo& info) { | 504 | 2.60k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.60k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.60k | return Status::OK(); | 508 | 2.60k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.46k | LocalSinkStateInfo& info) { | 504 | 2.46k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.46k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.46k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.46k | return Status::OK(); | 508 | 2.46k | } |
_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 | 563 | LocalSinkStateInfo& info) { | 504 | 563 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 563 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 563 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 563 | return Status::OK(); | 508 | 563 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 106 | LocalSinkStateInfo& info) { | 504 | 106 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 106 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 106 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 106 | return Status::OK(); | 508 | 106 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.48M | 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.48M | } else { |
519 | 1.48M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.48M | ss->id = operator_id(); |
521 | 1.48M | for (auto& dest : dests_id()) { |
522 | 1.47M | ss->related_op_ids.insert(dest); |
523 | 1.47M | } |
524 | 1.48M | return ss; |
525 | 1.48M | } |
526 | 1.48M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 105k | 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 | 105k | } else { | 519 | 105k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 105k | ss->id = operator_id(); | 521 | 105k | for (auto& dest : dests_id()) { | 522 | 104k | ss->related_op_ids.insert(dest); | 523 | 104k | } | 524 | 105k | return ss; | 525 | 105k | } | 526 | 105k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 427k | 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 | 427k | } else { | 519 | 427k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 427k | ss->id = operator_id(); | 521 | 427k | for (auto& dest : dests_id()) { | 522 | 426k | ss->related_op_ids.insert(dest); | 523 | 426k | } | 524 | 427k | return ss; | 525 | 427k | } | 526 | 427k | } |
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 | 352 | 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 | 352 | } else { | 519 | 352 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 352 | ss->id = operator_id(); | 521 | 352 | for (auto& dest : dests_id()) { | 522 | 352 | ss->related_op_ids.insert(dest); | 523 | 352 | } | 524 | 352 | return ss; | 525 | 352 | } | 526 | 352 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 48.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 48.1k | } else { | 519 | 48.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 48.1k | ss->id = operator_id(); | 521 | 48.1k | for (auto& dest : dests_id()) { | 522 | 47.8k | ss->related_op_ids.insert(dest); | 523 | 47.8k | } | 524 | 48.1k | return ss; | 525 | 48.1k | } | 526 | 48.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 28 | 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 | 28 | } else { | 519 | 28 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 28 | ss->id = operator_id(); | 521 | 28 | for (auto& dest : dests_id()) { | 522 | 28 | ss->related_op_ids.insert(dest); | 523 | 28 | } | 524 | 28 | return ss; | 525 | 28 | } | 526 | 28 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25PaimonTableSinkLocalStateEE19create_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 | 8.47k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 8.47k | } else { | 519 | 8.47k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 8.47k | ss->id = operator_id(); | 521 | 8.47k | for (auto& dest : dests_id()) { | 522 | 8.47k | ss->related_op_ids.insert(dest); | 523 | 8.47k | } | 524 | 8.47k | return ss; | 525 | 8.47k | } | 526 | 8.47k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 9 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 9 | } else { | 519 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 9 | ss->id = operator_id(); | 521 | 9 | for (auto& dest : dests_id()) { | 522 | 9 | ss->related_op_ids.insert(dest); | 523 | 9 | } | 524 | 9 | return ss; | 525 | 9 | } | 526 | 9 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 222k | 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 | 222k | } else { | 519 | 222k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 222k | ss->id = operator_id(); | 521 | 222k | for (auto& dest : dests_id()) { | 522 | 222k | ss->related_op_ids.insert(dest); | 523 | 222k | } | 524 | 222k | return ss; | 525 | 222k | } | 526 | 222k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 35 | 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 | 35 | } else { | 519 | 35 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 35 | ss->id = operator_id(); | 521 | 35 | for (auto& dest : dests_id()) { | 522 | 35 | ss->related_op_ids.insert(dest); | 523 | 35 | } | 524 | 35 | return ss; | 525 | 35 | } | 526 | 35 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 101k | 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 | 101k | } else { | 519 | 101k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 101k | ss->id = operator_id(); | 521 | 101k | for (auto& dest : dests_id()) { | 522 | 101k | ss->related_op_ids.insert(dest); | 523 | 101k | } | 524 | 101k | return ss; | 525 | 101k | } | 526 | 101k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 149 | 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 | 149 | } else { | 519 | 149 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 149 | ss->id = operator_id(); | 521 | 149 | for (auto& dest : dests_id()) { | 522 | 149 | ss->related_op_ids.insert(dest); | 523 | 149 | } | 524 | 149 | return ss; | 525 | 149 | } | 526 | 149 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 554k | 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 | 554k | } else { | 519 | 554k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 554k | ss->id = operator_id(); | 521 | 554k | for (auto& dest : dests_id()) { | 522 | 547k | ss->related_op_ids.insert(dest); | 523 | 547k | } | 524 | 554k | return ss; | 525 | 554k | } | 526 | 554k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.28k | 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.28k | } else { | 519 | 6.28k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.28k | ss->id = operator_id(); | 521 | 6.28k | for (auto& dest : dests_id()) { | 522 | 6.27k | ss->related_op_ids.insert(dest); | 523 | 6.27k | } | 524 | 6.28k | return ss; | 525 | 6.28k | } | 526 | 6.28k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 400 | 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 | 400 | } else { | 519 | 400 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 400 | ss->id = operator_id(); | 521 | 400 | for (auto& dest : dests_id()) { | 522 | 400 | ss->related_op_ids.insert(dest); | 523 | 400 | } | 524 | 400 | return ss; | 525 | 400 | } | 526 | 400 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.60k | 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.60k | } else { | 519 | 2.60k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.60k | ss->id = operator_id(); | 521 | 2.60k | for (auto& dest : dests_id()) { | 522 | 2.59k | ss->related_op_ids.insert(dest); | 523 | 2.59k | } | 524 | 2.60k | return ss; | 525 | 2.60k | } | 526 | 2.60k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.46k | 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.46k | } else { | 519 | 2.46k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.46k | ss->id = operator_id(); | 521 | 2.46k | for (auto& dest : dests_id()) { | 522 | 2.46k | ss->related_op_ids.insert(dest); | 523 | 2.46k | } | 524 | 2.46k | return ss; | 525 | 2.46k | } | 526 | 2.46k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 566 | 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 | 566 | } else { | 519 | 566 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 566 | ss->id = operator_id(); | 521 | 566 | for (auto& dest : dests_id()) { | 522 | 561 | ss->related_op_ids.insert(dest); | 523 | 561 | } | 524 | 566 | return ss; | 525 | 566 | } | 526 | 566 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 106 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 106 | } else { | 519 | 106 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 106 | ss->id = operator_id(); | 521 | 106 | for (auto& dest : dests_id()) { | 522 | 106 | ss->related_op_ids.insert(dest); | 523 | 106 | } | 524 | 106 | return ss; | 525 | 106 | } | 526 | 106 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.27M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.27M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.27M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.27M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.27M | return Status::OK(); |
534 | 2.27M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 68.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 68.3k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 68.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 68.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 68.3k | return Status::OK(); | 534 | 68.3k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 252k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 252k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 252k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 252k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 252k | return Status::OK(); | 534 | 252k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 135 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 135 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 135 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 135 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 135 | return Status::OK(); | 534 | 135 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.22k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.22k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.22k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.22k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.22k | return Status::OK(); | 534 | 3.22k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.40k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.40k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.40k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.40k | return Status::OK(); | 534 | 8.40k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.62k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.62k | return Status::OK(); | 534 | 7.62k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 26 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 26 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 26 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 26 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 26 | return Status::OK(); | 534 | 26 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 214k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 214k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 214k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 214k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 214k | return Status::OK(); | 534 | 214k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 101k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 101k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 101k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 101k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 101k | return Status::OK(); | 534 | 101k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 76.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 76.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 76.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 76.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 76.6k | return Status::OK(); | 534 | 76.6k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 140 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 140 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 140 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 140 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 140 | return Status::OK(); | 534 | 140 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.40k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.40k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.40k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.40k | return Status::OK(); | 534 | 5.40k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 332k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 332k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 332k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 332k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 332k | return Status::OK(); | 534 | 332k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.49k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.49k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.49k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.49k | return Status::OK(); | 534 | 1.49k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.25k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.25k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.25k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.25k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.25k | return Status::OK(); | 534 | 6.25k | } |
_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.55k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.55k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.55k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.55k | return Status::OK(); | 534 | 1.55k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 55.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 55.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 55.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 55.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 55.8k | return Status::OK(); | 534 | 55.8k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.87k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.87k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.87k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.87k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.87k | return Status::OK(); | 534 | 4.87k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 297 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 297 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 297 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 297 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 297 | return Status::OK(); | 534 | 297 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.61k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.61k | return Status::OK(); | 534 | 2.61k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.48k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.48k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.48k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.48k | return Status::OK(); | 534 | 2.48k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 502 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 502 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 502 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 502 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 502 | return Status::OK(); | 534 | 502 | } |
_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.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.6k | return Status::OK(); | 534 | 10.6k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 726k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 726k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 726k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 726k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 726k | return Status::OK(); | 534 | 726k | } |
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 | 802 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 802 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 802 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 802 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 802 | return Status::OK(); | 534 | 802 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.03k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.03k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.03k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.03k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.03k | return Status::OK(); | 534 | 1.03k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.89k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.89k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.89k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.89k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.89k | return Status::OK(); | 534 | 5.89k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 375k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 375k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 375k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 375k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 375k | return Status::OK(); | 534 | 375k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.87M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.25M | : _num_rows_returned(0), |
542 | 2.25M | _rows_returned_counter(nullptr), |
543 | 2.25M | _parent(parent), |
544 | 2.25M | _state(state), |
545 | 2.25M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.27M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.27M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.27M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.27M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.27M | _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.27M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.27M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.27M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.27M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.27M | if constexpr (!is_fake_shared) { |
560 | 1.28M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 810k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 810k | .first.get() |
563 | 810k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 810k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 810k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 810k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 810k | } else if (info.shared_state) { |
569 | 400k | 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 | 400k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 400k | _dependency = _shared_state->create_source_dependency( |
576 | 400k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 400k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 400k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 400k | } else { |
580 | 69.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 7.30k | DCHECK(false); |
582 | 7.30k | } |
583 | 69.3k | } |
584 | 1.28M | } |
585 | | |
586 | 2.27M | 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.27M | _rows_returned_counter = |
591 | 2.27M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.27M | _blocks_returned_counter = |
593 | 2.27M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.27M | _output_block_bytes_counter = |
595 | 2.27M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.27M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.27M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.27M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.27M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.27M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.27M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.27M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.27M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.27M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.27M | _memory_used_counter = |
606 | 2.27M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.27M | _common_profile->add_info_string("IsColocate", |
608 | 2.27M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.27M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.27M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.27M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.27M | return Status::OK(); |
613 | 2.27M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 68.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 68.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 68.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 68.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 68.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 | 68.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 68.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 68.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 68.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 68.5k | if constexpr (!is_fake_shared) { | 560 | 68.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 11.2k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 11.2k | .first.get() | 563 | 11.2k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 11.2k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 11.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 11.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 57.2k | } 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.3k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 56.3k | _dependency = _shared_state->create_source_dependency( | 576 | 56.3k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 56.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 56.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 56.3k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 978 | } | 584 | 68.5k | } | 585 | | | 586 | 68.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 | 68.5k | _rows_returned_counter = | 591 | 68.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 68.5k | _blocks_returned_counter = | 593 | 68.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 68.5k | _output_block_bytes_counter = | 595 | 68.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 68.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 68.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 68.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 68.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 68.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 68.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 68.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 68.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 68.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 68.5k | _memory_used_counter = | 606 | 68.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 68.5k | _common_profile->add_info_string("IsColocate", | 608 | 68.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 68.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 68.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 68.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 68.5k | return Status::OK(); | 613 | 68.5k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 1 | if constexpr (!is_fake_shared) { | 560 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 1 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 1 | _dependency = _shared_state->create_source_dependency( | 576 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 1 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 1 | } | 585 | | | 586 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 1 | _rows_returned_counter = | 591 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 1 | _blocks_returned_counter = | 593 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 1 | _output_block_bytes_counter = | 595 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 1 | _memory_used_counter = | 606 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 1 | _common_profile->add_info_string("IsColocate", | 608 | 1 | std::to_string(_parent->is_colocated_operator())); | 609 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 1 | return Status::OK(); | 613 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 222k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 222k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 222k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 222k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 222k | _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 | 222k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 222k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 222k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 222k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 222k | if constexpr (!is_fake_shared) { | 560 | 222k | 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 | 222k | } 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 | 215k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 215k | _dependency = _shared_state->create_source_dependency( | 576 | 215k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 215k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 215k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 215k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 7.26k | } | 584 | 222k | } | 585 | | | 586 | 222k | 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 | 222k | _rows_returned_counter = | 591 | 222k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 222k | _blocks_returned_counter = | 593 | 222k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 222k | _output_block_bytes_counter = | 595 | 222k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 222k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 222k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 222k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 222k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 222k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 222k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 222k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 222k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 222k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 222k | _memory_used_counter = | 606 | 222k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 222k | _common_profile->add_info_string("IsColocate", | 608 | 222k | std::to_string(_parent->is_colocated_operator())); | 609 | 222k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 222k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 222k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 222k | return Status::OK(); | 613 | 222k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_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_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.27k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.27k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.27k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.27k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.27k | _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.27k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.27k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.27k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.27k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.27k | if constexpr (!is_fake_shared) { | 560 | 6.27k | 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.27k | } 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.19k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.19k | _dependency = _shared_state->create_source_dependency( | 576 | 6.19k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.19k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.19k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.19k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 77 | } | 584 | 6.27k | } | 585 | | | 586 | 6.27k | 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.27k | _rows_returned_counter = | 591 | 6.27k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.27k | _blocks_returned_counter = | 593 | 6.27k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.27k | _output_block_bytes_counter = | 595 | 6.27k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.27k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.27k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.27k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.27k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.27k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.27k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.27k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.27k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.27k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.27k | _memory_used_counter = | 606 | 6.27k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.27k | _common_profile->add_info_string("IsColocate", | 608 | 6.27k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.27k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.27k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.27k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.27k | return Status::OK(); | 613 | 6.27k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 8.48k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 8.48k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 8.48k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 8.48k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 8.48k | _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 | 8.48k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 8.48k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 8.48k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 8.48k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 8.48k | if constexpr (!is_fake_shared) { | 560 | 8.48k | 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 | 8.48k | } 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 | 8.35k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 8.35k | _dependency = _shared_state->create_source_dependency( | 576 | 8.35k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 8.35k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 8.35k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.35k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 123 | } | 584 | 8.48k | } | 585 | | | 586 | 8.48k | 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 | 8.48k | _rows_returned_counter = | 591 | 8.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 8.48k | _blocks_returned_counter = | 593 | 8.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 8.48k | _output_block_bytes_counter = | 595 | 8.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 8.48k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 8.48k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 8.48k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 8.48k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 8.48k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 8.48k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 8.48k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 8.48k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 8.48k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 8.48k | _memory_used_counter = | 606 | 8.48k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 8.48k | _common_profile->add_info_string("IsColocate", | 608 | 8.48k | std::to_string(_parent->is_colocated_operator())); | 609 | 8.48k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 8.48k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 8.48k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 8.48k | return Status::OK(); | 613 | 8.48k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 101k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 101k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 101k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 101k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 101k | _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 | 101k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 101k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 101k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 101k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 101k | if constexpr (!is_fake_shared) { | 560 | 101k | 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 | 101k | } 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 | 99.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 99.6k | _dependency = _shared_state->create_source_dependency( | 576 | 99.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 99.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 99.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 99.6k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2.02k | } | 584 | 101k | } | 585 | | | 586 | 101k | 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 | 101k | _rows_returned_counter = | 591 | 101k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 101k | _blocks_returned_counter = | 593 | 101k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 101k | _output_block_bytes_counter = | 595 | 101k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 101k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 101k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 101k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 101k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 101k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 101k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 101k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 101k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 101k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 101k | _memory_used_counter = | 606 | 101k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 101k | _common_profile->add_info_string("IsColocate", | 608 | 101k | std::to_string(_parent->is_colocated_operator())); | 609 | 101k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 101k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 101k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 101k | return Status::OK(); | 613 | 101k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 76.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 76.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 76.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 76.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 76.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 | 76.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 76.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 76.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 76.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 76.5k | if constexpr (!is_fake_shared) { | 560 | 76.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 76.5k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 76.5k | .first.get() | 563 | 76.5k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 76.5k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 76.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 76.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 76.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 | 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 | 13 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 13 | } | 584 | 76.5k | } | 585 | | | 586 | 76.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 | 76.5k | _rows_returned_counter = | 591 | 76.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 76.5k | _blocks_returned_counter = | 593 | 76.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 76.5k | _output_block_bytes_counter = | 595 | 76.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 76.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 76.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 76.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 76.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 76.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 76.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 76.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 76.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 76.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 76.5k | _memory_used_counter = | 606 | 76.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 76.5k | _common_profile->add_info_string("IsColocate", | 608 | 76.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 76.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 76.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 76.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 76.5k | return Status::OK(); | 613 | 76.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 140 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 140 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 140 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 140 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 140 | _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 | 140 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 140 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 140 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 140 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 140 | if constexpr (!is_fake_shared) { | 560 | 140 | 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 | 140 | } 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 | 140 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 140 | _dependency = _shared_state->create_source_dependency( | 576 | 140 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 140 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 140 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 140 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 140 | } | 585 | | | 586 | 140 | 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 | 140 | _rows_returned_counter = | 591 | 140 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 140 | _blocks_returned_counter = | 593 | 140 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 140 | _output_block_bytes_counter = | 595 | 140 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 140 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 140 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 140 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 140 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 140 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 140 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 140 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 140 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 140 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 140 | _memory_used_counter = | 606 | 140 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 140 | _common_profile->add_info_string("IsColocate", | 608 | 140 | std::to_string(_parent->is_colocated_operator())); | 609 | 140 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 140 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 140 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 140 | return Status::OK(); | 613 | 140 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 992k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 992k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 992k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 992k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 992k | _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 | 992k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 992k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 992k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 992k | 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 | 992k | 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 | 992k | _rows_returned_counter = | 591 | 992k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 992k | _blocks_returned_counter = | 593 | 992k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 992k | _output_block_bytes_counter = | 595 | 992k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 992k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 992k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 992k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 992k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 992k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 992k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 992k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 992k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 992k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 992k | _memory_used_counter = | 606 | 992k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 992k | _common_profile->add_info_string("IsColocate", | 608 | 992k | std::to_string(_parent->is_colocated_operator())); | 609 | 992k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 992k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 992k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 992k | return Status::OK(); | 613 | 992k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 55.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 55.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 55.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 55.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 55.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 | 55.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 55.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 55.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 55.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 55.7k | if constexpr (!is_fake_shared) { | 560 | 55.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 | 55.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 | 4.26k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.26k | _dependency = _shared_state->create_source_dependency( | 576 | 4.26k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 51.5k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 51.5k | } | 584 | 55.7k | } | 585 | | | 586 | 55.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 | 55.7k | _rows_returned_counter = | 591 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 55.7k | _blocks_returned_counter = | 593 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 55.7k | _output_block_bytes_counter = | 595 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 55.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 55.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 55.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 55.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 55.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 55.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 55.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 55.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 55.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 55.7k | _memory_used_counter = | 606 | 55.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 55.7k | _common_profile->add_info_string("IsColocate", | 608 | 55.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 55.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 55.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 55.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 55.7k | return Status::OK(); | 613 | 55.7k | } |
_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 | 4.88k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 4.88k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 4.88k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 4.88k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 4.88k | _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 | 4.88k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 4.88k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 4.88k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 4.88k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 4.88k | if constexpr (!is_fake_shared) { | 560 | 4.88k | 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 | 4.88k | } 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.85k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.85k | _dependency = _shared_state->create_source_dependency( | 576 | 4.85k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.85k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.85k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.85k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 27 | } | 584 | 4.88k | } | 585 | | | 586 | 4.88k | 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 | 4.88k | _rows_returned_counter = | 591 | 4.88k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 4.88k | _blocks_returned_counter = | 593 | 4.88k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 4.88k | _output_block_bytes_counter = | 595 | 4.88k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 4.88k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 4.88k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 4.88k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 4.88k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 4.88k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 4.88k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 4.88k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 4.88k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 4.88k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 4.88k | _memory_used_counter = | 606 | 4.88k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 4.88k | _common_profile->add_info_string("IsColocate", | 608 | 4.88k | std::to_string(_parent->is_colocated_operator())); | 609 | 4.88k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 4.88k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 4.88k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 4.88k | return Status::OK(); | 613 | 4.88k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 400 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 400 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 400 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 400 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 400 | _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 | 400 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 400 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 400 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 400 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 400 | if constexpr (!is_fake_shared) { | 560 | 400 | 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 | 400 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 399 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 399 | _dependency = _shared_state->create_source_dependency( | 576 | 399 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 399 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 399 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 399 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1 | } | 584 | 400 | } | 585 | | | 586 | 400 | 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 | 400 | _rows_returned_counter = | 591 | 400 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 400 | _blocks_returned_counter = | 593 | 400 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 400 | _output_block_bytes_counter = | 595 | 400 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 400 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 400 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 400 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 400 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 400 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 400 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 400 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 400 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 400 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 400 | _memory_used_counter = | 606 | 400 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 400 | _common_profile->add_info_string("IsColocate", | 608 | 400 | std::to_string(_parent->is_colocated_operator())); | 609 | 400 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 400 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 400 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 400 | return Status::OK(); | 613 | 400 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.12k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.12k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.12k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.12k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.12k | _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.12k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.12k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.12k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.12k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.12k | if constexpr (!is_fake_shared) { | 560 | 5.12k | 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.12k | } 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.07k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.07k | _dependency = _shared_state->create_source_dependency( | 576 | 5.07k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.07k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.07k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.07k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 48 | } | 584 | 5.12k | } | 585 | | | 586 | 5.12k | 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.12k | _rows_returned_counter = | 591 | 5.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.12k | _blocks_returned_counter = | 593 | 5.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.12k | _output_block_bytes_counter = | 595 | 5.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.12k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.12k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.12k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.12k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.12k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.12k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.12k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.12k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.12k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.12k | _memory_used_counter = | 606 | 5.12k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.12k | _common_profile->add_info_string("IsColocate", | 608 | 5.12k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.12k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.12k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.12k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.12k | return Status::OK(); | 613 | 5.12k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 730k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 730k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 730k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 730k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 730k | _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 | 730k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 730k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 730k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 730k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 730k | if constexpr (!is_fake_shared) { | 560 | 730k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 722k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 722k | .first.get() | 563 | 722k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 722k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 722k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 722k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 722k | } 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 | 7.30k | } else { | 580 | 7.30k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 7.30k | DCHECK(false); | 582 | 7.30k | } | 583 | 7.30k | } | 584 | 730k | } | 585 | | | 586 | 730k | 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 | 730k | _rows_returned_counter = | 591 | 730k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 730k | _blocks_returned_counter = | 593 | 730k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 730k | _output_block_bytes_counter = | 595 | 730k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 730k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 730k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 730k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 730k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 730k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 730k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 730k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 730k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 730k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 730k | _memory_used_counter = | 606 | 730k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 730k | _common_profile->add_info_string("IsColocate", | 608 | 730k | std::to_string(_parent->is_colocated_operator())); | 609 | 730k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 730k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 730k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 730k | return Status::OK(); | 613 | 730k | } |
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.28M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.28M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.59M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 310k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 310k | } |
621 | 2.28M | if (_parent->has_projection()) { |
622 | 392k | const auto& projection = *_parent->_projection; |
623 | 392k | _projections.resize(projection.projections.size()); |
624 | 2.45M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 2.06M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 2.06M | } |
627 | 392k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 416k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 23.3k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 300k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 277k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 277k | state, _intermediate_projections[i][j])); |
633 | 277k | } |
634 | 23.3k | } |
635 | 392k | } |
636 | 2.28M | return Status::OK(); |
637 | 2.28M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 68.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 68.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 70.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.88k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.88k | } | 621 | 68.7k | if (_parent->has_projection()) { | 622 | 68.7k | const auto& projection = *_parent->_projection; | 623 | 68.7k | _projections.resize(projection.projections.size()); | 624 | 375k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 306k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 306k | } | 627 | 68.7k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 78.7k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 10.0k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 219k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 209k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 209k | state, _intermediate_projections[i][j])); | 633 | 209k | } | 634 | 10.0k | } | 635 | 68.7k | } | 636 | 68.7k | return Status::OK(); | 637 | 68.7k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 223k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 223k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 223k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 223k | 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 | 223k | return Status::OK(); | 637 | 223k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 26 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 26 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 26 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 26 | 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 | 26 | return Status::OK(); | 637 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.27k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.27k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.41k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 137 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 137 | } | 621 | 6.28k | if (_parent->has_projection()) { | 622 | 6.28k | const auto& projection = *_parent->_projection; | 623 | 6.28k | _projections.resize(projection.projections.size()); | 624 | 28.5k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 22.2k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 22.2k | } | 627 | 6.28k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.30k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 27 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 222 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 195 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 195 | state, _intermediate_projections[i][j])); | 633 | 195 | } | 634 | 27 | } | 635 | 6.28k | } | 636 | 6.27k | return Status::OK(); | 637 | 6.27k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 8.48k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 8.48k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 9.24k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 756 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 756 | } | 621 | 8.48k | if (_parent->has_projection()) { | 622 | 4.20k | const auto& projection = *_parent->_projection; | 623 | 4.20k | _projections.resize(projection.projections.size()); | 624 | 17.7k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 13.5k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 13.5k | } | 627 | 4.20k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.31k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 112 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 868 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 756 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 756 | state, _intermediate_projections[i][j])); | 633 | 756 | } | 634 | 112 | } | 635 | 4.20k | } | 636 | 8.48k | return Status::OK(); | 637 | 8.48k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 101k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 101k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 103k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.51k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.51k | } | 621 | 101k | if (_parent->has_projection()) { | 622 | 32.4k | const auto& projection = *_parent->_projection; | 623 | 32.4k | _projections.resize(projection.projections.size()); | 624 | 293k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 261k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 261k | } | 627 | 32.4k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 33.2k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 734 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 4.68k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 3.95k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 3.95k | state, _intermediate_projections[i][j])); | 633 | 3.95k | } | 634 | 734 | } | 635 | 32.4k | } | 636 | 101k | return Status::OK(); | 637 | 101k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 76.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 76.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 76.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 21 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 21 | } | 621 | 76.7k | if (_parent->has_projection()) { | 622 | 259 | const auto& projection = *_parent->_projection; | 623 | 259 | _projections.resize(projection.projections.size()); | 624 | 1.07k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 817 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 817 | } | 627 | 259 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 259 | 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 | 259 | } | 636 | 76.7k | return Status::OK(); | 637 | 76.7k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 144 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 144 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 144 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 144 | if (_parent->has_projection()) { | 622 | 115 | const auto& projection = *_parent->_projection; | 623 | 115 | _projections.resize(projection.projections.size()); | 624 | 345 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 230 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 230 | } | 627 | 115 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 115 | 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 | 115 | } | 636 | 144 | return Status::OK(); | 637 | 144 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 998k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 998k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.30M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 305k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 305k | } | 621 | 998k | if (_parent->has_projection()) { | 622 | 268k | const auto& projection = *_parent->_projection; | 623 | 268k | _projections.resize(projection.projections.size()); | 624 | 1.62M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.35M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.35M | } | 627 | 268k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 280k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 12.2k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 72.3k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 60.0k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 60.0k | state, _intermediate_projections[i][j])); | 633 | 60.0k | } | 634 | 12.2k | } | 635 | 268k | } | 636 | 998k | return Status::OK(); | 637 | 998k | } |
_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 | 114k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 102k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 102k | } | 627 | 11.9k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 12.0k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 130 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 2.80k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 2.67k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 2.67k | state, _intermediate_projections[i][j])); | 633 | 2.67k | } | 634 | 130 | } | 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 | 4.87k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 4.87k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.59k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 723 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 723 | } | 621 | 4.87k | 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 | 4.87k | return Status::OK(); | 637 | 4.87k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 401 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 401 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 401 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 401 | 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 | 401 | return Status::OK(); | 637 | 401 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.12k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.12k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.12k | 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.12k | if (_parent->has_projection()) { | 622 | 63 | const auto& projection = *_parent->_projection; | 623 | 63 | _projections.resize(projection.projections.size()); | 624 | 234 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 171 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 171 | } | 627 | 63 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 63 | 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 | 63 | } | 636 | 5.12k | return Status::OK(); | 637 | 5.12k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 733k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 733k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 733k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 733k | 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 | 733k | return Status::OK(); | 637 | 733k | } |
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 | 7.82k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.82k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 7.82k | _terminated = true; |
645 | 7.82k | return Status::OK(); |
646 | 7.82k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 416 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 416 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 416 | _terminated = true; | 645 | 416 | return Status::OK(); | 646 | 416 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 32 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 32 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 32 | _terminated = true; | 645 | 32 | return Status::OK(); | 646 | 32 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 39 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 39 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 39 | _terminated = true; | 645 | 39 | return Status::OK(); | 646 | 39 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 3 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 3 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 3 | _terminated = true; | 645 | 3 | return Status::OK(); | 646 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 64 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 64 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 64 | _terminated = true; | 645 | 64 | return Status::OK(); | 646 | 64 | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.92k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.92k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5.92k | _terminated = true; | 645 | 5.92k | return Status::OK(); | 646 | 5.92k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 90 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 90 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 90 | _terminated = true; | 645 | 90 | return Status::OK(); | 646 | 90 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5 | _terminated = true; | 645 | 5 | return Status::OK(); | 646 | 5 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 7 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 7 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 7 | _terminated = true; | 645 | 7 | return Status::OK(); | 646 | 7 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.21k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.21k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1.21k | _terminated = true; | 645 | 1.21k | return Status::OK(); | 646 | 1.21k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_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 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.53M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.53M | if (_closed) { |
651 | 253k | return Status::OK(); |
652 | 253k | } |
653 | 2.28M | 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.28M | _closed = true; |
657 | 2.28M | return Status::OK(); |
658 | 2.53M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 68.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 68.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 68.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 68.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 68.6k | } | 656 | 68.6k | _closed = true; | 657 | 68.6k | return Status::OK(); | 658 | 68.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4 | } | 656 | 4 | _closed = true; | 657 | 4 | return Status::OK(); | 658 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 443k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 443k | if (_closed) { | 651 | 222k | return Status::OK(); | 652 | 222k | } | 653 | 221k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 221k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 221k | } | 656 | 221k | _closed = true; | 657 | 221k | return Status::OK(); | 658 | 443k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 26 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 26 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 26 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 26 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 26 | } | 656 | 26 | _closed = true; | 657 | 26 | return Status::OK(); | 658 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.27k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.27k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.27k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.27k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.27k | } | 656 | 6.27k | _closed = true; | 657 | 6.27k | return Status::OK(); | 658 | 6.27k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 17.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 17.0k | if (_closed) { | 651 | 8.60k | return Status::OK(); | 652 | 8.60k | } | 653 | 8.46k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 8.46k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 8.46k | } | 656 | 8.46k | _closed = true; | 657 | 8.46k | return Status::OK(); | 658 | 17.0k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 101k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 101k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 101k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 101k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 101k | } | 656 | 101k | _closed = true; | 657 | 101k | return Status::OK(); | 658 | 101k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 76.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 76.3k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 76.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 76.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 76.3k | } | 656 | 76.3k | _closed = true; | 657 | 76.3k | return Status::OK(); | 658 | 76.3k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 139 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 139 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 139 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 139 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 139 | } | 656 | 139 | _closed = true; | 657 | 139 | return Status::OK(); | 658 | 139 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 1.01M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 1.01M | if (_closed) { | 651 | 16.7k | return Status::OK(); | 652 | 16.7k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 999k | _closed = true; | 657 | 999k | return Status::OK(); | 658 | 1.01M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 55.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 55.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 55.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 55.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 55.9k | } | 656 | 55.9k | _closed = true; | 657 | 55.9k | return Status::OK(); | 658 | 55.9k | } |
_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 | 4.86k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4.86k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4.86k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4.86k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4.86k | } | 656 | 4.86k | _closed = true; | 657 | 4.86k | return Status::OK(); | 658 | 4.86k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 596 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 596 | if (_closed) { | 651 | 298 | return Status::OK(); | 652 | 298 | } | 653 | 298 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 298 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 298 | } | 656 | 298 | _closed = true; | 657 | 298 | return Status::OK(); | 658 | 596 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.4k | if (_closed) { | 651 | 5.32k | return Status::OK(); | 652 | 5.32k | } | 653 | 5.10k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.10k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.10k | } | 656 | 5.10k | _closed = true; | 657 | 5.10k | return Status::OK(); | 658 | 10.4k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 735k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 735k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 735k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 735k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 735k | } | 656 | 735k | _closed = true; | 657 | 735k | return Status::OK(); | 658 | 735k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 338 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 338 | if (_closed) { | 651 | 178 | return Status::OK(); | 652 | 178 | } | 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 | 338 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.87M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.87M | _operator_profile = |
664 | 1.87M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.87M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.87M | _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.87M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.87M | _operator_profile->add_child(_common_profile, true); |
673 | 1.87M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.87M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.87M | _wait_for_finish_dependency_timer = |
677 | 1.87M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.87M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.87M | if constexpr (!is_fake_shared) { |
680 | 1.32M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.32M | info.shared_state_map.end()) { |
682 | 378k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 290k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 290k | } |
685 | 378k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 378k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 378k | ? 0 |
688 | 378k | : info.task_idx] |
689 | 378k | .get(); |
690 | 378k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 945k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 945k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 945k | _dependency = _shared_state->create_sink_dependency( |
697 | 945k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 945k | } |
699 | 1.32M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.32M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.32M | } |
702 | | |
703 | 1.87M | 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.87M | _rows_input_counter = |
708 | 1.87M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.87M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.87M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.87M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.87M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.87M | _memory_used_counter = |
714 | 1.87M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.87M | _common_profile->add_info_string("IsColocate", |
716 | 1.87M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.87M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.87M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.87M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.87M | return Status::OK(); |
721 | 1.87M | } _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.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 11.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 11.4k | ? 0 | 688 | 11.4k | : info.task_idx] | 689 | 11.4k | .get(); | 690 | 11.4k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 105k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 105k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 105k | _dependency = _shared_state->create_sink_dependency( | 697 | 105k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 105k | } | 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 | 222k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 222k | _operator_profile = | 664 | 222k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 222k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 222k | _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 | 222k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 222k | _operator_profile->add_child(_common_profile, true); | 673 | 222k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 222k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 222k | _wait_for_finish_dependency_timer = | 677 | 222k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 222k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 222k | if constexpr (!is_fake_shared) { | 680 | 222k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 222k | 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 | 222k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 222k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 222k | _dependency = _shared_state->create_sink_dependency( | 697 | 222k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 222k | } | 699 | 222k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 222k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 222k | } | 702 | | | 703 | 222k | 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 | 222k | _rows_input_counter = | 708 | 222k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 222k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 222k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 222k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 222k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 222k | _memory_used_counter = | 714 | 222k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 222k | _common_profile->add_info_string("IsColocate", | 716 | 222k | std::to_string(_parent->is_colocated_operator())); | 717 | 222k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 222k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 222k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 222k | return Status::OK(); | 721 | 222k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 33 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 33 | _operator_profile = | 664 | 33 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 33 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 33 | _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 | 33 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 33 | _operator_profile->add_child(_common_profile, true); | 673 | 33 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 33 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 33 | _wait_for_finish_dependency_timer = | 677 | 33 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 33 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 33 | if constexpr (!is_fake_shared) { | 680 | 33 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 33 | 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 | 33 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 33 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 33 | _dependency = _shared_state->create_sink_dependency( | 697 | 33 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 33 | } | 699 | 33 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 33 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 33 | } | 702 | | | 703 | 33 | 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 | 33 | _rows_input_counter = | 708 | 33 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 33 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 33 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 33 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 33 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 33 | _memory_used_counter = | 714 | 33 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 33 | _common_profile->add_info_string("IsColocate", | 716 | 33 | std::to_string(_parent->is_colocated_operator())); | 717 | 33 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 33 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 33 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 33 | return Status::OK(); | 721 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.27k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.27k | _operator_profile = | 664 | 6.27k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.27k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.27k | _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.27k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.27k | _operator_profile->add_child(_common_profile, true); | 673 | 6.27k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.27k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.27k | _wait_for_finish_dependency_timer = | 677 | 6.27k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.27k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.27k | if constexpr (!is_fake_shared) { | 680 | 6.27k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.27k | 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.27k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.27k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.27k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.27k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.27k | } | 699 | 6.27k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.27k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.27k | } | 702 | | | 703 | 6.27k | 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.27k | _rows_input_counter = | 708 | 6.27k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.27k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.27k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.27k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.27k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.27k | _memory_used_counter = | 714 | 6.27k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.27k | _common_profile->add_info_string("IsColocate", | 716 | 6.27k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.27k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.27k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.27k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.27k | return Status::OK(); | 721 | 6.27k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.47k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.47k | _operator_profile = | 664 | 8.47k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.47k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.47k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.47k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.47k | _operator_profile->add_child(_common_profile, true); | 673 | 8.47k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.47k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.47k | _wait_for_finish_dependency_timer = | 677 | 8.47k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.47k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.47k | if constexpr (!is_fake_shared) { | 680 | 8.47k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.47k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.47k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.47k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.47k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.47k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.47k | } | 699 | 8.47k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.47k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.47k | } | 702 | | | 703 | 8.47k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.47k | _rows_input_counter = | 708 | 8.47k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.47k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.47k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.47k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.47k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.47k | _memory_used_counter = | 714 | 8.47k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.47k | _common_profile->add_info_string("IsColocate", | 716 | 8.47k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.47k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.47k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.47k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.47k | return Status::OK(); | 721 | 8.47k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 101k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 101k | _operator_profile = | 664 | 101k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 101k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 101k | _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 | 101k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 101k | _operator_profile->add_child(_common_profile, true); | 673 | 101k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 101k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 101k | _wait_for_finish_dependency_timer = | 677 | 101k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 101k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 101k | if constexpr (!is_fake_shared) { | 680 | 101k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 101k | 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 | 101k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 101k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 101k | _dependency = _shared_state->create_sink_dependency( | 697 | 101k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 101k | } | 699 | 101k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 101k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 101k | } | 702 | | | 703 | 101k | 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 | 101k | _rows_input_counter = | 708 | 101k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 101k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 101k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 101k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 101k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 101k | _memory_used_counter = | 714 | 101k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 101k | _common_profile->add_info_string("IsColocate", | 716 | 101k | std::to_string(_parent->is_colocated_operator())); | 717 | 101k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 101k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 101k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 101k | return Status::OK(); | 721 | 101k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 76.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 76.5k | _operator_profile = | 664 | 76.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 76.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 76.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 76.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 76.5k | _operator_profile->add_child(_common_profile, true); | 673 | 76.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 76.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 76.5k | _wait_for_finish_dependency_timer = | 677 | 76.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 76.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 76.5k | if constexpr (!is_fake_shared) { | 680 | 76.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 76.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 | 76.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 76.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 76.6k | ? 0 | 688 | 76.6k | : info.task_idx] | 689 | 76.6k | .get(); | 690 | 76.6k | _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 | 76.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 76.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 76.5k | } | 702 | | | 703 | 76.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 76.5k | _rows_input_counter = | 708 | 76.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 76.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 76.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 76.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 76.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 76.5k | _memory_used_counter = | 714 | 76.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 76.5k | _common_profile->add_info_string("IsColocate", | 716 | 76.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 76.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 76.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 76.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 76.5k | return Status::OK(); | 721 | 76.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 150 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 150 | _operator_profile = | 664 | 150 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 150 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 150 | _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 | 150 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 150 | _operator_profile->add_child(_common_profile, true); | 673 | 150 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 150 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 150 | _wait_for_finish_dependency_timer = | 677 | 150 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 150 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 150 | if constexpr (!is_fake_shared) { | 680 | 150 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 150 | 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 | 150 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 150 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 150 | _dependency = _shared_state->create_sink_dependency( | 697 | 150 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 150 | } | 699 | 150 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 150 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 150 | } | 702 | | | 703 | 150 | 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 | 150 | _rows_input_counter = | 708 | 150 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 150 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 150 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 150 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 150 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 150 | _memory_used_counter = | 714 | 150 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 150 | _common_profile->add_info_string("IsColocate", | 716 | 150 | std::to_string(_parent->is_colocated_operator())); | 717 | 150 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 150 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 150 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 150 | return Status::OK(); | 721 | 150 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 555k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 555k | _operator_profile = | 664 | 555k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 555k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 555k | _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 | 555k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 555k | _operator_profile->add_child(_common_profile, true); | 673 | 555k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 555k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 555k | _wait_for_finish_dependency_timer = | 677 | 555k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 555k | 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 | 555k | 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 | 555k | _rows_input_counter = | 708 | 555k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 555k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 555k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 555k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 555k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 555k | _memory_used_counter = | 714 | 555k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 555k | _common_profile->add_info_string("IsColocate", | 716 | 555k | std::to_string(_parent->is_colocated_operator())); | 717 | 555k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 555k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 555k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 555k | return Status::OK(); | 721 | 555k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 10.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 10.0k | _operator_profile = | 664 | 10.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 10.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 10.0k | _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.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 10.0k | _operator_profile->add_child(_common_profile, true); | 673 | 10.0k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 10.0k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 10.0k | _wait_for_finish_dependency_timer = | 677 | 10.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 10.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 10.0k | if constexpr (!is_fake_shared) { | 680 | 10.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 10.0k | 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.0k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 10.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 10.0k | _dependency = _shared_state->create_sink_dependency( | 697 | 10.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 10.0k | } | 699 | 10.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 10.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 10.0k | } | 702 | | | 703 | 10.0k | 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.0k | _rows_input_counter = | 708 | 10.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 10.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 10.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 10.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 10.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 10.0k | _memory_used_counter = | 714 | 10.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 10.0k | _common_profile->add_info_string("IsColocate", | 716 | 10.0k | std::to_string(_parent->is_colocated_operator())); | 717 | 10.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 10.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 10.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 10.0k | return Status::OK(); | 721 | 10.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 400 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 400 | _operator_profile = | 664 | 400 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 400 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 400 | _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 | 400 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 400 | _operator_profile->add_child(_common_profile, true); | 673 | 400 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 400 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 400 | _wait_for_finish_dependency_timer = | 677 | 400 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 400 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 400 | if constexpr (!is_fake_shared) { | 680 | 400 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 400 | 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 | 400 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 400 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 400 | _dependency = _shared_state->create_sink_dependency( | 697 | 400 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 400 | } | 699 | 400 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 400 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 400 | } | 702 | | | 703 | 400 | 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 | 400 | _rows_input_counter = | 708 | 400 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 400 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 400 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 400 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 400 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 400 | _memory_used_counter = | 714 | 400 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 400 | _common_profile->add_info_string("IsColocate", | 716 | 400 | std::to_string(_parent->is_colocated_operator())); | 717 | 400 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 400 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 400 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 400 | return Status::OK(); | 721 | 400 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 1.90k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 1.90k | _operator_profile = | 664 | 1.90k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 1.90k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 1.90k | _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.90k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 1.90k | _operator_profile->add_child(_common_profile, true); | 673 | 1.90k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 1.90k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 1.90k | _wait_for_finish_dependency_timer = | 677 | 1.90k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 1.90k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 1.90k | if constexpr (!is_fake_shared) { | 680 | 1.90k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 1.90k | 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 | 1.90k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 1.90k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 1.90k | _dependency = _shared_state->create_sink_dependency( | 697 | 1.90k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 1.90k | } | 699 | 1.90k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 1.90k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 1.90k | } | 702 | | | 703 | 1.90k | 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.90k | _rows_input_counter = | 708 | 1.90k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 1.90k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 1.90k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 1.90k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 1.90k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 1.90k | _memory_used_counter = | 714 | 1.90k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 1.90k | _common_profile->add_info_string("IsColocate", | 716 | 1.90k | std::to_string(_parent->is_colocated_operator())); | 717 | 1.90k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 1.90k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 1.90k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 1.90k | return Status::OK(); | 721 | 1.90k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.4k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.4k | _operator_profile = | 664 | 12.4k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.4k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.4k | _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.4k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.4k | _operator_profile->add_child(_common_profile, true); | 673 | 12.4k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.4k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.4k | _wait_for_finish_dependency_timer = | 677 | 12.4k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.4k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.4k | if constexpr (!is_fake_shared) { | 680 | 12.4k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.4k | 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.4k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.4k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.4k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.4k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.4k | } | 699 | 12.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.4k | } | 702 | | | 703 | 12.4k | 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.4k | _rows_input_counter = | 708 | 12.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.4k | _memory_used_counter = | 714 | 12.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.4k | _common_profile->add_info_string("IsColocate", | 716 | 12.4k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.4k | return Status::OK(); | 721 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 289k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 289k | _operator_profile = | 664 | 289k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 289k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 289k | _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 | 289k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 289k | _operator_profile->add_child(_common_profile, true); | 673 | 289k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 289k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 289k | _wait_for_finish_dependency_timer = | 677 | 289k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 289k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 289k | if constexpr (!is_fake_shared) { | 680 | 289k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 290k | info.shared_state_map.end()) { | 682 | 290k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 290k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 290k | } | 685 | 290k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 290k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 290k | ? 0 | 688 | 290k | : info.task_idx] | 689 | 290k | .get(); | 690 | 290k | _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 | 289k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 289k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 289k | } | 702 | | | 703 | 289k | 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 | 289k | _rows_input_counter = | 708 | 289k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 289k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 289k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 289k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 289k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 289k | _memory_used_counter = | 714 | 289k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 289k | _common_profile->add_info_string("IsColocate", | 716 | 289k | std::to_string(_parent->is_colocated_operator())); | 717 | 289k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 289k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 289k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 289k | return Status::OK(); | 721 | 289k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 476k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 476k | _operator_profile = | 664 | 476k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 476k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 476k | _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 | 476k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 476k | _operator_profile->add_child(_common_profile, true); | 673 | 476k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 476k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 476k | _wait_for_finish_dependency_timer = | 677 | 476k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 476k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 476k | if constexpr (!is_fake_shared) { | 680 | 476k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 476k | 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 | 476k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 476k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 476k | _dependency = _shared_state->create_sink_dependency( | 697 | 476k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 476k | } | 699 | 476k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 476k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 476k | } | 702 | | | 703 | 476k | 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 | 476k | _rows_input_counter = | 708 | 476k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 476k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 476k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 476k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 476k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 476k | _memory_used_counter = | 714 | 476k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 476k | _common_profile->add_info_string("IsColocate", | 716 | 476k | std::to_string(_parent->is_colocated_operator())); | 717 | 476k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 476k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 476k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 476k | return Status::OK(); | 721 | 476k | } |
_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.88M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.88M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.88M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.32M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.32M | } |
731 | 1.88M | _closed = true; |
732 | 1.88M | return Status::OK(); |
733 | 1.88M | } _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 | 222k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 222k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 222k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 222k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 222k | } | 731 | 222k | _closed = true; | 732 | 222k | return Status::OK(); | 733 | 222k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 24 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 24 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 22 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 22 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 22 | } | 731 | 22 | _closed = true; | 732 | 22 | return Status::OK(); | 733 | 24 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.26k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.26k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.26k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.26k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.26k | } | 731 | 6.26k | _closed = true; | 732 | 6.26k | return Status::OK(); | 733 | 6.26k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.45k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.45k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.45k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.45k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.45k | } | 731 | 8.45k | _closed = true; | 732 | 8.45k | return Status::OK(); | 733 | 8.45k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 101k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 101k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 101k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 101k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 101k | } | 731 | 101k | _closed = true; | 732 | 101k | return Status::OK(); | 733 | 101k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 76.3k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 76.3k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 76.3k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 76.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 76.3k | } | 731 | 76.3k | _closed = true; | 732 | 76.3k | return Status::OK(); | 733 | 76.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 139 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 139 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 139 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 139 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 139 | } | 731 | 139 | _closed = true; | 732 | 139 | return Status::OK(); | 733 | 139 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 557k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 557k | 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 | 557k | _closed = true; | 732 | 557k | return Status::OK(); | 733 | 557k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 10.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 10.0k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 10.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 10.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 10.0k | } | 731 | 10.0k | _closed = true; | 732 | 10.0k | return Status::OK(); | 733 | 10.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 298 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 298 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 298 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 298 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 298 | } | 731 | 298 | _closed = true; | 732 | 298 | return Status::OK(); | 733 | 298 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1.93k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1.93k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1.93k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1.93k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1.93k | } | 731 | 1.93k | _closed = true; | 732 | 1.93k | return Status::OK(); | 733 | 1.93k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.4k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.4k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.4k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.4k | } | 731 | 12.4k | _closed = true; | 732 | 12.4k | return Status::OK(); | 733 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 291k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 291k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 291k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 291k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 291k | } | 731 | 291k | _closed = true; | 732 | 291k | return Status::OK(); | 733 | 291k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 478k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 478k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 478k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 478k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 478k | } | 731 | 478k | _closed = true; | 732 | 478k | return Status::OK(); | 733 | 478k | } |
_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.98k | bool* eos) { |
738 | 7.98k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 7.98k | return pull(state, block, eos); |
740 | 7.98k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 37 | bool* eos) { | 738 | 37 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 37 | return pull(state, block, eos); | 740 | 37 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 7.95k | bool* eos) { | 738 | 7.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 7.94k | return pull(state, block, eos); | 740 | 7.95k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 602k | bool* eos) { |
745 | 602k | auto& local_state = get_local_state(state); |
746 | 602k | if (need_more_input_data(state)) { |
747 | 570k | local_state._child_block->clear_column_data( |
748 | 570k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 570k | .num_slots()); |
750 | 570k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 570k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 570k | *eos = local_state._child_eos; |
753 | 570k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 58.2k | return Status::OK(); |
755 | 58.2k | } |
756 | 511k | { |
757 | 511k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 511k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 511k | } |
760 | 511k | } |
761 | | |
762 | 544k | if (!need_more_input_data(state)) { |
763 | 518k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 518k | bool new_eos = false; |
765 | 518k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 518k | if (new_eos) { |
767 | 440k | *eos = true; |
768 | 440k | } else if (!need_more_input_data(state)) { |
769 | 25.6k | *eos = false; |
770 | 25.6k | } |
771 | 518k | } |
772 | 544k | return Status::OK(); |
773 | 544k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 140k | bool* eos) { | 745 | 140k | auto& local_state = get_local_state(state); | 746 | 140k | if (need_more_input_data(state)) { | 747 | 121k | local_state._child_block->clear_column_data( | 748 | 121k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 121k | .num_slots()); | 750 | 121k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 121k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 121k | *eos = local_state._child_eos; | 753 | 121k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 38.4k | return Status::OK(); | 755 | 38.4k | } | 756 | 82.5k | { | 757 | 82.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 82.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 82.5k | } | 760 | 82.5k | } | 761 | | | 762 | 101k | if (!need_more_input_data(state)) { | 763 | 101k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 101k | bool new_eos = false; | 765 | 101k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 101k | if (new_eos) { | 767 | 44.4k | *eos = true; | 768 | 57.2k | } else if (!need_more_input_data(state)) { | 769 | 11.4k | *eos = false; | 770 | 11.4k | } | 771 | 101k | } | 772 | 101k | return Status::OK(); | 773 | 101k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.56k | bool* eos) { | 745 | 4.56k | auto& local_state = get_local_state(state); | 746 | 4.56k | if (need_more_input_data(state)) { | 747 | 2.57k | local_state._child_block->clear_column_data( | 748 | 2.57k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.57k | .num_slots()); | 750 | 2.57k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.57k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.57k | *eos = local_state._child_eos; | 753 | 2.57k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 557 | return Status::OK(); | 755 | 557 | } | 756 | 2.02k | { | 757 | 2.02k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 2.02k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 2.02k | } | 760 | 2.02k | } | 761 | | | 762 | 4.01k | if (!need_more_input_data(state)) { | 763 | 4.01k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 4.01k | bool new_eos = false; | 765 | 4.01k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 4.01k | if (new_eos) { | 767 | 1.50k | *eos = true; | 768 | 2.51k | } else if (!need_more_input_data(state)) { | 769 | 1.98k | *eos = false; | 770 | 1.98k | } | 771 | 4.01k | } | 772 | 4.00k | return Status::OK(); | 773 | 4.00k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.95k | bool* eos) { | 745 | 1.95k | auto& local_state = get_local_state(state); | 746 | 1.95k | if (need_more_input_data(state)) { | 747 | 1.95k | local_state._child_block->clear_column_data( | 748 | 1.95k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.95k | .num_slots()); | 750 | 1.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.95k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.95k | *eos = local_state._child_eos; | 753 | 1.95k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 782 | return Status::OK(); | 755 | 782 | } | 756 | 1.17k | { | 757 | 1.17k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.17k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.17k | } | 760 | 1.17k | } | 761 | | | 762 | 1.17k | if (!need_more_input_data(state)) { | 763 | 1.17k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.17k | bool new_eos = false; | 765 | 1.17k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.17k | if (new_eos) { | 767 | 803 | *eos = true; | 768 | 803 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.17k | } | 772 | 1.17k | return Status::OK(); | 773 | 1.17k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 16.9k | bool* eos) { | 745 | 16.9k | auto& local_state = get_local_state(state); | 746 | 16.9k | if (need_more_input_data(state)) { | 747 | 16.9k | local_state._child_block->clear_column_data( | 748 | 16.9k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 16.9k | .num_slots()); | 750 | 16.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 16.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 16.9k | *eos = local_state._child_eos; | 753 | 16.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.76k | return Status::OK(); | 755 | 4.76k | } | 756 | 12.2k | { | 757 | 12.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 12.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 12.2k | } | 760 | 12.2k | } | 761 | | | 762 | 12.2k | if (!need_more_input_data(state)) { | 763 | 5.97k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.97k | bool new_eos = false; | 765 | 5.97k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.97k | if (new_eos) { | 767 | 5.90k | *eos = true; | 768 | 5.90k | } else if (!need_more_input_data(state)) { | 769 | 1 | *eos = false; | 770 | 1 | } | 771 | 5.97k | } | 772 | 12.2k | return Status::OK(); | 773 | 12.2k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 407k | bool* eos) { | 745 | 407k | auto& local_state = get_local_state(state); | 746 | 408k | if (need_more_input_data(state)) { | 747 | 408k | local_state._child_block->clear_column_data( | 748 | 408k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 408k | .num_slots()); | 750 | 408k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 408k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 408k | *eos = local_state._child_eos; | 753 | 408k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 12.1k | return Status::OK(); | 755 | 12.1k | } | 756 | 396k | { | 757 | 396k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 396k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 396k | } | 760 | 396k | } | 761 | | | 762 | 395k | if (!need_more_input_data(state)) { | 763 | 377k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 377k | bool new_eos = false; | 765 | 377k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 377k | if (new_eos) { | 767 | 376k | *eos = true; | 768 | 376k | } else if (!need_more_input_data(state)) { | 769 | 8 | *eos = false; | 770 | 8 | } | 771 | 377k | } | 772 | 395k | return Status::OK(); | 773 | 395k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 22.6k | bool* eos) { | 745 | 22.6k | auto& local_state = get_local_state(state); | 746 | 22.6k | if (need_more_input_data(state)) { | 747 | 10.8k | local_state._child_block->clear_column_data( | 748 | 10.8k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 10.8k | .num_slots()); | 750 | 10.8k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 10.8k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 10.8k | *eos = local_state._child_eos; | 753 | 10.8k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 692 | return Status::OK(); | 755 | 692 | } | 756 | 10.1k | { | 757 | 10.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.1k | } | 760 | 10.1k | } | 761 | | | 762 | 21.9k | if (!need_more_input_data(state)) { | 763 | 21.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 21.4k | bool new_eos = false; | 765 | 21.4k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 21.4k | if (new_eos) { | 767 | 6.25k | *eos = true; | 768 | 15.1k | } else if (!need_more_input_data(state)) { | 769 | 11.8k | *eos = false; | 770 | 11.8k | } | 771 | 21.4k | } | 772 | 21.9k | return Status::OK(); | 773 | 21.9k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 8.42k | bool* eos) { | 745 | 8.42k | auto& local_state = get_local_state(state); | 746 | 8.42k | if (need_more_input_data(state)) { | 747 | 8.06k | local_state._child_block->clear_column_data( | 748 | 8.06k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 8.06k | .num_slots()); | 750 | 8.06k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 8.06k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 8.06k | *eos = local_state._child_eos; | 753 | 8.06k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 787 | return Status::OK(); | 755 | 787 | } | 756 | 7.27k | { | 757 | 7.27k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 7.27k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 7.27k | } | 760 | 7.27k | } | 761 | | | 762 | 7.63k | if (!need_more_input_data(state)) { | 763 | 7.63k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.63k | bool new_eos = false; | 765 | 7.63k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.63k | if (new_eos) { | 767 | 5.36k | *eos = true; | 768 | 5.36k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 7.63k | } | 772 | 7.63k | return Status::OK(); | 773 | 7.63k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 48.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 48.0k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 48.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 48.0k | "AsyncWriterDependency", true); |
781 | 48.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 48.0k | _finish_dependency)); |
783 | | |
784 | 48.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 48.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 48.0k | return Status::OK(); |
787 | 48.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 352 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 352 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 352 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 352 | "AsyncWriterDependency", true); | 781 | 352 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 352 | _finish_dependency)); | 783 | | | 784 | 352 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 352 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 352 | return Status::OK(); | 787 | 352 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 47.7k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 47.7k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 47.7k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 47.7k | "AsyncWriterDependency", true); | 781 | 47.7k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 47.7k | _finish_dependency)); | 783 | | | 784 | 47.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 47.7k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 47.7k | return Status::OK(); | 787 | 47.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 28 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 28 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 28 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 28 | "AsyncWriterDependency", true); | 781 | 28 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 28 | _finish_dependency)); | 783 | | | 784 | 28 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 28 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 28 | return Status::OK(); | 787 | 28 | } |
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.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 48.6k | RETURN_IF_ERROR(Base::open(state)); |
793 | 48.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 379k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 331k | RETURN_IF_ERROR( |
796 | 331k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 331k | } |
798 | 48.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 48.6k | return Status::OK(); |
800 | 48.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 352 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 352 | RETURN_IF_ERROR(Base::open(state)); | 793 | 352 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.83k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.48k | RETURN_IF_ERROR( | 796 | 1.48k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.48k | } | 798 | 352 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 352 | return Status::OK(); | 800 | 352 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 48.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 48.3k | RETURN_IF_ERROR(Base::open(state)); | 793 | 48.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 377k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 329k | RETURN_IF_ERROR( | 796 | 329k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 329k | } | 798 | 48.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 48.3k | return Status::OK(); | 800 | 48.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 28 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 28 | RETURN_IF_ERROR(Base::open(state)); | 793 | 28 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 504 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 476 | RETURN_IF_ERROR( | 796 | 476 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 476 | } | 798 | 28 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 28 | return Status::OK(); | 800 | 28 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
801 | | |
802 | | template <typename Writer, typename Parent> |
803 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
804 | 63.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 63.8k | return _writer->sink(block, eos); |
806 | 63.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.54k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.54k | return _writer->sink(block, eos); | 806 | 1.54k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 62.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 62.2k | return _writer->sink(block, eos); | 806 | 62.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 28 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 28 | return _writer->sink(block, eos); | 806 | 28 | } |
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.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 48.7k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 48.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 48.7k | 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.8k | if (_writer) { |
818 | 48.8k | Status st = _writer->get_writer_status(); |
819 | 48.8k | if (exec_status.ok()) { |
820 | 48.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 48.7k | : Status::Cancelled("force close")); |
822 | 48.7k | } else { |
823 | 71 | _writer->force_close(exec_status); |
824 | 71 | } |
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.8k | RETURN_IF_ERROR(st); |
829 | 48.8k | } |
830 | 48.7k | return Base::close(state, exec_status); |
831 | 48.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 341 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 341 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 341 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 341 | 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 | 341 | if (_writer) { | 818 | 341 | Status st = _writer->get_writer_status(); | 819 | 341 | if (exec_status.ok()) { | 820 | 341 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 341 | : Status::Cancelled("force close")); | 822 | 341 | } 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 | 341 | RETURN_IF_ERROR(st); | 829 | 341 | } | 830 | 341 | return Base::close(state, exec_status); | 831 | 341 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 48.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 48.4k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 48.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 48.4k | 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.4k | if (_writer) { | 818 | 48.4k | Status st = _writer->get_writer_status(); | 819 | 48.4k | if (exec_status.ok()) { | 820 | 48.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 48.3k | : Status::Cancelled("force close")); | 822 | 48.3k | } else { | 823 | 71 | _writer->force_close(exec_status); | 824 | 71 | } | 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.4k | RETURN_IF_ERROR(st); | 829 | 48.4k | } | 830 | 48.3k | return Base::close(state, exec_status); | 831 | 48.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 28 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 28 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 28 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 28 | 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 | 28 | if (_writer) { | 818 | 28 | Status st = _writer->get_writer_status(); | 819 | 28 | if (exec_status.ok()) { | 820 | 28 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 28 | : Status::Cancelled("force close")); | 822 | 28 | } 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 | 28 | RETURN_IF_ERROR(st); | 829 | 28 | } | 830 | 28 | return Base::close(state, exec_status); | 831 | 28 | } |
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(PaimonTableSinkLocalState) |
850 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
851 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
852 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
853 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
854 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
855 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
856 | | DECLARE_OPERATOR(SortSinkLocalState) |
857 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
858 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
859 | | DECLARE_OPERATOR(AggSinkLocalState) |
860 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
861 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
862 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
863 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
864 | | DECLARE_OPERATOR(UnionSinkLocalState) |
865 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
866 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
867 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
868 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
869 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
870 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
871 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
872 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
873 | | DECLARE_OPERATOR(CacheSinkLocalState) |
874 | | DECLARE_OPERATOR(DictSinkLocalState) |
875 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
876 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
877 | | |
878 | | #undef DECLARE_OPERATOR |
879 | | |
880 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
881 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
882 | | DECLARE_OPERATOR(OlapScanLocalState) |
883 | | DECLARE_OPERATOR(GroupCommitLocalState) |
884 | | DECLARE_OPERATOR(JDBCScanLocalState) |
885 | | DECLARE_OPERATOR(FileScanLocalState) |
886 | | DECLARE_OPERATOR(AnalyticLocalState) |
887 | | DECLARE_OPERATOR(SortLocalState) |
888 | | DECLARE_OPERATOR(SpillSortLocalState) |
889 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
890 | | DECLARE_OPERATOR(AggLocalState) |
891 | | DECLARE_OPERATOR(BucketedAggLocalState) |
892 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
893 | | DECLARE_OPERATOR(TableFunctionLocalState) |
894 | | DECLARE_OPERATOR(ExchangeLocalState) |
895 | | DECLARE_OPERATOR(RepeatLocalState) |
896 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
897 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
898 | | DECLARE_OPERATOR(EmptySetLocalState) |
899 | | DECLARE_OPERATOR(UnionSourceLocalState) |
900 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
901 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
902 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
903 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
904 | | DECLARE_OPERATOR(DataGenLocalState) |
905 | | DECLARE_OPERATOR(SchemaScanLocalState) |
906 | | DECLARE_OPERATOR(MetaScanLocalState) |
907 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
908 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
909 | | DECLARE_OPERATOR(CacheSourceLocalState) |
910 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
911 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
912 | | |
913 | | #ifdef BE_TEST |
914 | | DECLARE_OPERATOR(MockLocalState) |
915 | | DECLARE_OPERATOR(MockScanLocalState) |
916 | | #endif |
917 | | #undef DECLARE_OPERATOR |
918 | | |
919 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
920 | | template class StreamingOperatorX<SelectLocalState>; |
921 | | |
922 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
923 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
924 | | template class StatefulOperatorX<RepeatLocalState>; |
925 | | template class StatefulOperatorX<MaterializationLocalState>; |
926 | | template class StatefulOperatorX<StreamingAggLocalState>; |
927 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
928 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
929 | | template class StatefulOperatorX<TableFunctionLocalState>; |
930 | | |
931 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
932 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
933 | | template class PipelineXSinkLocalState<SortSharedState>; |
934 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
935 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
936 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
937 | | template class PipelineXSinkLocalState<AggSharedState>; |
938 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
939 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
940 | | template class PipelineXSinkLocalState<FakeSharedState>; |
941 | | template class PipelineXSinkLocalState<UnionSharedState>; |
942 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
943 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
944 | | template class PipelineXSinkLocalState<SetSharedState>; |
945 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
946 | | template class PipelineXSinkLocalState<BasicSharedState>; |
947 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
948 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
949 | | |
950 | | template class PipelineXLocalState<HashJoinSharedState>; |
951 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
952 | | template class PipelineXLocalState<SortSharedState>; |
953 | | template class PipelineXLocalState<SpillSortSharedState>; |
954 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
955 | | template class PipelineXLocalState<AnalyticSharedState>; |
956 | | template class PipelineXLocalState<AggSharedState>; |
957 | | template class PipelineXLocalState<BucketedAggSharedState>; |
958 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
959 | | template class PipelineXLocalState<FakeSharedState>; |
960 | | template class PipelineXLocalState<UnionSharedState>; |
961 | | template class PipelineXLocalState<DataQueueSharedState>; |
962 | | template class PipelineXLocalState<MultiCastSharedState>; |
963 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
964 | | template class PipelineXLocalState<SetSharedState>; |
965 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
966 | | template class PipelineXLocalState<BasicSharedState>; |
967 | | template class PipelineXLocalState<RecCTESharedState>; |
968 | | |
969 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
970 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
971 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
972 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
973 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
974 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
975 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
976 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
977 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
978 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
979 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
980 | | |
981 | | #ifdef BE_TEST |
982 | | template class OperatorX<DummyOperatorLocalState>; |
983 | | template class DataSinkOperatorX<DummySinkLocalState>; |
984 | | #endif |
985 | | |
986 | | } // namespace doris |