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