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.87M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.87M | if (_parent->nereids_id() == -1) { |
122 | 968k | return fmt::format("(id={})", _parent->node_id()); |
123 | 968k | } else { |
124 | 903k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 903k | } |
126 | 1.87M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 66.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 66.7k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 66.7k | } else { | 124 | 66.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 66.7k | } | 126 | 66.7k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 1 | if (_parent->nereids_id() == -1) { | 122 | 1 | return fmt::format("(id={})", _parent->node_id()); | 123 | 1 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 229k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 229k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 229k | } else { | 124 | 229k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 229k | } | 126 | 229k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 23 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 23 | } else { | 124 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 23 | } | 126 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.86k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.86k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.86k | } else { | 124 | 5.86k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.86k | } | 126 | 5.86k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 7.79k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.79k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 7.78k | } else { | 124 | 7.78k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 7.78k | } | 126 | 7.79k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 92.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 92.1k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 92.1k | } else { | 124 | 92.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 92.1k | } | 126 | 92.1k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 78.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 78.1k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 78.1k | } else { | 124 | 78.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 78.1k | } | 126 | 78.1k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 44 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 44 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 44 | } else { | 124 | 44 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 44 | } | 126 | 44 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 655k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 655k | if (_parent->nereids_id() == -1) { | 122 | 291k | return fmt::format("(id={})", _parent->node_id()); | 123 | 363k | } else { | 124 | 363k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 363k | } | 126 | 655k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 54.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 54.6k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 54.6k | } else { | 124 | 54.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 54.6k | } | 126 | 54.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 | 6.17k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.18k | if (_parent->nereids_id() == -1) { | 122 | 6.18k | 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 | 6.17k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 409 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 409 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 307 | } else { | 124 | 307 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 307 | } | 126 | 409 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.00k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.00k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.99k | } else { | 124 | 4.99k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.99k | } | 126 | 5.00k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 669k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 669k | if (_parent->nereids_id() == -1) { | 122 | 669k | 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 | 669k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 169 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 169 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 169 | } else { | 124 | 169 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 169 | } | 126 | 169 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.24M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.24M | if (_parent->nereids_id() == -1) { |
131 | 700k | return fmt::format("(id={})", _parent->node_id()); |
132 | 700k | } else { |
133 | 542k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 542k | } |
135 | 1.24M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 115k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 115k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 115k | } else { | 133 | 115k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 115k | } | 135 | 115k | } |
_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 | 232k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 232k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 232k | } else { | 133 | 232k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 232k | } | 135 | 232k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 30 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 30 | } else { | 133 | 30 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 30 | } | 135 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 5.89k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 5.89k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 5.89k | } else { | 133 | 5.89k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 5.89k | } | 135 | 5.89k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.81k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.81k | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.80k | } else { | 133 | 7.80k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.80k | } | 135 | 7.81k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 92.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 92.6k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 92.5k | } else { | 133 | 92.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 92.5k | } | 135 | 92.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 77.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 77.9k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 77.9k | } else { | 133 | 77.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 77.9k | } | 135 | 77.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 54 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 54 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 54 | } else { | 133 | 54 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 54 | } | 135 | 54 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12 | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 12 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 10.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 10.6k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 10.6k | } else { | 133 | 10.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 10.6k | } | 135 | 10.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 412 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 412 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 310 | } else { | 133 | 310 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 310 | } | 135 | 412 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.5k | if (_parent->nereids_id() == -1) { | 131 | 12.5k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 238k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 239k | if (_parent->nereids_id() == -1) { | 131 | 239k | 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 | 238k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 448k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 448k | if (_parent->nereids_id() == -1) { | 131 | 448k | return fmt::format("(id={})", _parent->node_id()); | 132 | 448k | } else { | 133 | 123 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 123 | } | 135 | 448k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 338 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 338 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 338 | } else { | 133 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 338 | } | 135 | 338 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 28.9k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 28.9k | if (_terminated) { |
140 | 1 | return Status::OK(); |
141 | 1 | } |
142 | 28.9k | _terminated = true; |
143 | 28.9k | return Status::OK(); |
144 | 28.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 | 1.46k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.46k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.46k | _terminated = true; | 143 | 1.46k | return Status::OK(); | 144 | 1.46k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 6 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 6 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 6 | _terminated = true; | 143 | 6 | return Status::OK(); | 144 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 4 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 4 | _terminated = true; | 143 | 4 | return Status::OK(); | 144 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.41k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.41k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.41k | _terminated = true; | 143 | 1.41k | return Status::OK(); | 144 | 1.41k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 640 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 640 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 640 | _terminated = true; | 143 | 640 | return Status::OK(); | 144 | 640 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 437 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 437 | if (_terminated) { | 140 | 1 | return Status::OK(); | 141 | 1 | } | 142 | 436 | _terminated = true; | 143 | 436 | return Status::OK(); | 144 | 437 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 255 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 255 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 255 | _terminated = true; | 143 | 255 | return Status::OK(); | 144 | 255 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 12 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 12 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 12 | _terminated = true; | 143 | 12 | return Status::OK(); | 144 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 167 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 167 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 167 | _terminated = true; | 143 | 167 | return Status::OK(); | 144 | 167 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 9 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 9 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 9 | _terminated = true; | 143 | 9 | return Status::OK(); | 144 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 325 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 325 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 325 | _terminated = true; | 143 | 325 | return Status::OK(); | 144 | 325 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 133 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 133 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 133 | _terminated = true; | 143 | 133 | return Status::OK(); | 144 | 133 | } |
|
145 | | |
146 | 304k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 304k | return _child && _child->is_serial_operator() && !is_source() |
148 | 304k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 304k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 304k | } |
151 | | |
152 | 19.1k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 19.1k | if (!_child) { |
154 | 18.1k | return false; |
155 | 18.1k | } |
156 | 1.06k | if (_child->is_serial_operator()) { |
157 | 125 | return true; |
158 | 125 | } |
159 | 936 | const auto child_distribution = _child->required_data_distribution(state); |
160 | 936 | return child_distribution.need_local_exchange() && |
161 | 936 | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.06k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 19.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 19.0k | fmt::memory_buffer debug_string_buffer; |
167 | 19.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 19.0k | return fmt::to_string(debug_string_buffer); |
169 | 19.0k | } 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 | 19.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 19.0k | fmt::memory_buffer debug_string_buffer; | 167 | 19.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 19.0k | return fmt::to_string(debug_string_buffer); | 169 | 19.0k | } |
_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 | 19.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 19.0k | fmt::memory_buffer debug_string_buffer; |
174 | 19.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 19.0k | return fmt::to_string(debug_string_buffer); |
176 | 19.0k | } 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 | 19.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 19.0k | fmt::memory_buffer debug_string_buffer; | 174 | 19.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 19.0k | return fmt::to_string(debug_string_buffer); | 176 | 19.0k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 19.0k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 19.0k | fmt::memory_buffer debug_string_buffer; |
180 | 19.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 19.0k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 19.0k | _is_serial_operator); |
183 | 19.0k | return fmt::to_string(debug_string_buffer); |
184 | 19.0k | } |
185 | | |
186 | 19.0k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 19.0k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 19.0k | } |
189 | | |
190 | 674k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 674k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 674k | _nereids_id = tnode.nereids_id; |
193 | 674k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 6.51k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 6.51k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 6.51k | 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 | 6.51k | } |
206 | 674k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 674k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 674k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 674k | } else if (tnode.__isset.conjuncts) { |
212 | 275k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 275k | VExprContextSPtr context; |
214 | 275k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 275k | _conjuncts.emplace_back(context); |
216 | 275k | } |
217 | 100k | } |
218 | | |
219 | | // create the projections expr |
220 | 674k | if (tnode.__isset.projections) { |
221 | 267k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 267k | } |
223 | 674k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 6.51k | DCHECK(has_projection()) << "no final projections"; |
225 | 6.51k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 11.2k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 11.2k | VExprContextSPtrs projections; |
228 | 11.2k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 11.2k | _projection->intermediate_projections.push_back(projections); |
230 | 11.2k | } |
231 | 6.51k | } |
232 | 674k | return Status::OK(); |
233 | 674k | } |
234 | | |
235 | 701k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 701k | for (auto& conjunct : _conjuncts) { |
237 | 275k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 275k | } |
239 | 701k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 650k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 341k | return a->execute_cost() < b->execute_cost(); |
242 | 341k | }); |
243 | 650k | }; |
244 | | |
245 | 701k | if (has_projection()) { |
246 | 267k | auto& projection = *_projection; |
247 | 278k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 11.2k | const auto& input_row_desc = |
249 | 11.2k | i == 0 ? operator_row_desc_before_projection() |
250 | 11.2k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 11.2k | RETURN_IF_ERROR( |
252 | 11.2k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 11.2k | } |
254 | 267k | const auto& final_projection_input_row_desc = |
255 | 267k | projection.intermediate_output_row_descriptors.empty() |
256 | 267k | ? operator_row_desc_before_projection() |
257 | 267k | : projection.intermediate_output_row_descriptors.back(); |
258 | 267k | RETURN_IF_ERROR( |
259 | 267k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 267k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 267k | projection.output_row_descriptor)); |
262 | 267k | } |
263 | | |
264 | 701k | for (auto& conjunct : _conjuncts) { |
265 | 275k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 275k | } |
267 | 701k | if (has_projection()) { |
268 | 267k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 267k | for (auto& projections : _projection->intermediate_projections) { |
270 | 11.2k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 11.2k | } |
272 | 267k | } |
273 | 700k | if (_child && !is_source()) { |
274 | 95.2k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 95.2k | } |
276 | | |
277 | 700k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 700k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 700k | return Status::OK(); |
283 | 700k | } |
284 | | |
285 | 5.43k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 5.43k | if (_child && !is_source()) { |
287 | 538 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 538 | } |
289 | 5.43k | auto result = state->get_local_state_result(operator_id()); |
290 | 5.43k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 5.43k | return result.value()->terminate(state); |
294 | 5.43k | } |
295 | | |
296 | 5.08M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 5.08M | if (_child && !is_source()) { |
298 | 853k | RETURN_IF_ERROR(_child->close(state)); |
299 | 853k | } |
300 | 5.08M | auto result = state->get_local_state_result(operator_id()); |
301 | 5.08M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 5.08M | return result.value()->close(state); |
305 | 5.08M | } |
306 | | |
307 | 285k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 285k | _origin_block.clear_column_data( |
309 | 285k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 285k | } |
311 | | |
312 | 792k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 792k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 792k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 792k | return Status::OK(); |
317 | 792k | } |
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 | 285k | Block* output_block) const { |
326 | 285k | auto* local_state = state->get_local_state(operator_id()); |
327 | 285k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 285k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 285k | const size_t rows = origin_block->rows(); |
330 | 285k | if (rows == 0) { |
331 | 154k | return Status::OK(); |
332 | 154k | } |
333 | 130k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 130k | { |
336 | 130k | Block input_block = *origin_block; |
337 | | |
338 | 130k | ColumnsWithTypeAndName new_columns; |
339 | 130k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 4.19k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 4.19k | new_columns.resize(projections.size()); |
345 | 73.5k | for (int i = 0; i < projections.size(); i++) { |
346 | 69.3k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 69.3k | 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 | 69.3k | } |
355 | 4.18k | Block tmp_block {new_columns}; |
356 | 4.18k | input_block.swap(tmp_block); |
357 | 4.18k | } |
358 | | |
359 | 130k | 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 | 130k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 130k | output_block, _projection->output_row_descriptor); |
368 | 130k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 130k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 130k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 751k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 621k | ColumnPtr column_ptr; |
374 | 621k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 621k | 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 | 621k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 621k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 621k | if (column_ptr->is_exclusive()) { |
386 | 224k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 396k | } else { |
388 | 396k | shared_columns[i] = std::move(column_ptr); |
389 | 396k | } |
390 | 621k | } |
391 | | |
392 | 130k | scoped_mutable_block.restore(); |
393 | 751k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 621k | if (shared_columns[i]) { |
395 | 396k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 396k | } |
397 | 621k | } |
398 | 130k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 130k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 130k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 130k | return Status::OK(); |
405 | 130k | } |
406 | | |
407 | 4.48M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.48M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.48M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.48M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.48M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.48M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.48M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.48M | return Status::OK(); |
415 | 4.48M | } |
416 | 4.48M | } |
417 | 4.48M | }); |
418 | | |
419 | 4.48M | Status status; |
420 | 4.48M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.48M | Defer defer([&]() { |
422 | 4.48M | if (status.ok()) { |
423 | 4.48M | local_state->update_output_block_counters(*block); |
424 | 4.48M | } |
425 | 4.48M | }); |
426 | 4.48M | if (has_projection()) { |
427 | 285k | local_state->clear_origin_block(); |
428 | 285k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 285k | if (UNLIKELY(!status.ok())) { |
430 | 24 | return status; |
431 | 24 | } |
432 | 285k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 285k | return status; |
434 | 285k | } |
435 | 4.19M | status = get_block(state, block, eos); |
436 | 4.19M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 4.19M | return status; |
438 | 4.19M | } |
439 | | |
440 | 2.81M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.81M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.69k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.69k | *eos = true; |
444 | 9.69k | } |
445 | | |
446 | 2.81M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.81M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.81M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.81M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.81M | if (op_name == arg_op_name) { |
452 | 2.81M | *eos = true; |
453 | 2.81M | } |
454 | 2.81M | }); |
455 | | |
456 | 2.81M | if (auto rows = block->rows()) { |
457 | 757k | _num_rows_returned += rows; |
458 | 757k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 757k | } |
460 | 2.81M | } |
461 | | |
462 | 28.9k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 28.9k | auto result = state->get_sink_local_state_result(); |
464 | 28.9k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 28.9k | return result.value()->terminate(state); |
468 | 28.9k | } |
469 | | |
470 | 19.0k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 19.0k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 19.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 19.0k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 19.0k | return fmt::to_string(debug_string_buffer); |
476 | 19.0k | } |
477 | | |
478 | 19.0k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 19.0k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 19.0k | } |
481 | | |
482 | 350k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 350k | std::string op_name = "UNKNOWN_SINK"; |
484 | 350k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 351k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 351k | op_name = it->second; |
488 | 351k | } |
489 | 350k | _name = op_name + "_OPERATOR"; |
490 | 350k | return Status::OK(); |
491 | 350k | } |
492 | | |
493 | 301k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 301k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 301k | _nereids_id = tnode.nereids_id; |
496 | 301k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 301k | _name = substr + "_SINK_OPERATOR"; |
498 | 301k | return Status::OK(); |
499 | 301k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.78M | LocalSinkStateInfo& info) { |
504 | 1.78M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.78M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.78M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.78M | return Status::OK(); |
508 | 1.78M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 115k | LocalSinkStateInfo& info) { | 504 | 115k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 115k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 115k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 115k | return Status::OK(); | 508 | 115k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 401k | LocalSinkStateInfo& info) { | 504 | 401k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 401k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 401k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 401k | return Status::OK(); | 508 | 401k | } |
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 | 365 | LocalSinkStateInfo& info) { | 504 | 365 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 365 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 365 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 365 | return Status::OK(); | 508 | 365 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 47.0k | LocalSinkStateInfo& info) { | 504 | 47.0k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 47.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 47.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 47.0k | return Status::OK(); | 508 | 47.0k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 10 | LocalSinkStateInfo& info) { | 504 | 10 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 10 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 10 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 10 | return Status::OK(); | 508 | 10 | } |
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 | 7.82k | LocalSinkStateInfo& info) { | 504 | 7.82k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 7.82k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 7.82k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 7.82k | return Status::OK(); | 508 | 7.82k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 9 | LocalSinkStateInfo& info) { | 504 | 9 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9 | return Status::OK(); | 508 | 9 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 232k | LocalSinkStateInfo& info) { | 504 | 232k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 232k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 232k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 232k | return Status::OK(); | 508 | 232k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 30 | LocalSinkStateInfo& info) { | 504 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 30 | return Status::OK(); | 508 | 30 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 239k | LocalSinkStateInfo& info) { | 504 | 239k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 239k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 239k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 239k | return Status::OK(); | 508 | 239k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 92.6k | LocalSinkStateInfo& info) { | 504 | 92.6k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 92.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 92.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 92.6k | return Status::OK(); | 508 | 92.6k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 77.9k | LocalSinkStateInfo& info) { | 504 | 77.9k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 77.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 77.9k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 77.9k | return Status::OK(); | 508 | 77.9k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 54 | LocalSinkStateInfo& info) { | 504 | 54 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 54 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 54 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 54 | return Status::OK(); | 508 | 54 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 533k | LocalSinkStateInfo& info) { | 504 | 533k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 533k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 533k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 533k | return Status::OK(); | 508 | 533k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 5.89k | LocalSinkStateInfo& info) { | 504 | 5.89k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 5.89k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 5.89k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 5.89k | return Status::OK(); | 508 | 5.89k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 10.6k | LocalSinkStateInfo& info) { | 504 | 10.6k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 10.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 10.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 10.6k | return Status::OK(); | 508 | 10.6k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.75k | LocalSinkStateInfo& info) { | 504 | 2.75k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.75k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.75k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.75k | return Status::OK(); | 508 | 2.75k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 308 | LocalSinkStateInfo& info) { | 504 | 308 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 308 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 308 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 308 | return Status::OK(); | 508 | 308 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.83k | LocalSinkStateInfo& info) { | 504 | 4.83k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.83k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.83k | return Status::OK(); | 508 | 4.83k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.55k | LocalSinkStateInfo& info) { | 504 | 2.55k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.55k | return Status::OK(); | 508 | 2.55k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.63k | LocalSinkStateInfo& info) { | 504 | 2.63k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.63k | return Status::OK(); | 508 | 2.63k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.47k | LocalSinkStateInfo& info) { | 504 | 2.47k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.47k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.47k | return Status::OK(); | 508 | 2.47k | } |
_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 | 564 | LocalSinkStateInfo& info) { | 504 | 564 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 564 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 564 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 564 | return Status::OK(); | 508 | 564 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 106 | LocalSinkStateInfo& info) { | 504 | 106 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 106 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 106 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 106 | return Status::OK(); | 508 | 106 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.43M | 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.43M | } else { |
519 | 1.43M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.43M | ss->id = operator_id(); |
521 | 1.43M | for (auto& dest : dests_id()) { |
522 | 1.43M | ss->related_op_ids.insert(dest); |
523 | 1.43M | } |
524 | 1.43M | return ss; |
525 | 1.43M | } |
526 | 1.43M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 101k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 101k | } else { | 519 | 101k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 101k | ss->id = operator_id(); | 521 | 101k | for (auto& dest : dests_id()) { | 522 | 101k | ss->related_op_ids.insert(dest); | 523 | 101k | } | 524 | 101k | return ss; | 525 | 101k | } | 526 | 101k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 403k | 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 | 403k | } else { | 519 | 403k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 403k | ss->id = operator_id(); | 521 | 403k | for (auto& dest : dests_id()) { | 522 | 402k | ss->related_op_ids.insert(dest); | 523 | 402k | } | 524 | 403k | return ss; | 525 | 403k | } | 526 | 403k | } |
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 | 365 | 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 | 365 | } else { | 519 | 365 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 365 | ss->id = operator_id(); | 521 | 365 | for (auto& dest : dests_id()) { | 522 | 365 | ss->related_op_ids.insert(dest); | 523 | 365 | } | 524 | 365 | return ss; | 525 | 365 | } | 526 | 365 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 47.2k | 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 | 47.2k | } else { | 519 | 47.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 47.2k | ss->id = operator_id(); | 521 | 47.2k | for (auto& dest : dests_id()) { | 522 | 46.8k | ss->related_op_ids.insert(dest); | 523 | 46.8k | } | 524 | 47.2k | return ss; | 525 | 47.2k | } | 526 | 47.2k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 10 | 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 | 10 | } else { | 519 | 10 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 10 | ss->id = operator_id(); | 521 | 10 | for (auto& dest : dests_id()) { | 522 | 10 | ss->related_op_ids.insert(dest); | 523 | 10 | } | 524 | 10 | return ss; | 525 | 10 | } | 526 | 10 | } |
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 | 7.87k | 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 | 7.87k | } else { | 519 | 7.87k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 7.87k | ss->id = operator_id(); | 521 | 7.87k | for (auto& dest : dests_id()) { | 522 | 7.87k | ss->related_op_ids.insert(dest); | 523 | 7.87k | } | 524 | 7.87k | return ss; | 525 | 7.87k | } | 526 | 7.87k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 9 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 9 | } else { | 519 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 9 | ss->id = operator_id(); | 521 | 9 | for (auto& dest : dests_id()) { | 522 | 9 | ss->related_op_ids.insert(dest); | 523 | 9 | } | 524 | 9 | return ss; | 525 | 9 | } | 526 | 9 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 233k | 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 | 233k | } else { | 519 | 233k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 233k | ss->id = operator_id(); | 521 | 233k | for (auto& dest : dests_id()) { | 522 | 233k | ss->related_op_ids.insert(dest); | 523 | 233k | } | 524 | 233k | return ss; | 525 | 233k | } | 526 | 233k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 32 | 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 | 32 | } else { | 519 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 32 | ss->id = operator_id(); | 521 | 32 | for (auto& dest : dests_id()) { | 522 | 32 | ss->related_op_ids.insert(dest); | 523 | 32 | } | 524 | 32 | return ss; | 525 | 32 | } | 526 | 32 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 92.9k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 92.9k | } else { | 519 | 92.9k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 92.9k | ss->id = operator_id(); | 521 | 92.9k | for (auto& dest : dests_id()) { | 522 | 92.9k | ss->related_op_ids.insert(dest); | 523 | 92.9k | } | 524 | 92.9k | return ss; | 525 | 92.9k | } | 526 | 92.9k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 53 | 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 | 53 | } else { | 519 | 53 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 53 | ss->id = operator_id(); | 521 | 53 | for (auto& dest : dests_id()) { | 522 | 53 | ss->related_op_ids.insert(dest); | 523 | 53 | } | 524 | 53 | return ss; | 525 | 53 | } | 526 | 53 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 535k | 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 | 535k | } else { | 519 | 535k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 535k | ss->id = operator_id(); | 521 | 535k | for (auto& dest : dests_id()) { | 522 | 535k | ss->related_op_ids.insert(dest); | 523 | 535k | } | 524 | 535k | return ss; | 525 | 535k | } | 526 | 535k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 5.90k | 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.90k | } else { | 519 | 5.90k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 5.90k | ss->id = operator_id(); | 521 | 5.90k | for (auto& dest : dests_id()) { | 522 | 5.89k | ss->related_op_ids.insert(dest); | 523 | 5.89k | } | 524 | 5.90k | return ss; | 525 | 5.90k | } | 526 | 5.90k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 414 | 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 | 414 | } else { | 519 | 414 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 414 | ss->id = operator_id(); | 521 | 414 | for (auto& dest : dests_id()) { | 522 | 414 | ss->related_op_ids.insert(dest); | 523 | 414 | } | 524 | 414 | return ss; | 525 | 414 | } | 526 | 414 | } |
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.64k | ss->related_op_ids.insert(dest); | 523 | 2.64k | } | 524 | 2.64k | return ss; | 525 | 2.64k | } | 526 | 2.64k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.48k | 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.48k | } else { | 519 | 2.48k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.48k | ss->id = operator_id(); | 521 | 2.48k | for (auto& dest : dests_id()) { | 522 | 2.48k | ss->related_op_ids.insert(dest); | 523 | 2.48k | } | 524 | 2.48k | return ss; | 525 | 2.48k | } | 526 | 2.48k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 566 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 566 | } else { | 519 | 566 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 566 | ss->id = operator_id(); | 521 | 566 | for (auto& dest : dests_id()) { | 522 | 563 | ss->related_op_ids.insert(dest); | 523 | 563 | } | 524 | 566 | return ss; | 525 | 566 | } | 526 | 566 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 106 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 106 | } else { | 519 | 106 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 106 | ss->id = operator_id(); | 521 | 106 | for (auto& dest : dests_id()) { | 522 | 105 | ss->related_op_ids.insert(dest); | 523 | 105 | } | 524 | 106 | return ss; | 525 | 106 | } | 526 | 106 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.13M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.13M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.13M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.13M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.13M | return Status::OK(); |
534 | 2.13M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 66.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 66.9k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 66.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 66.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 66.9k | return Status::OK(); | 534 | 66.9k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 247k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 247k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 247k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 247k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 247k | return Status::OK(); | 534 | 247k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 119 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 119 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 119 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 119 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 119 | return Status::OK(); | 534 | 119 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.21k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.21k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.21k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.21k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.21k | return Status::OK(); | 534 | 3.21k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.80k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.80k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.80k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.80k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.80k | return Status::OK(); | 534 | 7.80k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.86k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.86k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.86k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.86k | return Status::OK(); | 534 | 6.86k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 23 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 23 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 23 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 23 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 23 | return Status::OK(); | 534 | 23 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 225k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 225k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 225k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 225k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 225k | return Status::OK(); | 534 | 225k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 92.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 92.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 92.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 92.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 92.5k | return Status::OK(); | 534 | 92.5k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 78.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 78.3k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 78.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 78.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 78.3k | return Status::OK(); | 534 | 78.3k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 44 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 44 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 44 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 44 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 44 | return Status::OK(); | 534 | 44 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.36k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.36k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.36k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.36k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.36k | return Status::OK(); | 534 | 5.36k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 292k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 292k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 292k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 292k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 292k | return Status::OK(); | 534 | 292k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.37k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.37k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.37k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.37k | return Status::OK(); | 534 | 1.37k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.89k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.89k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.89k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.89k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.89k | return Status::OK(); | 534 | 5.89k | } |
_ZN5doris9OperatorXINS_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.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.60k | return Status::OK(); | 534 | 1.60k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 54.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 54.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 54.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 54.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 54.6k | return Status::OK(); | 534 | 54.6k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.19k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.19k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.19k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.19k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.19k | return Status::OK(); | 534 | 6.19k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 299 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 299 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 299 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 299 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 299 | return Status::OK(); | 534 | 299 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.61k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.61k | return Status::OK(); | 534 | 2.61k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.45k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.45k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.45k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.45k | return Status::OK(); | 534 | 2.45k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 338 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 338 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 338 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 338 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 338 | return Status::OK(); | 534 | 338 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.60k | return Status::OK(); | 534 | 1.60k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.4k | return Status::OK(); | 534 | 10.4k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 674k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 674k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 674k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 674k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 674k | return Status::OK(); | 534 | 674k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 14 | return Status::OK(); | 534 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 169 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 169 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 169 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 169 | return Status::OK(); | 534 | 169 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.20k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.20k | return Status::OK(); | 534 | 2.20k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 784 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 784 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 784 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 784 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 784 | return Status::OK(); | 534 | 784 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 903 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 903 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 903 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 903 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 903 | return Status::OK(); | 534 | 903 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.34k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.34k | return Status::OK(); | 534 | 5.34k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 337k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 337k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 337k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 337k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 337k | return Status::OK(); | 534 | 337k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.77M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.12M | : _num_rows_returned(0), |
542 | 2.12M | _rows_returned_counter(nullptr), |
543 | 2.12M | _parent(parent), |
544 | 2.12M | _state(state), |
545 | 2.12M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.13M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.13M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.13M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.13M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.13M | _operator_profile->set_metadata(_parent->node_id()); |
553 | | // indent is false so that source operator will have same |
554 | | // indentation_level with its parent operator. |
555 | 2.13M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.13M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.13M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.13M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.13M | if constexpr (!is_fake_shared) { |
560 | 1.22M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 763k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 763k | .first.get() |
563 | 763k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 763k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 763k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 763k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 763k | } else if (info.shared_state) { |
569 | 401k | 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 | 401k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 401k | _dependency = _shared_state->create_source_dependency( |
576 | 401k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 401k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 401k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 401k | } else { |
580 | 64.6k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 6.50k | DCHECK(false); |
582 | 6.50k | } |
583 | 64.6k | } |
584 | 1.22M | } |
585 | | |
586 | 2.13M | if (must_set_shared_state() && _shared_state == nullptr) { |
587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
588 | 0 | } |
589 | | |
590 | 2.13M | _rows_returned_counter = |
591 | 2.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.13M | _blocks_returned_counter = |
593 | 2.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.13M | _output_block_bytes_counter = |
595 | 2.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.13M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.13M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.13M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.13M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.13M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.13M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.13M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.13M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.13M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.13M | _memory_used_counter = |
606 | 2.13M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.13M | _common_profile->add_info_string("IsColocate", |
608 | 2.13M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.13M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.13M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.13M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.13M | return Status::OK(); |
613 | 2.13M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 67.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 67.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 67.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 67.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 67.0k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 67.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 67.0k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 67.0k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 67.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 67.0k | if constexpr (!is_fake_shared) { | 560 | 67.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 13.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 13.4k | .first.get() | 563 | 13.4k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 13.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 13.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 13.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 53.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 | 53.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 53.0k | _dependency = _shared_state->create_source_dependency( | 576 | 53.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 53.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 53.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 53.0k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 614 | } | 584 | 67.0k | } | 585 | | | 586 | 67.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 67.0k | _rows_returned_counter = | 591 | 67.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 67.0k | _blocks_returned_counter = | 593 | 67.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 67.0k | _output_block_bytes_counter = | 595 | 67.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 67.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 67.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 67.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 67.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 67.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 67.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 67.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 67.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 67.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 67.0k | _memory_used_counter = | 606 | 67.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 67.0k | _common_profile->add_info_string("IsColocate", | 608 | 67.0k | std::to_string(_parent->is_colocated_operator())); | 609 | 67.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 67.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 67.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 67.0k | return Status::OK(); | 613 | 67.0k | } |
_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 | 232k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 232k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 232k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 232k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 232k | _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 | 232k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 232k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 232k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 232k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 232k | if constexpr (!is_fake_shared) { | 560 | 232k | 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 | 232k | } 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 | 226k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 226k | _dependency = _shared_state->create_source_dependency( | 576 | 226k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 226k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 226k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 226k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 5.66k | } | 584 | 232k | } | 585 | | | 586 | 232k | 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 | 232k | _rows_returned_counter = | 591 | 232k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 232k | _blocks_returned_counter = | 593 | 232k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 232k | _output_block_bytes_counter = | 595 | 232k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 232k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 232k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 232k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 232k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 232k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 232k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 232k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 232k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 232k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 232k | _memory_used_counter = | 606 | 232k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 232k | _common_profile->add_info_string("IsColocate", | 608 | 232k | std::to_string(_parent->is_colocated_operator())); | 609 | 232k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 232k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 232k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 232k | return Status::OK(); | 613 | 232k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 23 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 23 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 23 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 23 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 23 | _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 | 23 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 23 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 23 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 23 | if constexpr (!is_fake_shared) { | 560 | 23 | 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 | 23 | } 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 | 23 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 23 | _dependency = _shared_state->create_source_dependency( | 576 | 23 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 23 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 23 | } | 585 | | | 586 | 23 | 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 | 23 | _rows_returned_counter = | 591 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 23 | _blocks_returned_counter = | 593 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 23 | _output_block_bytes_counter = | 595 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 23 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 23 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 23 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 23 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 23 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 23 | _memory_used_counter = | 606 | 23 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 23 | _common_profile->add_info_string("IsColocate", | 608 | 23 | std::to_string(_parent->is_colocated_operator())); | 609 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 23 | return Status::OK(); | 613 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.90k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.90k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.90k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.90k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.90k | _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.90k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.90k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.90k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.90k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.90k | if constexpr (!is_fake_shared) { | 560 | 5.90k | 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.90k | } 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.86k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.86k | _dependency = _shared_state->create_source_dependency( | 576 | 5.86k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.86k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.86k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.86k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 36 | } | 584 | 5.90k | } | 585 | | | 586 | 5.90k | 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.90k | _rows_returned_counter = | 591 | 5.90k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.90k | _blocks_returned_counter = | 593 | 5.90k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.90k | _output_block_bytes_counter = | 595 | 5.90k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.90k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.90k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.90k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.90k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.90k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.90k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.90k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.90k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.90k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.90k | _memory_used_counter = | 606 | 5.90k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.90k | _common_profile->add_info_string("IsColocate", | 608 | 5.90k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.90k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.90k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.90k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.90k | return Status::OK(); | 613 | 5.90k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 7.86k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 7.86k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 7.86k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 7.86k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 7.86k | _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 | 7.86k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 7.86k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 7.86k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 7.86k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 7.86k | if constexpr (!is_fake_shared) { | 560 | 7.86k | 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 | 7.86k | } 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 | 7.76k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 7.76k | _dependency = _shared_state->create_source_dependency( | 576 | 7.76k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 7.76k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 7.76k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 7.76k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 102 | } | 584 | 7.86k | } | 585 | | | 586 | 7.86k | 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 | 7.86k | _rows_returned_counter = | 591 | 7.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 7.86k | _blocks_returned_counter = | 593 | 7.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 7.86k | _output_block_bytes_counter = | 595 | 7.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 7.86k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 7.86k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 7.86k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 7.86k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 7.86k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 7.86k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 7.86k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 7.86k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 7.86k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 7.86k | _memory_used_counter = | 606 | 7.86k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 7.86k | _common_profile->add_info_string("IsColocate", | 608 | 7.86k | std::to_string(_parent->is_colocated_operator())); | 609 | 7.86k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 7.86k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 7.86k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 7.86k | return Status::OK(); | 613 | 7.86k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 92.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 92.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 92.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 92.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 92.8k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 92.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 92.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 92.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 92.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 92.8k | if constexpr (!is_fake_shared) { | 560 | 92.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 92.8k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 91.5k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 91.5k | _dependency = _shared_state->create_source_dependency( | 576 | 91.5k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 91.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 91.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 91.5k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.24k | } | 584 | 92.8k | } | 585 | | | 586 | 92.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 92.8k | _rows_returned_counter = | 591 | 92.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 92.8k | _blocks_returned_counter = | 593 | 92.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 92.8k | _output_block_bytes_counter = | 595 | 92.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 92.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 92.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 92.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 92.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 92.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 92.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 92.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 92.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 92.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 92.8k | _memory_used_counter = | 606 | 92.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 92.8k | _common_profile->add_info_string("IsColocate", | 608 | 92.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 92.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 92.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 92.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 92.8k | return Status::OK(); | 613 | 92.8k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 78.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 78.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 78.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 78.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 78.2k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 78.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 78.2k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 78.2k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 78.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 78.2k | if constexpr (!is_fake_shared) { | 560 | 78.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 78.2k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 78.2k | .first.get() | 563 | 78.2k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 78.2k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 78.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 78.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 78.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 | 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 | 16 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 16 | } | 584 | 78.2k | } | 585 | | | 586 | 78.2k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 78.2k | _rows_returned_counter = | 591 | 78.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 78.2k | _blocks_returned_counter = | 593 | 78.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 78.2k | _output_block_bytes_counter = | 595 | 78.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 78.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 78.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 78.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 78.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 78.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 78.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 78.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 78.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 78.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 78.2k | _memory_used_counter = | 606 | 78.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 78.2k | _common_profile->add_info_string("IsColocate", | 608 | 78.2k | std::to_string(_parent->is_colocated_operator())); | 609 | 78.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 78.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 78.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 78.2k | return Status::OK(); | 613 | 78.2k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 44 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 44 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 44 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 44 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 44 | _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 | 44 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 44 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 44 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 44 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 44 | if constexpr (!is_fake_shared) { | 560 | 44 | 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 | 44 | } 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 | 44 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 44 | _dependency = _shared_state->create_source_dependency( | 576 | 44 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 44 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 44 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 44 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 44 | } | 585 | | | 586 | 44 | 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 | 44 | _rows_returned_counter = | 591 | 44 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 44 | _blocks_returned_counter = | 593 | 44 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 44 | _output_block_bytes_counter = | 595 | 44 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 44 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 44 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 44 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 44 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 44 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 44 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 44 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 44 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 44 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 44 | _memory_used_counter = | 606 | 44 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 44 | _common_profile->add_info_string("IsColocate", | 608 | 44 | std::to_string(_parent->is_colocated_operator())); | 609 | 44 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 44 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 44 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 44 | return Status::OK(); | 613 | 44 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 909k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 909k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 909k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 909k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 909k | _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 | 909k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 909k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 909k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 909k | 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 | 909k | 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 | 909k | _rows_returned_counter = | 591 | 909k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 909k | _blocks_returned_counter = | 593 | 909k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 909k | _output_block_bytes_counter = | 595 | 909k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 909k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 909k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 909k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 909k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 909k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 909k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 909k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 909k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 909k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 909k | _memory_used_counter = | 606 | 909k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 909k | _common_profile->add_info_string("IsColocate", | 608 | 909k | std::to_string(_parent->is_colocated_operator())); | 609 | 909k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 909k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 909k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 909k | return Status::OK(); | 613 | 909k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 54.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 54.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 54.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 54.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 54.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 | 54.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 54.6k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 54.6k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 54.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 54.6k | if constexpr (!is_fake_shared) { | 560 | 54.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 | 54.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 | 4.50k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.50k | _dependency = _shared_state->create_source_dependency( | 576 | 4.50k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.50k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.50k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 50.1k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 50.1k | } | 584 | 54.6k | } | 585 | | | 586 | 54.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 | 54.6k | _rows_returned_counter = | 591 | 54.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 54.6k | _blocks_returned_counter = | 593 | 54.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 54.6k | _output_block_bytes_counter = | 595 | 54.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 54.6k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 54.6k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 54.6k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 54.6k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 54.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 54.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 54.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 54.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 54.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 54.6k | _memory_used_counter = | 606 | 54.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 54.6k | _common_profile->add_info_string("IsColocate", | 608 | 54.6k | std::to_string(_parent->is_colocated_operator())); | 609 | 54.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 54.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 54.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 54.6k | return Status::OK(); | 613 | 54.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 | 6.21k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.21k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.21k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.21k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.21k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 6.21k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.21k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.21k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.21k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.21k | if constexpr (!is_fake_shared) { | 560 | 6.21k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 6.21k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 6.17k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.17k | _dependency = _shared_state->create_source_dependency( | 576 | 6.17k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.17k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.17k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.17k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 33 | } | 584 | 6.21k | } | 585 | | | 586 | 6.21k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 6.21k | _rows_returned_counter = | 591 | 6.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.21k | _blocks_returned_counter = | 593 | 6.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.21k | _output_block_bytes_counter = | 595 | 6.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.21k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.21k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.21k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.21k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.21k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.21k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.21k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.21k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.21k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.21k | _memory_used_counter = | 606 | 6.21k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.21k | _common_profile->add_info_string("IsColocate", | 608 | 6.21k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.21k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.21k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.21k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.21k | return Status::OK(); | 613 | 6.21k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 411 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 411 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 411 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 411 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 411 | _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 | 411 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 411 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 411 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 411 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 411 | if constexpr (!is_fake_shared) { | 560 | 411 | 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 | 412 | } 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 | 412 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 412 | _dependency = _shared_state->create_source_dependency( | 576 | 412 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 412 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 412 | _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 | 411 | } | 585 | | | 586 | 411 | 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 | 411 | _rows_returned_counter = | 591 | 411 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 411 | _blocks_returned_counter = | 593 | 411 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 411 | _output_block_bytes_counter = | 595 | 411 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 411 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 411 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 411 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 411 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 411 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 411 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 411 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 411 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 411 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 411 | _memory_used_counter = | 606 | 411 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 411 | _common_profile->add_info_string("IsColocate", | 608 | 411 | std::to_string(_parent->is_colocated_operator())); | 609 | 411 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 411 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 411 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 411 | return Status::OK(); | 613 | 411 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.15k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.15k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.15k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.15k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.15k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 5.15k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.15k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.15k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.15k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.15k | if constexpr (!is_fake_shared) { | 560 | 5.15k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 5.15k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.88k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.88k | _dependency = _shared_state->create_source_dependency( | 576 | 4.88k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.88k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.88k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.88k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 265 | } | 584 | 5.15k | } | 585 | | | 586 | 5.15k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 5.15k | _rows_returned_counter = | 591 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.15k | _blocks_returned_counter = | 593 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.15k | _output_block_bytes_counter = | 595 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.15k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.15k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.15k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.15k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.15k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.15k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.15k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.15k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.15k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.15k | _memory_used_counter = | 606 | 5.15k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.15k | _common_profile->add_info_string("IsColocate", | 608 | 5.15k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.15k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.15k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.15k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.15k | return Status::OK(); | 613 | 5.15k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 678k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 678k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 678k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 678k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 678k | _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 | 678k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 678k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 678k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 678k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 678k | if constexpr (!is_fake_shared) { | 560 | 678k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 671k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 671k | .first.get() | 563 | 671k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 671k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 671k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 671k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 671k | } 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 | 6.50k | } else { | 580 | 6.50k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 6.50k | DCHECK(false); | 582 | 6.50k | } | 583 | 6.50k | } | 584 | 678k | } | 585 | | | 586 | 678k | 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 | 678k | _rows_returned_counter = | 591 | 678k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 678k | _blocks_returned_counter = | 593 | 678k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 678k | _output_block_bytes_counter = | 595 | 678k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 678k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 678k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 678k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 678k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 678k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 678k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 678k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 678k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 678k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 678k | _memory_used_counter = | 606 | 678k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 678k | _common_profile->add_info_string("IsColocate", | 608 | 678k | std::to_string(_parent->is_colocated_operator())); | 609 | 678k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 678k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 678k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 678k | return Status::OK(); | 613 | 678k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 169 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 169 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 169 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 169 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 169 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 169 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 169 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 169 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 169 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 169 | if constexpr (!is_fake_shared) { | 560 | 169 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 169 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 169 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 169 | _dependency = _shared_state->create_source_dependency( | 576 | 169 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 169 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 169 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 169 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 169 | } | 585 | | | 586 | 169 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 169 | _rows_returned_counter = | 591 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 169 | _blocks_returned_counter = | 593 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 169 | _output_block_bytes_counter = | 595 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 169 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 169 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 169 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 169 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 169 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 169 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 169 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 169 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 169 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 169 | _memory_used_counter = | 606 | 169 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 169 | _common_profile->add_info_string("IsColocate", | 608 | 169 | std::to_string(_parent->is_colocated_operator())); | 609 | 169 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 169 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 169 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 169 | return Status::OK(); | 613 | 169 | } |
|
614 | | |
615 | | template <typename SharedStateArg> |
616 | 2.14M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.14M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.45M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 307k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 307k | } |
621 | 2.14M | if (_parent->has_projection()) { |
622 | 380k | const auto& projection = *_parent->_projection; |
623 | 380k | _projections.resize(projection.projections.size()); |
624 | 2.37M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.99M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.99M | } |
627 | 380k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 398k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 17.4k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 220k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 202k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 202k | state, _intermediate_projections[i][j])); |
633 | 202k | } |
634 | 17.4k | } |
635 | 380k | } |
636 | 2.14M | return Status::OK(); |
637 | 2.14M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 67.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 67.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 68.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.41k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.41k | } | 621 | 67.3k | if (_parent->has_projection()) { | 622 | 67.3k | const auto& projection = *_parent->_projection; | 623 | 67.3k | _projections.resize(projection.projections.size()); | 624 | 360k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 293k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 293k | } | 627 | 67.3k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 74.0k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 6.72k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 153k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 147k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 147k | state, _intermediate_projections[i][j])); | 633 | 147k | } | 634 | 6.72k | } | 635 | 67.3k | } | 636 | 67.3k | return Status::OK(); | 637 | 67.3k | } |
_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 | 233k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 233k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 233k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 233k | if (_parent->has_projection()) { | 622 | 79 | const auto& projection = *_parent->_projection; | 623 | 79 | _projections.resize(projection.projections.size()); | 624 | 400 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 321 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 321 | } | 627 | 79 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 79 | 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 | 79 | } | 636 | 233k | return Status::OK(); | 637 | 233k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 23 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 23 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 23 | 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 | 23 | return Status::OK(); | 637 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.90k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.90k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.01k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 104 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 104 | } | 621 | 5.90k | if (_parent->has_projection()) { | 622 | 5.90k | const auto& projection = *_parent->_projection; | 623 | 5.90k | _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.90k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 5.94k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 31 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 239 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 208 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 208 | state, _intermediate_projections[i][j])); | 633 | 208 | } | 634 | 31 | } | 635 | 5.90k | } | 636 | 5.90k | return Status::OK(); | 637 | 5.90k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 7.90k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 7.90k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.60k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 698 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 698 | } | 621 | 7.90k | if (_parent->has_projection()) { | 622 | 3.83k | const auto& projection = *_parent->_projection; | 623 | 3.83k | _projections.resize(projection.projections.size()); | 624 | 16.1k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 12.3k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 12.3k | } | 627 | 3.83k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 3.91k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 87 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 655 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 568 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 568 | state, _intermediate_projections[i][j])); | 633 | 568 | } | 634 | 87 | } | 635 | 3.83k | } | 636 | 7.90k | return Status::OK(); | 637 | 7.90k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 93.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 93.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 94.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.38k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.38k | } | 621 | 93.0k | if (_parent->has_projection()) { | 622 | 30.8k | const auto& projection = *_parent->_projection; | 623 | 30.8k | _projections.resize(projection.projections.size()); | 624 | 277k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 247k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 247k | } | 627 | 30.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 31.5k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 746 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 4.64k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 3.90k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 3.90k | state, _intermediate_projections[i][j])); | 633 | 3.90k | } | 634 | 746 | } | 635 | 30.8k | } | 636 | 93.0k | return Status::OK(); | 637 | 93.0k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 78.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 78.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 78.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 10 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 10 | } | 621 | 78.3k | if (_parent->has_projection()) { | 622 | 167 | const auto& projection = *_parent->_projection; | 623 | 167 | _projections.resize(projection.projections.size()); | 624 | 629 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 462 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 462 | } | 627 | 167 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 167 | 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 | 167 | } | 636 | 78.3k | return Status::OK(); | 637 | 78.3k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 48 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 48 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 48 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 48 | if (_parent->has_projection()) { | 622 | 26 | const auto& projection = *_parent->_projection; | 623 | 26 | _projections.resize(projection.projections.size()); | 624 | 78 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 52 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 52 | } | 627 | 26 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 26 | 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 | 26 | } | 636 | 48 | return Status::OK(); | 637 | 48 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 914k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 914k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.21M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 303k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 303k | } | 621 | 914k | if (_parent->has_projection()) { | 622 | 260k | const auto& projection = *_parent->_projection; | 623 | 260k | _projections.resize(projection.projections.size()); | 624 | 1.58M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.32M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.32M | } | 627 | 260k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 270k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 9.64k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 56.9k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 47.2k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 47.2k | state, _intermediate_projections[i][j])); | 633 | 47.2k | } | 634 | 9.64k | } | 635 | 260k | } | 636 | 914k | return Status::OK(); | 637 | 914k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 54.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 54.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 54.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 54.9k | if (_parent->has_projection()) { | 622 | 11.5k | const auto& projection = *_parent->_projection; | 623 | 11.5k | _projections.resize(projection.projections.size()); | 624 | 111k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 99.7k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 99.7k | } | 627 | 11.5k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.7k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 200 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 3.92k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 3.72k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 3.72k | state, _intermediate_projections[i][j])); | 633 | 3.72k | } | 634 | 200 | } | 635 | 11.5k | } | 636 | 54.9k | return Status::OK(); | 637 | 54.9k | } |
_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 | 6.19k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.19k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.62k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 431 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 431 | } | 621 | 6.19k | 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 | 6.19k | return Status::OK(); | 637 | 6.19k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 414 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 414 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 414 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 414 | 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 | 414 | return Status::OK(); | 637 | 414 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.20k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.20k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.20k | 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.20k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 227 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 167 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 167 | } | 627 | 60 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 60 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 60 | } | 636 | 5.20k | return Status::OK(); | 637 | 5.20k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 681k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 681k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 681k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 681k | 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 | 681k | return Status::OK(); | 637 | 681k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 169 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 169 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 176 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 169 | if (_parent->has_projection()) { | 622 | 166 | const auto& projection = *_parent->_projection; | 623 | 166 | _projections.resize(projection.projections.size()); | 624 | 490 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 324 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 324 | } | 627 | 166 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 169 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 3 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 8 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 8 | state, _intermediate_projections[i][j])); | 633 | 8 | } | 634 | 3 | } | 635 | 166 | } | 636 | 169 | return Status::OK(); | 637 | 169 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 5.44k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 5.44k | if (_terminated) { |
642 | 2 | return Status::OK(); |
643 | 2 | } |
644 | 5.44k | _terminated = true; |
645 | 5.44k | return Status::OK(); |
646 | 5.44k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 307 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 307 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 307 | _terminated = true; | 645 | 307 | return Status::OK(); | 646 | 307 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 28 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 28 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 28 | _terminated = true; | 645 | 28 | return Status::OK(); | 646 | 28 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 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 | } |
_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 | 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 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 3.91k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 3.91k | if (_terminated) { | 642 | 1 | return Status::OK(); | 643 | 1 | } | 644 | 3.91k | _terminated = true; | 645 | 3.91k | return Status::OK(); | 646 | 3.91k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_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 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 7 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 7 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 7 | _terminated = true; | 645 | 7 | return Status::OK(); | 646 | 7 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 199 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 199 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 199 | _terminated = true; | 645 | 199 | return Status::OK(); | 646 | 199 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 864 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 864 | if (_terminated) { | 642 | 1 | return Status::OK(); | 643 | 1 | } | 644 | 863 | _terminated = true; | 645 | 863 | return Status::OK(); | 646 | 864 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 36 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 36 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 36 | _terminated = true; | 645 | 36 | return Status::OK(); | 646 | 36 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.41M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.41M | if (_closed) { |
651 | 262k | return Status::OK(); |
652 | 262k | } |
653 | 2.14M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.23M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.23M | } |
656 | 2.14M | _closed = true; |
657 | 2.14M | return Status::OK(); |
658 | 2.41M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 67.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 67.2k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 67.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 67.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 67.2k | } | 656 | 67.2k | _closed = true; | 657 | 67.2k | return Status::OK(); | 658 | 67.2k | } |
_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 | 463k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 463k | if (_closed) { | 651 | 232k | return Status::OK(); | 652 | 232k | } | 653 | 231k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 231k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 231k | } | 656 | 231k | _closed = true; | 657 | 231k | return Status::OK(); | 658 | 463k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 23 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 23 | } | 656 | 23 | _closed = true; | 657 | 23 | return Status::OK(); | 658 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.90k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.90k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.90k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.90k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.90k | } | 656 | 5.90k | _closed = true; | 657 | 5.90k | return Status::OK(); | 658 | 5.90k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 15.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 15.9k | if (_closed) { | 651 | 8.06k | return Status::OK(); | 652 | 8.06k | } | 653 | 7.89k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 7.89k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 7.89k | } | 656 | 7.89k | _closed = true; | 657 | 7.89k | return Status::OK(); | 658 | 15.9k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 92.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 92.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 92.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 92.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 92.9k | } | 656 | 92.9k | _closed = true; | 657 | 92.9k | return Status::OK(); | 658 | 92.9k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 78.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 78.0k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 78.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 78.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 78.0k | } | 656 | 78.0k | _closed = true; | 657 | 78.0k | return Status::OK(); | 658 | 78.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 43 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 43 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 43 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 43 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 43 | } | 656 | 43 | _closed = true; | 657 | 43 | return Status::OK(); | 658 | 43 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 931k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 931k | if (_closed) { | 651 | 16.1k | return Status::OK(); | 652 | 16.1k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 915k | _closed = true; | 657 | 915k | return Status::OK(); | 658 | 931k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 54.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 54.8k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 54.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 54.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 54.8k | } | 656 | 54.8k | _closed = true; | 657 | 54.8k | return Status::OK(); | 658 | 54.8k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 28 | if (_closed) { | 651 | 14 | return Status::OK(); | 652 | 14 | } | 653 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 14 | } | 656 | 14 | _closed = true; | 657 | 14 | return Status::OK(); | 658 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.17k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.17k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.17k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.17k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.17k | } | 656 | 6.17k | _closed = true; | 657 | 6.17k | return Status::OK(); | 658 | 6.17k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 620 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 620 | if (_closed) { | 651 | 311 | return Status::OK(); | 652 | 311 | } | 653 | 309 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 309 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 309 | } | 656 | 309 | _closed = true; | 657 | 309 | return Status::OK(); | 658 | 620 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.7k | if (_closed) { | 651 | 5.56k | return Status::OK(); | 652 | 5.56k | } | 653 | 5.19k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.19k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.19k | } | 656 | 5.19k | _closed = true; | 657 | 5.19k | return Status::OK(); | 658 | 10.7k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 682k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 682k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 682k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 682k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 682k | } | 656 | 682k | _closed = true; | 657 | 682k | return Status::OK(); | 658 | 682k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 336 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 336 | if (_closed) { | 651 | 176 | return Status::OK(); | 652 | 176 | } | 653 | 160 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 160 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 160 | } | 656 | 160 | _closed = true; | 657 | 160 | return Status::OK(); | 658 | 336 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.78M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.78M | _operator_profile = |
664 | 1.78M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.78M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.78M | _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.78M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.78M | _operator_profile->add_child(_common_profile, true); |
673 | 1.78M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.78M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.78M | _wait_for_finish_dependency_timer = |
677 | 1.78M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.78M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.78M | if constexpr (!is_fake_shared) { |
680 | 1.25M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.25M | info.shared_state_map.end()) { |
682 | 331k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 239k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 239k | } |
685 | 331k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 331k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 331k | ? 0 |
688 | 331k | : info.task_idx] |
689 | 331k | .get(); |
690 | 331k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 919k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 919k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 919k | _dependency = _shared_state->create_sink_dependency( |
697 | 919k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 919k | } |
699 | 1.25M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.25M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.25M | } |
702 | | |
703 | 1.78M | 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.78M | _rows_input_counter = |
708 | 1.78M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.78M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.78M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.78M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.78M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.78M | _memory_used_counter = |
714 | 1.78M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.78M | _common_profile->add_info_string("IsColocate", |
716 | 1.78M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.78M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.78M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.78M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.78M | return Status::OK(); |
721 | 1.78M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 115k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 115k | _operator_profile = | 664 | 115k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 115k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 115k | _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 | 115k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 115k | _operator_profile->add_child(_common_profile, true); | 673 | 115k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 115k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 115k | _wait_for_finish_dependency_timer = | 677 | 115k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 115k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 115k | if constexpr (!is_fake_shared) { | 680 | 115k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 115k | 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.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 13.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 13.6k | ? 0 | 688 | 13.6k | : info.task_idx] | 689 | 13.6k | .get(); | 690 | 13.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 101k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 101k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 101k | _dependency = _shared_state->create_sink_dependency( | 697 | 101k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 101k | } | 699 | 115k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 115k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 115k | } | 702 | | | 703 | 115k | 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 | 115k | _rows_input_counter = | 708 | 115k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 115k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 115k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 115k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 115k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 115k | _memory_used_counter = | 714 | 115k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 115k | _common_profile->add_info_string("IsColocate", | 716 | 115k | std::to_string(_parent->is_colocated_operator())); | 717 | 115k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 115k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 115k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 115k | return Status::OK(); | 721 | 115k | } |
_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 | 232k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 232k | _operator_profile = | 664 | 232k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 232k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 232k | _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 | 232k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 232k | _operator_profile->add_child(_common_profile, true); | 673 | 232k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 232k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 232k | _wait_for_finish_dependency_timer = | 677 | 232k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 232k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 232k | if constexpr (!is_fake_shared) { | 680 | 232k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 232k | 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 | 232k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 232k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 232k | _dependency = _shared_state->create_sink_dependency( | 697 | 232k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 232k | } | 699 | 232k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 232k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 232k | } | 702 | | | 703 | 232k | 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 | 232k | _rows_input_counter = | 708 | 232k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 232k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 232k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 232k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 232k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 232k | _memory_used_counter = | 714 | 232k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 232k | _common_profile->add_info_string("IsColocate", | 716 | 232k | std::to_string(_parent->is_colocated_operator())); | 717 | 232k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 232k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 232k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 232k | return Status::OK(); | 721 | 232k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 30 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 30 | _operator_profile = | 664 | 30 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 30 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 30 | _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 | 30 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 30 | _operator_profile->add_child(_common_profile, true); | 673 | 30 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 30 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 30 | _wait_for_finish_dependency_timer = | 677 | 30 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 30 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 30 | if constexpr (!is_fake_shared) { | 680 | 30 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 30 | 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 | 30 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 30 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 30 | _dependency = _shared_state->create_sink_dependency( | 697 | 30 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 30 | } | 699 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 30 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 30 | } | 702 | | | 703 | 30 | 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 | 30 | _rows_input_counter = | 708 | 30 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 30 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 30 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 30 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 30 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 30 | _memory_used_counter = | 714 | 30 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 30 | _common_profile->add_info_string("IsColocate", | 716 | 30 | std::to_string(_parent->is_colocated_operator())); | 717 | 30 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 30 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 30 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 30 | return Status::OK(); | 721 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 5.90k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 5.90k | _operator_profile = | 664 | 5.90k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 5.90k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 5.90k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 5.90k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 5.90k | _operator_profile->add_child(_common_profile, true); | 673 | 5.90k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 5.90k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 5.90k | _wait_for_finish_dependency_timer = | 677 | 5.90k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 5.90k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 5.90k | if constexpr (!is_fake_shared) { | 680 | 5.90k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 5.90k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 5.90k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 5.90k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 5.90k | _dependency = _shared_state->create_sink_dependency( | 697 | 5.90k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 5.90k | } | 699 | 5.90k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 5.90k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 5.90k | } | 702 | | | 703 | 5.90k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 5.90k | _rows_input_counter = | 708 | 5.90k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 5.90k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 5.90k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 5.90k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 5.90k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 5.90k | _memory_used_counter = | 714 | 5.90k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 5.90k | _common_profile->add_info_string("IsColocate", | 716 | 5.90k | std::to_string(_parent->is_colocated_operator())); | 717 | 5.90k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 5.90k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 5.90k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 5.90k | return Status::OK(); | 721 | 5.90k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 7.88k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 7.88k | _operator_profile = | 664 | 7.88k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 7.88k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 7.88k | _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 | 7.88k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 7.88k | _operator_profile->add_child(_common_profile, true); | 673 | 7.88k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 7.88k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 7.88k | _wait_for_finish_dependency_timer = | 677 | 7.88k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 7.88k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 7.88k | if constexpr (!is_fake_shared) { | 680 | 7.88k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 7.88k | 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 | 7.88k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 7.88k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 7.88k | _dependency = _shared_state->create_sink_dependency( | 697 | 7.88k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 7.88k | } | 699 | 7.88k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 7.88k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 7.88k | } | 702 | | | 703 | 7.88k | 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 | 7.88k | _rows_input_counter = | 708 | 7.88k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 7.88k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 7.88k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 7.88k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 7.88k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 7.88k | _memory_used_counter = | 714 | 7.88k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 7.88k | _common_profile->add_info_string("IsColocate", | 716 | 7.88k | std::to_string(_parent->is_colocated_operator())); | 717 | 7.88k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 7.88k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 7.88k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 7.88k | return Status::OK(); | 721 | 7.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 92.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 92.8k | _operator_profile = | 664 | 92.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 92.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 92.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 | 92.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 92.8k | _operator_profile->add_child(_common_profile, true); | 673 | 92.8k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 92.8k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 92.8k | _wait_for_finish_dependency_timer = | 677 | 92.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 92.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 92.8k | if constexpr (!is_fake_shared) { | 680 | 92.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 92.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 | 92.8k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 92.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 92.8k | _dependency = _shared_state->create_sink_dependency( | 697 | 92.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 92.8k | } | 699 | 92.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 92.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 92.8k | } | 702 | | | 703 | 92.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 | 92.8k | _rows_input_counter = | 708 | 92.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 92.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 92.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 92.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 92.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 92.8k | _memory_used_counter = | 714 | 92.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 92.8k | _common_profile->add_info_string("IsColocate", | 716 | 92.8k | std::to_string(_parent->is_colocated_operator())); | 717 | 92.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 92.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 92.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 92.8k | return Status::OK(); | 721 | 92.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 78.2k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 78.2k | _operator_profile = | 664 | 78.2k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 78.2k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 78.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 | 78.2k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 78.2k | _operator_profile->add_child(_common_profile, true); | 673 | 78.2k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 78.2k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 78.2k | _wait_for_finish_dependency_timer = | 677 | 78.2k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 78.2k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 78.2k | if constexpr (!is_fake_shared) { | 680 | 78.2k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 78.2k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 78.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 78.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 78.2k | ? 0 | 688 | 78.2k | : info.task_idx] | 689 | 78.2k | .get(); | 690 | 78.2k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 78.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 78.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 78.2k | } | 702 | | | 703 | 78.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 | 78.2k | _rows_input_counter = | 708 | 78.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 78.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 78.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 78.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 78.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 78.2k | _memory_used_counter = | 714 | 78.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 78.2k | _common_profile->add_info_string("IsColocate", | 716 | 78.2k | std::to_string(_parent->is_colocated_operator())); | 717 | 78.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 78.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 78.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 78.2k | return Status::OK(); | 721 | 78.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 54 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 54 | _operator_profile = | 664 | 54 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 54 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 54 | _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 | 54 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 54 | _operator_profile->add_child(_common_profile, true); | 673 | 54 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 54 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 54 | _wait_for_finish_dependency_timer = | 677 | 54 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 54 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 54 | if constexpr (!is_fake_shared) { | 680 | 54 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 54 | 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 | 54 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 54 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 54 | _dependency = _shared_state->create_sink_dependency( | 697 | 54 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 54 | } | 699 | 54 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 54 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 54 | } | 702 | | | 703 | 54 | 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 | 54 | _rows_input_counter = | 708 | 54 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 54 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 54 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 54 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 54 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 54 | _memory_used_counter = | 714 | 54 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 54 | _common_profile->add_info_string("IsColocate", | 716 | 54 | std::to_string(_parent->is_colocated_operator())); | 717 | 54 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 54 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 54 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 54 | return Status::OK(); | 721 | 54 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 535k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 535k | _operator_profile = | 664 | 535k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 535k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 535k | _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 | 535k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 535k | _operator_profile->add_child(_common_profile, true); | 673 | 535k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 535k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 535k | _wait_for_finish_dependency_timer = | 677 | 535k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 535k | 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 | 535k | 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 | 535k | _rows_input_counter = | 708 | 535k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 535k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 535k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 535k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 535k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 535k | _memory_used_counter = | 714 | 535k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 535k | _common_profile->add_info_string("IsColocate", | 716 | 535k | std::to_string(_parent->is_colocated_operator())); | 717 | 535k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 535k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 535k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 535k | return Status::OK(); | 721 | 535k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 10.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 10.7k | _operator_profile = | 664 | 10.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 10.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 10.7k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 10.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 10.7k | _operator_profile->add_child(_common_profile, true); | 673 | 10.7k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 10.7k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 10.7k | _wait_for_finish_dependency_timer = | 677 | 10.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 10.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 10.7k | if constexpr (!is_fake_shared) { | 680 | 10.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 10.7k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 10.7k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 10.7k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 10.7k | _dependency = _shared_state->create_sink_dependency( | 697 | 10.7k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 10.7k | } | 699 | 10.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 10.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 10.7k | } | 702 | | | 703 | 10.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 10.7k | _rows_input_counter = | 708 | 10.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 10.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 10.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 10.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 10.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 10.7k | _memory_used_counter = | 714 | 10.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 10.7k | _common_profile->add_info_string("IsColocate", | 716 | 10.7k | std::to_string(_parent->is_colocated_operator())); | 717 | 10.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 10.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 10.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 10.7k | return Status::OK(); | 721 | 10.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 411 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 411 | _operator_profile = | 664 | 411 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 411 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 411 | _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 | 411 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 411 | _operator_profile->add_child(_common_profile, true); | 673 | 411 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 411 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 411 | _wait_for_finish_dependency_timer = | 677 | 411 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 411 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 411 | if constexpr (!is_fake_shared) { | 680 | 411 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 411 | 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 | 411 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 411 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 411 | _dependency = _shared_state->create_sink_dependency( | 697 | 411 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 411 | } | 699 | 411 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 411 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 411 | } | 702 | | | 703 | 411 | 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 | 411 | _rows_input_counter = | 708 | 411 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 411 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 411 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 411 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 411 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 411 | _memory_used_counter = | 714 | 411 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 411 | _common_profile->add_info_string("IsColocate", | 716 | 411 | std::to_string(_parent->is_colocated_operator())); | 717 | 411 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 411 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 411 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 411 | return Status::OK(); | 721 | 411 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.74k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.74k | _operator_profile = | 664 | 2.74k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.74k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.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 | 2.74k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.74k | _operator_profile->add_child(_common_profile, true); | 673 | 2.74k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.74k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.74k | _wait_for_finish_dependency_timer = | 677 | 2.74k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.74k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.74k | if constexpr (!is_fake_shared) { | 680 | 2.74k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.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 | 2.74k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.74k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.74k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.74k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.74k | } | 699 | 2.74k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.74k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.74k | } | 702 | | | 703 | 2.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 | 2.74k | _rows_input_counter = | 708 | 2.74k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.74k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.74k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.74k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.74k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.74k | _memory_used_counter = | 714 | 2.74k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.74k | _common_profile->add_info_string("IsColocate", | 716 | 2.74k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.74k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.74k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.74k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.74k | return Status::OK(); | 721 | 2.74k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.5k | _operator_profile = | 664 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.5k | _operator_profile->add_child(_common_profile, true); | 673 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.5k | _wait_for_finish_dependency_timer = | 677 | 12.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.5k | if constexpr (!is_fake_shared) { | 680 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.5k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.5k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.5k | } | 699 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.5k | } | 702 | | | 703 | 12.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.5k | _rows_input_counter = | 708 | 12.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.5k | _memory_used_counter = | 714 | 12.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.5k | _common_profile->add_info_string("IsColocate", | 716 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.5k | return Status::OK(); | 721 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 239k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 239k | _operator_profile = | 664 | 239k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 239k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 239k | _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 | 239k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 239k | _operator_profile->add_child(_common_profile, true); | 673 | 239k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 239k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 239k | _wait_for_finish_dependency_timer = | 677 | 239k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 239k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 239k | if constexpr (!is_fake_shared) { | 680 | 239k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 239k | info.shared_state_map.end()) { | 682 | 239k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 239k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 239k | } | 685 | 239k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 239k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 239k | ? 0 | 688 | 239k | : info.task_idx] | 689 | 239k | .get(); | 690 | 239k | _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 | 239k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 239k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 239k | } | 702 | | | 703 | 239k | 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 | 239k | _rows_input_counter = | 708 | 239k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 239k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 239k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 239k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 239k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 239k | _memory_used_counter = | 714 | 239k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 239k | _common_profile->add_info_string("IsColocate", | 716 | 239k | std::to_string(_parent->is_colocated_operator())); | 717 | 239k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 239k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 239k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 239k | return Status::OK(); | 721 | 239k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 451k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 451k | _operator_profile = | 664 | 451k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 451k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 451k | _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 | 451k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 451k | _operator_profile->add_child(_common_profile, true); | 673 | 451k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 451k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 451k | _wait_for_finish_dependency_timer = | 677 | 451k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 451k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 451k | if constexpr (!is_fake_shared) { | 680 | 451k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 451k | 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 | 451k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 451k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 451k | _dependency = _shared_state->create_sink_dependency( | 697 | 451k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 451k | } | 699 | 451k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 451k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 451k | } | 702 | | | 703 | 451k | 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 | 451k | _rows_input_counter = | 708 | 451k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 451k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 451k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 451k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 451k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 451k | _memory_used_counter = | 714 | 451k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 451k | _common_profile->add_info_string("IsColocate", | 716 | 451k | std::to_string(_parent->is_colocated_operator())); | 717 | 451k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 451k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 451k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 451k | return Status::OK(); | 721 | 451k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 25 | _operator_profile = | 664 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 25 | _operator_profile->add_child(_common_profile, true); | 673 | 25 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 25 | _wait_for_finish_dependency_timer = | 677 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 25 | if constexpr (!is_fake_shared) { | 680 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 25 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 25 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 25 | _dependency = _shared_state->create_sink_dependency( | 697 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 25 | } | 699 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 25 | } | 702 | | | 703 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 25 | _rows_input_counter = | 708 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 25 | _memory_used_counter = | 714 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 25 | _common_profile->add_info_string("IsColocate", | 716 | 25 | std::to_string(_parent->is_colocated_operator())); | 717 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 25 | return Status::OK(); | 721 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 338 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 338 | _operator_profile = | 664 | 338 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 338 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 338 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 338 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 338 | _operator_profile->add_child(_common_profile, true); | 673 | 338 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 338 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 338 | _wait_for_finish_dependency_timer = | 677 | 338 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 338 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 338 | if constexpr (!is_fake_shared) { | 680 | 338 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 338 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 338 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 338 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 338 | _dependency = _shared_state->create_sink_dependency( | 697 | 338 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 338 | } | 699 | 338 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 338 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 338 | } | 702 | | | 703 | 338 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 338 | _rows_input_counter = | 708 | 338 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 338 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 338 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 338 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 338 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 338 | _memory_used_counter = | 714 | 338 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 338 | _common_profile->add_info_string("IsColocate", | 716 | 338 | std::to_string(_parent->is_colocated_operator())); | 717 | 338 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 338 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 338 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 338 | return Status::OK(); | 721 | 338 | } |
|
722 | | |
723 | | template <typename SharedState> |
724 | 1.79M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.79M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.79M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.25M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.25M | } |
731 | 1.79M | _closed = true; |
732 | 1.79M | return Status::OK(); |
733 | 1.79M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 115k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 115k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 115k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 115k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 115k | } | 731 | 115k | _closed = true; | 732 | 115k | return Status::OK(); | 733 | 115k | } |
_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 | 232k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 232k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 232k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 232k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 232k | } | 731 | 232k | _closed = true; | 732 | 232k | return Status::OK(); | 733 | 232k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 21 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 21 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 19 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 19 | } | 731 | 19 | _closed = true; | 732 | 19 | return Status::OK(); | 733 | 21 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 5.88k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 5.88k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 5.88k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 5.88k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 5.88k | } | 731 | 5.88k | _closed = true; | 732 | 5.88k | return Status::OK(); | 733 | 5.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 7.87k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 7.87k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 7.87k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 7.87k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 7.87k | } | 731 | 7.87k | _closed = true; | 732 | 7.87k | return Status::OK(); | 733 | 7.87k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 92.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 92.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 92.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 92.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 92.7k | } | 731 | 92.7k | _closed = true; | 732 | 92.7k | return Status::OK(); | 733 | 92.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 77.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 77.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 77.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 77.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 77.9k | } | 731 | 77.9k | _closed = true; | 732 | 77.9k | return Status::OK(); | 733 | 77.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 43 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 43 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 43 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 43 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 43 | } | 731 | 43 | _closed = true; | 732 | 43 | return Status::OK(); | 733 | 43 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 538k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 538k | 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 | 538k | _closed = true; | 732 | 538k | return Status::OK(); | 733 | 538k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 10.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 10.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 10.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 10.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 10.7k | } | 731 | 10.7k | _closed = true; | 732 | 10.7k | return Status::OK(); | 733 | 10.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 310 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 310 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 310 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 310 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 310 | } | 731 | 310 | _closed = true; | 732 | 310 | return Status::OK(); | 733 | 310 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.78k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.78k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.78k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.78k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.78k | } | 731 | 2.78k | _closed = true; | 732 | 2.78k | return Status::OK(); | 733 | 2.78k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.6k | } | 731 | 12.6k | _closed = true; | 732 | 12.6k | return Status::OK(); | 733 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 240k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 240k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 240k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 240k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 240k | } | 731 | 240k | _closed = true; | 732 | 240k | return Status::OK(); | 733 | 240k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 453k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 453k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 453k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 453k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 453k | } | 731 | 453k | _closed = true; | 732 | 453k | return Status::OK(); | 733 | 453k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 14 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 14 | } | 731 | 14 | _closed = true; | 732 | 14 | return Status::OK(); | 733 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 338 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 338 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 338 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 338 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 338 | } | 731 | 338 | _closed = true; | 732 | 338 | return Status::OK(); | 733 | 338 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 4.30k | bool* eos) { |
738 | 4.30k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 4.30k | return pull(state, block, eos); |
740 | 4.30k | } _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 | 4.27k | bool* eos) { | 738 | 4.27k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 4.26k | return pull(state, block, eos); | 740 | 4.27k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 571k | bool* eos) { |
745 | 571k | auto& local_state = get_local_state(state); |
746 | 571k | if (need_more_input_data(state)) { |
747 | 541k | local_state._child_block->clear_column_data( |
748 | 541k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 541k | .num_materialized_slots()); |
750 | 541k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 541k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 541k | *eos = local_state._child_eos; |
753 | 541k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 68.5k | return Status::OK(); |
755 | 68.5k | } |
756 | 472k | { |
757 | 472k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 472k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 472k | } |
760 | 472k | } |
761 | | |
762 | 503k | if (!need_more_input_data(state)) { |
763 | 477k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 477k | bool new_eos = false; |
765 | 477k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 477k | if (new_eos) { |
767 | 399k | *eos = true; |
768 | 399k | } else if (!need_more_input_data(state)) { |
769 | 24.5k | *eos = false; |
770 | 24.5k | } |
771 | 477k | } |
772 | 503k | return Status::OK(); |
773 | 503k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 143k | bool* eos) { | 745 | 143k | auto& local_state = get_local_state(state); | 746 | 143k | if (need_more_input_data(state)) { | 747 | 124k | local_state._child_block->clear_column_data( | 748 | 124k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 124k | .num_materialized_slots()); | 750 | 124k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 124k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 124k | *eos = local_state._child_eos; | 753 | 124k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 42.1k | return Status::OK(); | 755 | 42.1k | } | 756 | 82.3k | { | 757 | 82.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 82.3k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 82.3k | } | 760 | 82.3k | } | 761 | | | 762 | 101k | if (!need_more_input_data(state)) { | 763 | 101k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 101k | bool new_eos = false; | 765 | 101k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 101k | if (new_eos) { | 767 | 42.9k | *eos = true; | 768 | 58.1k | } else if (!need_more_input_data(state)) { | 769 | 11.5k | *eos = false; | 770 | 11.5k | } | 771 | 101k | } | 772 | 101k | return Status::OK(); | 773 | 101k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.39k | bool* eos) { | 745 | 4.39k | auto& local_state = get_local_state(state); | 746 | 4.39k | if (need_more_input_data(state)) { | 747 | 2.45k | local_state._child_block->clear_column_data( | 748 | 2.45k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.45k | .num_materialized_slots()); | 750 | 2.45k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.45k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.45k | *eos = local_state._child_eos; | 753 | 2.45k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 454 | return Status::OK(); | 755 | 454 | } | 756 | 2.00k | { | 757 | 2.00k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 2.00k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 2.00k | } | 760 | 2.00k | } | 761 | | | 762 | 3.97k | if (!need_more_input_data(state)) { | 763 | 3.97k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.97k | bool new_eos = false; | 765 | 3.97k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.97k | if (new_eos) { | 767 | 1.34k | *eos = true; | 768 | 2.62k | } else if (!need_more_input_data(state)) { | 769 | 1.94k | *eos = false; | 770 | 1.94k | } | 771 | 3.97k | } | 772 | 3.93k | return Status::OK(); | 773 | 3.93k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.87k | bool* eos) { | 745 | 1.87k | auto& local_state = get_local_state(state); | 746 | 1.87k | if (need_more_input_data(state)) { | 747 | 1.87k | local_state._child_block->clear_column_data( | 748 | 1.87k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.87k | .num_materialized_slots()); | 750 | 1.87k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.87k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.87k | *eos = local_state._child_eos; | 753 | 1.87k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 768 | return Status::OK(); | 755 | 768 | } | 756 | 1.10k | { | 757 | 1.10k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.10k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.10k | } | 760 | 1.10k | } | 761 | | | 762 | 1.10k | if (!need_more_input_data(state)) { | 763 | 1.10k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.10k | bool new_eos = false; | 765 | 1.10k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.10k | if (new_eos) { | 767 | 784 | *eos = true; | 768 | 784 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.10k | } | 772 | 1.10k | return Status::OK(); | 773 | 1.10k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 18.3k | bool* eos) { | 745 | 18.3k | auto& local_state = get_local_state(state); | 746 | 18.3k | if (need_more_input_data(state)) { | 747 | 18.3k | local_state._child_block->clear_column_data( | 748 | 18.3k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 18.3k | .num_materialized_slots()); | 750 | 18.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 18.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 18.3k | *eos = local_state._child_eos; | 753 | 18.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 7.65k | return Status::OK(); | 755 | 7.65k | } | 756 | 10.6k | { | 757 | 10.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.6k | } | 760 | 10.6k | } | 761 | | | 762 | 10.6k | if (!need_more_input_data(state)) { | 763 | 5.35k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.35k | bool new_eos = false; | 765 | 5.35k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.35k | if (new_eos) { | 767 | 5.30k | *eos = true; | 768 | 5.30k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 5.35k | } | 772 | 10.6k | return Status::OK(); | 773 | 10.6k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 373k | bool* eos) { | 745 | 373k | auto& local_state = get_local_state(state); | 746 | 374k | if (need_more_input_data(state)) { | 747 | 374k | local_state._child_block->clear_column_data( | 748 | 374k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 374k | .num_materialized_slots()); | 750 | 374k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 374k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 374k | *eos = local_state._child_eos; | 753 | 374k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 15.3k | return Status::OK(); | 755 | 15.3k | } | 756 | 359k | { | 757 | 359k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 359k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 359k | } | 760 | 359k | } | 761 | | | 762 | 358k | if (!need_more_input_data(state)) { | 763 | 338k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 338k | bool new_eos = false; | 765 | 338k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 338k | if (new_eos) { | 767 | 338k | *eos = true; | 768 | 338k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 338k | } | 772 | 358k | return Status::OK(); | 773 | 358k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 21.2k | bool* eos) { | 745 | 21.2k | auto& local_state = get_local_state(state); | 746 | 21.2k | if (need_more_input_data(state)) { | 747 | 10.6k | local_state._child_block->clear_column_data( | 748 | 10.6k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 10.6k | .num_materialized_slots()); | 750 | 10.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 10.6k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 10.6k | *eos = local_state._child_eos; | 753 | 10.6k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 744 | return Status::OK(); | 755 | 744 | } | 756 | 9.89k | { | 757 | 9.89k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 9.89k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 9.89k | } | 760 | 9.89k | } | 761 | | | 762 | 20.5k | if (!need_more_input_data(state)) { | 763 | 19.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 19.9k | bool new_eos = false; | 765 | 19.9k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 19.9k | if (new_eos) { | 767 | 5.86k | *eos = true; | 768 | 14.0k | } else if (!need_more_input_data(state)) { | 769 | 10.6k | *eos = false; | 770 | 10.6k | } | 771 | 19.9k | } | 772 | 20.5k | return Status::OK(); | 773 | 20.5k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 9.06k | bool* eos) { | 745 | 9.06k | auto& local_state = get_local_state(state); | 746 | 9.06k | if (need_more_input_data(state)) { | 747 | 8.71k | local_state._child_block->clear_column_data( | 748 | 8.71k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 8.71k | .num_materialized_slots()); | 750 | 8.71k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 8.71k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 8.71k | *eos = local_state._child_eos; | 753 | 8.71k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 1.44k | return Status::OK(); | 755 | 1.44k | } | 756 | 7.26k | { | 757 | 7.26k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 7.26k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 7.26k | } | 760 | 7.26k | } | 761 | | | 762 | 7.62k | if (!need_more_input_data(state)) { | 763 | 7.62k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.62k | bool new_eos = false; | 765 | 7.62k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.62k | if (new_eos) { | 767 | 5.19k | *eos = true; | 768 | 5.19k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 7.62k | } | 772 | 7.61k | return Status::OK(); | 773 | 7.61k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 47.3k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 47.3k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 47.3k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 47.3k | "AsyncWriterDependency", true); |
781 | 47.3k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 47.3k | _finish_dependency)); |
783 | | |
784 | 47.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 47.3k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 47.3k | return Status::OK(); |
787 | 47.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 364 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 364 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 364 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 364 | "AsyncWriterDependency", true); | 781 | 364 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 364 | _finish_dependency)); | 783 | | | 784 | 364 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 364 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 364 | return Status::OK(); | 787 | 364 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 46.9k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 46.9k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 46.9k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 46.9k | "AsyncWriterDependency", true); | 781 | 46.9k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 46.9k | _finish_dependency)); | 783 | | | 784 | 46.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 46.9k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 46.9k | return Status::OK(); | 787 | 46.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 10 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 10 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 10 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 10 | "AsyncWriterDependency", true); | 781 | 10 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 10 | _finish_dependency)); | 783 | | | 784 | 10 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 10 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 10 | return Status::OK(); | 787 | 10 | } |
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 | 47.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 47.6k | RETURN_IF_ERROR(Base::open(state)); |
793 | 47.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 369k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 321k | RETURN_IF_ERROR( |
796 | 321k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 321k | } |
798 | 47.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 47.6k | return Status::OK(); |
800 | 47.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 365 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 365 | RETURN_IF_ERROR(Base::open(state)); | 793 | 365 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.88k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.52k | RETURN_IF_ERROR( | 796 | 1.52k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.52k | } | 798 | 365 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 365 | return Status::OK(); | 800 | 365 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 47.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 47.3k | RETURN_IF_ERROR(Base::open(state)); | 793 | 47.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 367k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 319k | RETURN_IF_ERROR( | 796 | 319k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 319k | } | 798 | 47.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 47.3k | return Status::OK(); | 800 | 47.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 10 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 10 | RETURN_IF_ERROR(Base::open(state)); | 793 | 10 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 180 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 170 | RETURN_IF_ERROR( | 796 | 170 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 170 | } | 798 | 10 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 10 | return Status::OK(); | 800 | 10 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
801 | | |
802 | | template <typename Writer, typename Parent> |
803 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
804 | 63.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 63.7k | return _writer->sink(block, eos); |
806 | 63.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.87k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.87k | return _writer->sink(block, eos); | 806 | 1.87k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 61.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 61.8k | return _writer->sink(block, eos); | 806 | 61.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 10 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 10 | return _writer->sink(block, eos); | 806 | 10 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
807 | | |
808 | | template <typename Writer, typename Parent> |
809 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
810 | 47.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 47.7k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 47.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 47.7k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
816 | | // if the init failed, the _writer may be nullptr. so here need check |
817 | 47.7k | if (_writer) { |
818 | 47.7k | Status st = _writer->get_writer_status(); |
819 | 47.7k | if (exec_status.ok()) { |
820 | 47.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 47.7k | : Status::Cancelled("force close")); |
822 | 47.7k | } else { |
823 | 92 | _writer->force_close(exec_status); |
824 | 92 | } |
825 | | // If there is an error in process_block thread, then we should get the writer |
826 | | // status before call force_close. For example, the thread may failed in commit |
827 | | // transaction. |
828 | 47.7k | RETURN_IF_ERROR(st); |
829 | 47.7k | } |
830 | 47.7k | return Base::close(state, exec_status); |
831 | 47.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 353 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 353 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 353 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 353 | 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 | 353 | if (_writer) { | 818 | 353 | Status st = _writer->get_writer_status(); | 819 | 353 | if (exec_status.ok()) { | 820 | 353 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 353 | : Status::Cancelled("force close")); | 822 | 353 | } 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 | 353 | RETURN_IF_ERROR(st); | 829 | 353 | } | 830 | 353 | return Base::close(state, exec_status); | 831 | 353 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 47.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 47.3k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 47.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 47.3k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 47.4k | if (_writer) { | 818 | 47.4k | Status st = _writer->get_writer_status(); | 819 | 47.4k | if (exec_status.ok()) { | 820 | 47.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 47.3k | : Status::Cancelled("force close")); | 822 | 47.3k | } else { | 823 | 92 | _writer->force_close(exec_status); | 824 | 92 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 47.4k | RETURN_IF_ERROR(st); | 829 | 47.4k | } | 830 | 47.3k | return Base::close(state, exec_status); | 831 | 47.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 10 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 10 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 10 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 10 | 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 | 10 | if (_writer) { | 818 | 10 | Status st = _writer->get_writer_status(); | 819 | 10 | if (exec_status.ok()) { | 820 | 10 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 10 | : Status::Cancelled("force close")); | 822 | 10 | } 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 | 10 | RETURN_IF_ERROR(st); | 829 | 10 | } | 830 | 10 | return Base::close(state, exec_status); | 831 | 10 | } |
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 |