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.70M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.70M | if (_parent->nereids_id() == -1) { |
122 | 890k | return fmt::format("(id={})", _parent->node_id()); |
123 | 890k | } else { |
124 | 810k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 810k | } |
126 | 1.70M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 68.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 68.5k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 68.5k | } else { | 124 | 68.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 68.5k | } | 126 | 68.5k | } |
_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 | 194k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 194k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 194k | } else { | 124 | 194k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 194k | } | 126 | 194k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 22 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 22 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 22 | } else { | 124 | 22 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 22 | } | 126 | 22 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.95k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.95k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.95k | } else { | 124 | 5.95k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.95k | } | 126 | 5.95k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 7.75k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.75k | if (_parent->nereids_id() == -1) { | 122 | 14 | return fmt::format("(id={})", _parent->node_id()); | 123 | 7.73k | } else { | 124 | 7.73k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 7.73k | } | 126 | 7.75k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 87.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 87.7k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 87.7k | } else { | 124 | 87.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 87.7k | } | 126 | 87.7k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 80.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 80.9k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 80.9k | } else { | 124 | 80.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 80.9k | } | 126 | 80.9k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 140 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 140 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 140 | } else { | 124 | 140 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 140 | } | 126 | 140 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 574k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 574k | if (_parent->nereids_id() == -1) { | 122 | 269k | return fmt::format("(id={})", _parent->node_id()); | 123 | 305k | } else { | 124 | 305k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 305k | } | 126 | 574k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 54.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 54.4k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 54.4k | } else { | 124 | 54.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 54.4k | } | 126 | 54.4k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.69k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.70k | if (_parent->nereids_id() == -1) { | 122 | 5.70k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 5.69k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 410 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 410 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 308 | } else { | 124 | 308 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 308 | } | 126 | 410 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.14k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.14k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.12k | } else { | 124 | 5.12k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.12k | } | 126 | 5.14k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 614k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 615k | if (_parent->nereids_id() == -1) { | 122 | 615k | 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 | 614k | } |
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.18M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.18M | if (_parent->nereids_id() == -1) { |
131 | 679k | return fmt::format("(id={})", _parent->node_id()); |
132 | 679k | } else { |
133 | 505k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 505k | } |
135 | 1.18M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 118k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 118k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 118k | } else { | 133 | 118k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 118k | } | 135 | 118k | } |
_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 | 196k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 196k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 196k | } else { | 133 | 196k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 196k | } | 135 | 196k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 29 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 29 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 29 | } else { | 133 | 29 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 29 | } | 135 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 5.95k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 5.95k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 5.95k | } else { | 133 | 5.95k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 5.95k | } | 135 | 5.95k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.76k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.76k | if (_parent->nereids_id() == -1) { | 131 | 14 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.75k | } else { | 133 | 7.75k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.75k | } | 135 | 7.76k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 87.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 87.9k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 87.9k | } else { | 133 | 87.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 87.9k | } | 135 | 87.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 80.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 80.7k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 80.7k | } else { | 133 | 80.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 80.7k | } | 135 | 80.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 150 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 150 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 150 | } else { | 133 | 150 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 150 | } | 135 | 150 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6 | if (_parent->nereids_id() == -1) { | 131 | 6 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.70k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.70k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.70k | } else { | 133 | 8.70k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.70k | } | 135 | 8.70k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 410 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 410 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 308 | } else { | 133 | 308 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 308 | } | 135 | 410 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.5k | 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.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 250k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 251k | if (_parent->nereids_id() == -1) { | 131 | 251k | 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 | 250k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 414k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 415k | if (_parent->nereids_id() == -1) { | 131 | 415k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 414k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 338 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 338 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 338 | } else { | 133 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 338 | } | 135 | 338 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 31.2k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 31.2k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 31.2k | _terminated = true; |
143 | 31.2k | return Status::OK(); |
144 | 31.2k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.66k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.66k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.66k | _terminated = true; | 143 | 2.66k | return Status::OK(); | 144 | 2.66k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3 | _terminated = true; | 143 | 3 | return Status::OK(); | 144 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.00k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.00k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.00k | _terminated = true; | 143 | 2.00k | return Status::OK(); | 144 | 2.00k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.07k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.07k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.07k | _terminated = true; | 143 | 1.07k | return Status::OK(); | 144 | 1.07k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 415 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 415 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 415 | _terminated = true; | 143 | 415 | return Status::OK(); | 144 | 415 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 275 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 275 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 275 | _terminated = true; | 143 | 275 | return Status::OK(); | 144 | 275 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_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_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 260 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 260 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 260 | _terminated = true; | 143 | 260 | return Status::OK(); | 144 | 260 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 14 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 14 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 14 | _terminated = true; | 143 | 14 | return Status::OK(); | 144 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 362 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 362 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 362 | _terminated = true; | 143 | 362 | return Status::OK(); | 144 | 362 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 137 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 137 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 137 | _terminated = true; | 143 | 137 | return Status::OK(); | 144 | 137 | } |
|
145 | | |
146 | 289k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 289k | return _child && _child->is_serial_operator() && !is_source() |
148 | 289k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 289k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 289k | } |
151 | | |
152 | 21.6k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 21.6k | if (!_child) { |
154 | 20.3k | return false; |
155 | 20.3k | } |
156 | 1.26k | if (_child->is_serial_operator()) { |
157 | 186 | return true; |
158 | 186 | } |
159 | 1.07k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 1.07k | return child_distribution.need_local_exchange() && |
161 | 1.07k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.26k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 15.5k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 15.5k | fmt::memory_buffer debug_string_buffer; |
167 | 15.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 15.5k | return fmt::to_string(debug_string_buffer); |
169 | 15.5k | } 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 | 15.5k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 15.5k | fmt::memory_buffer debug_string_buffer; | 167 | 15.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 15.5k | return fmt::to_string(debug_string_buffer); | 169 | 15.5k | } |
_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 | 15.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 15.5k | fmt::memory_buffer debug_string_buffer; |
174 | 15.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 15.5k | return fmt::to_string(debug_string_buffer); |
176 | 15.5k | } 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 | 15.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 15.5k | fmt::memory_buffer debug_string_buffer; | 174 | 15.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 15.5k | return fmt::to_string(debug_string_buffer); | 176 | 15.5k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 15.6k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 15.6k | fmt::memory_buffer debug_string_buffer; |
180 | 15.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 15.6k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 15.6k | _is_serial_operator); |
183 | 15.6k | return fmt::to_string(debug_string_buffer); |
184 | 15.6k | } |
185 | | |
186 | 15.5k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 15.5k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 15.5k | } |
189 | | |
190 | 630k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 630k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 630k | _nereids_id = tnode.nereids_id; |
193 | 630k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.88k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.88k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.88k | tnode.intermediate_projections_list.size()) { |
199 | 0 | return Status::InternalError( |
200 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
201 | 0 | "intermediate_projections_list size:{}", |
202 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
203 | 0 | tnode.intermediate_projections_list.size()); |
204 | 0 | } |
205 | 3.88k | } |
206 | 630k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 630k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 630k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 630k | } else if (tnode.__isset.conjuncts) { |
212 | 273k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 273k | VExprContextSPtr context; |
214 | 273k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 273k | _conjuncts.emplace_back(context); |
216 | 273k | } |
217 | 99.3k | } |
218 | | |
219 | | // create the projections expr |
220 | 630k | if (tnode.__isset.projections) { |
221 | 261k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 261k | } |
223 | 630k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.88k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.88k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 6.57k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 6.57k | VExprContextSPtrs projections; |
228 | 6.57k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 6.57k | _projection->intermediate_projections.push_back(projections); |
230 | 6.57k | } |
231 | 3.88k | } |
232 | 630k | return Status::OK(); |
233 | 630k | } |
234 | | |
235 | 657k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 657k | for (auto& conjunct : _conjuncts) { |
237 | 273k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 273k | } |
239 | 657k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 607k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 340k | return a->execute_cost() < b->execute_cost(); |
242 | 340k | }); |
243 | 607k | }; |
244 | | |
245 | 657k | if (has_projection()) { |
246 | 260k | auto& projection = *_projection; |
247 | 267k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 6.57k | const auto& input_row_desc = |
249 | 6.57k | i == 0 ? operator_row_desc_before_projection() |
250 | 6.57k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 6.57k | RETURN_IF_ERROR( |
252 | 6.57k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 6.57k | } |
254 | 260k | const auto& final_projection_input_row_desc = |
255 | 260k | projection.intermediate_output_row_descriptors.empty() |
256 | 260k | ? operator_row_desc_before_projection() |
257 | 260k | : projection.intermediate_output_row_descriptors.back(); |
258 | 260k | RETURN_IF_ERROR( |
259 | 260k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 260k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 260k | projection.output_row_descriptor)); |
262 | 260k | } |
263 | | |
264 | 657k | for (auto& conjunct : _conjuncts) { |
265 | 273k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 273k | } |
267 | 657k | if (has_projection()) { |
268 | 261k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 261k | for (auto& projections : _projection->intermediate_projections) { |
270 | 6.57k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 6.57k | } |
272 | 261k | } |
273 | 657k | if (_child && !is_source()) { |
274 | 83.0k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 83.0k | } |
276 | | |
277 | 657k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 657k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 657k | return Status::OK(); |
283 | 657k | } |
284 | | |
285 | 8.04k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 8.04k | if (_child && !is_source()) { |
287 | 786 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 786 | } |
289 | 8.04k | auto result = state->get_local_state_result(operator_id()); |
290 | 8.04k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 8.04k | return result.value()->terminate(state); |
294 | 8.04k | } |
295 | | |
296 | 4.63M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.63M | if (_child && !is_source()) { |
298 | 746k | RETURN_IF_ERROR(_child->close(state)); |
299 | 746k | } |
300 | 4.63M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.63M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.63M | return result.value()->close(state); |
305 | 4.63M | } |
306 | | |
307 | 284k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 284k | _origin_block.clear_column_data( |
309 | 284k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 284k | } |
311 | | |
312 | 806k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 806k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 806k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 806k | return Status::OK(); |
317 | 806k | } |
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 | 284k | Block* output_block) const { |
326 | 284k | auto* local_state = state->get_local_state(operator_id()); |
327 | 284k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 284k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 284k | const size_t rows = origin_block->rows(); |
330 | 284k | if (rows == 0) { |
331 | 153k | return Status::OK(); |
332 | 153k | } |
333 | 131k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 131k | { |
336 | 131k | Block input_block = *origin_block; |
337 | | |
338 | 131k | ColumnsWithTypeAndName new_columns; |
339 | 131k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 3.83k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 3.83k | new_columns.resize(projections.size()); |
345 | 72.2k | for (int i = 0; i < projections.size(); i++) { |
346 | 68.3k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 68.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 | 68.3k | } |
355 | 3.82k | Block tmp_block {new_columns}; |
356 | 3.82k | input_block.swap(tmp_block); |
357 | 3.82k | } |
358 | | |
359 | 131k | 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 | 131k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 131k | output_block, _projection->output_row_descriptor); |
368 | 131k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 131k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 131k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 760k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 629k | ColumnPtr column_ptr; |
374 | 629k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 629k | 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 | 629k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 629k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 629k | if (column_ptr->is_exclusive()) { |
386 | 226k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 403k | } else { |
388 | 403k | shared_columns[i] = std::move(column_ptr); |
389 | 403k | } |
390 | 629k | } |
391 | | |
392 | 131k | scoped_mutable_block.restore(); |
393 | 760k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 629k | if (shared_columns[i]) { |
395 | 403k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 403k | } |
397 | 629k | } |
398 | 131k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 131k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 131k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 131k | return Status::OK(); |
405 | 131k | } |
406 | | |
407 | 4.07M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.07M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.07M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.07M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.07M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.07M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.07M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.07M | return Status::OK(); |
415 | 4.07M | } |
416 | 4.07M | } |
417 | 4.07M | }); |
418 | | |
419 | 4.07M | Status status; |
420 | 4.07M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.07M | Defer defer([&]() { |
422 | 4.07M | if (status.ok()) { |
423 | 4.07M | local_state->update_output_block_counters(*block); |
424 | 4.07M | } |
425 | 4.07M | }); |
426 | 4.07M | if (has_projection()) { |
427 | 284k | local_state->clear_origin_block(); |
428 | 284k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 284k | if (UNLIKELY(!status.ok())) { |
430 | 24 | return status; |
431 | 24 | } |
432 | 284k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 284k | return status; |
434 | 284k | } |
435 | 3.79M | status = get_block(state, block, eos); |
436 | 3.79M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.79M | return status; |
438 | 3.79M | } |
439 | | |
440 | 2.71M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.71M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.62k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.62k | *eos = true; |
444 | 9.62k | } |
445 | | |
446 | 2.71M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.71M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.71M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.71M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.71M | if (op_name == arg_op_name) { |
452 | 2.71M | *eos = true; |
453 | 2.71M | } |
454 | 2.71M | }); |
455 | | |
456 | 2.71M | if (auto rows = block->rows()) { |
457 | 723k | _num_rows_returned += rows; |
458 | 723k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 723k | } |
460 | 2.71M | } |
461 | | |
462 | 31.2k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 31.2k | auto result = state->get_sink_local_state_result(); |
464 | 31.2k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 31.2k | return result.value()->terminate(state); |
468 | 31.2k | } |
469 | | |
470 | 15.5k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 15.5k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 15.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 15.5k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 15.5k | return fmt::to_string(debug_string_buffer); |
476 | 15.5k | } |
477 | | |
478 | 15.5k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 15.5k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 15.5k | } |
481 | | |
482 | 334k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 334k | std::string op_name = "UNKNOWN_SINK"; |
484 | 334k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 335k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 335k | op_name = it->second; |
488 | 335k | } |
489 | 334k | _name = op_name + "_OPERATOR"; |
490 | 334k | return Status::OK(); |
491 | 334k | } |
492 | | |
493 | 286k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 286k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 286k | _nereids_id = tnode.nereids_id; |
496 | 286k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 286k | _name = substr + "_SINK_OPERATOR"; |
498 | 286k | return Status::OK(); |
499 | 286k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.66M | LocalSinkStateInfo& info) { |
504 | 1.66M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.66M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.66M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.66M | return Status::OK(); |
508 | 1.66M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 118k | LocalSinkStateInfo& info) { | 504 | 118k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 118k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 118k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 118k | return Status::OK(); | 508 | 118k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 370k | LocalSinkStateInfo& info) { | 504 | 370k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 370k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 370k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 370k | return Status::OK(); | 508 | 370k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3 | LocalSinkStateInfo& info) { | 504 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3 | return Status::OK(); | 508 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 359 | LocalSinkStateInfo& info) { | 504 | 359 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 359 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 359 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 359 | return Status::OK(); | 508 | 359 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 46.0k | LocalSinkStateInfo& info) { | 504 | 46.0k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 46.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 46.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 46.0k | return Status::OK(); | 508 | 46.0k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 42 | LocalSinkStateInfo& info) { | 504 | 42 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 42 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 42 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 42 | return Status::OK(); | 508 | 42 | } |
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.74k | LocalSinkStateInfo& info) { | 504 | 7.74k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 7.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 7.74k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 7.74k | return Status::OK(); | 508 | 7.74k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_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_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 196k | LocalSinkStateInfo& info) { | 504 | 196k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 196k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 196k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 196k | return Status::OK(); | 508 | 196k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 29 | LocalSinkStateInfo& info) { | 504 | 29 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 29 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 29 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 29 | return Status::OK(); | 508 | 29 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 250k | LocalSinkStateInfo& info) { | 504 | 250k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 250k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 250k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 250k | return Status::OK(); | 508 | 250k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 88.0k | LocalSinkStateInfo& info) { | 504 | 88.0k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 88.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 88.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 88.0k | return Status::OK(); | 508 | 88.0k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 80.8k | LocalSinkStateInfo& info) { | 504 | 80.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 80.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 80.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 80.8k | return Status::OK(); | 508 | 80.8k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 150 | LocalSinkStateInfo& info) { | 504 | 150 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 150 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 150 | return Status::OK(); | 508 | 150 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 473k | LocalSinkStateInfo& info) { | 504 | 473k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 473k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 473k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 473k | return Status::OK(); | 508 | 473k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 5.95k | LocalSinkStateInfo& info) { | 504 | 5.95k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 5.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 5.95k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 5.95k | return Status::OK(); | 508 | 5.95k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.70k | LocalSinkStateInfo& info) { | 504 | 8.70k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.70k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.70k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.70k | return Status::OK(); | 508 | 8.70k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.23k | LocalSinkStateInfo& info) { | 504 | 2.23k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.23k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.23k | return Status::OK(); | 508 | 2.23k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 307 | LocalSinkStateInfo& info) { | 504 | 307 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 307 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 307 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 307 | return Status::OK(); | 508 | 307 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.79k | LocalSinkStateInfo& info) { | 504 | 4.79k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.79k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.79k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.79k | return Status::OK(); | 508 | 4.79k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.56k | LocalSinkStateInfo& info) { | 504 | 2.56k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.56k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.56k | return Status::OK(); | 508 | 2.56k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.61k | LocalSinkStateInfo& info) { | 504 | 2.61k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.61k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.61k | return Status::OK(); | 508 | 2.61k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.48k | LocalSinkStateInfo& info) { | 504 | 2.48k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.48k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.48k | return Status::OK(); | 508 | 2.48k | } |
_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 | 568 | LocalSinkStateInfo& info) { | 504 | 568 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 568 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 568 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 568 | return Status::OK(); | 508 | 568 | } |
_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.30M | 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.30M | } else { |
519 | 1.30M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.30M | ss->id = operator_id(); |
521 | 1.30M | for (auto& dest : dests_id()) { |
522 | 1.29M | ss->related_op_ids.insert(dest); |
523 | 1.29M | } |
524 | 1.30M | return ss; |
525 | 1.30M | } |
526 | 1.30M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 105k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 105k | } else { | 519 | 105k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 105k | ss->id = operator_id(); | 521 | 105k | for (auto& dest : dests_id()) { | 522 | 104k | ss->related_op_ids.insert(dest); | 523 | 104k | } | 524 | 105k | return ss; | 525 | 105k | } | 526 | 105k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 371k | 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 | 371k | } else { | 519 | 371k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 371k | ss->id = operator_id(); | 521 | 371k | for (auto& dest : dests_id()) { | 522 | 370k | ss->related_op_ids.insert(dest); | 523 | 370k | } | 524 | 371k | return ss; | 525 | 371k | } | 526 | 371k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 3 | } else { | 519 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 3 | ss->id = operator_id(); | 521 | 3 | for (auto& dest : dests_id()) { | 522 | 3 | ss->related_op_ids.insert(dest); | 523 | 3 | } | 524 | 3 | return ss; | 525 | 3 | } | 526 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 359 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 359 | } else { | 519 | 359 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 359 | ss->id = operator_id(); | 521 | 359 | for (auto& dest : dests_id()) { | 522 | 358 | ss->related_op_ids.insert(dest); | 523 | 358 | } | 524 | 359 | return ss; | 525 | 359 | } | 526 | 359 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 46.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 46.1k | } else { | 519 | 46.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 46.1k | ss->id = operator_id(); | 521 | 46.1k | for (auto& dest : dests_id()) { | 522 | 45.8k | ss->related_op_ids.insert(dest); | 523 | 45.8k | } | 524 | 46.1k | return ss; | 525 | 46.1k | } | 526 | 46.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 42 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 42 | } else { | 519 | 42 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 42 | ss->id = operator_id(); | 521 | 42 | for (auto& dest : dests_id()) { | 522 | 42 | ss->related_op_ids.insert(dest); | 523 | 42 | } | 524 | 42 | return ss; | 525 | 42 | } | 526 | 42 | } |
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.79k | 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.79k | } else { | 519 | 7.79k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 7.79k | ss->id = operator_id(); | 521 | 7.79k | for (auto& dest : dests_id()) { | 522 | 7.78k | ss->related_op_ids.insert(dest); | 523 | 7.78k | } | 524 | 7.79k | return ss; | 525 | 7.79k | } | 526 | 7.79k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_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_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 197k | 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 | 197k | } else { | 519 | 197k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 197k | ss->id = operator_id(); | 521 | 197k | for (auto& dest : dests_id()) { | 522 | 197k | ss->related_op_ids.insert(dest); | 523 | 197k | } | 524 | 197k | return ss; | 525 | 197k | } | 526 | 197k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 31 | 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 | 31 | } else { | 519 | 31 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 31 | ss->id = operator_id(); | 521 | 31 | for (auto& dest : dests_id()) { | 522 | 31 | ss->related_op_ids.insert(dest); | 523 | 31 | } | 524 | 31 | return ss; | 525 | 31 | } | 526 | 31 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 88.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 | 88.2k | } else { | 519 | 88.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 88.2k | ss->id = operator_id(); | 521 | 88.3k | for (auto& dest : dests_id()) { | 522 | 88.3k | ss->related_op_ids.insert(dest); | 523 | 88.3k | } | 524 | 88.2k | return ss; | 525 | 88.2k | } | 526 | 88.2k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 149 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 149 | } else { | 519 | 149 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 149 | ss->id = operator_id(); | 521 | 149 | for (auto& dest : dests_id()) { | 522 | 149 | ss->related_op_ids.insert(dest); | 523 | 149 | } | 524 | 149 | return ss; | 525 | 149 | } | 526 | 149 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 475k | 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 | 475k | } else { | 519 | 475k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 475k | ss->id = operator_id(); | 521 | 475k | for (auto& dest : dests_id()) { | 522 | 472k | ss->related_op_ids.insert(dest); | 523 | 472k | } | 524 | 475k | return ss; | 525 | 475k | } | 526 | 475k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 5.96k | 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.96k | } else { | 519 | 5.96k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 5.96k | ss->id = operator_id(); | 521 | 5.96k | for (auto& dest : dests_id()) { | 522 | 5.96k | ss->related_op_ids.insert(dest); | 523 | 5.96k | } | 524 | 5.96k | return ss; | 525 | 5.96k | } | 526 | 5.96k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 409 | 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 | 409 | } else { | 519 | 409 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 409 | ss->id = operator_id(); | 521 | 409 | for (auto& dest : dests_id()) { | 522 | 408 | ss->related_op_ids.insert(dest); | 523 | 408 | } | 524 | 409 | return ss; | 525 | 409 | } | 526 | 409 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.61k | 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.61k | } else { | 519 | 2.61k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.61k | ss->id = operator_id(); | 521 | 2.61k | for (auto& dest : dests_id()) { | 522 | 2.61k | ss->related_op_ids.insert(dest); | 523 | 2.61k | } | 524 | 2.61k | return ss; | 525 | 2.61k | } | 526 | 2.61k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.50k | 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.50k | } else { | 519 | 2.50k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.50k | ss->id = operator_id(); | 521 | 2.50k | for (auto& dest : dests_id()) { | 522 | 2.50k | ss->related_op_ids.insert(dest); | 523 | 2.50k | } | 524 | 2.50k | return ss; | 525 | 2.50k | } | 526 | 2.50k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 569 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 569 | } else { | 519 | 569 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 569 | ss->id = operator_id(); | 521 | 569 | for (auto& dest : dests_id()) { | 522 | 563 | ss->related_op_ids.insert(dest); | 523 | 563 | } | 524 | 569 | return ss; | 525 | 569 | } | 526 | 569 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 106 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 106 | } else { | 519 | 106 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 106 | ss->id = operator_id(); | 521 | 106 | for (auto& dest : dests_id()) { | 522 | 106 | ss->related_op_ids.insert(dest); | 523 | 106 | } | 524 | 106 | return ss; | 525 | 106 | } | 526 | 106 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 1.95M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 1.95M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 1.95M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 1.95M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 1.95M | return Status::OK(); |
534 | 1.95M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 69.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 69.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 69.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 69.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 69.7k | return Status::OK(); | 534 | 69.7k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 242k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 242k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 242k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 242k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 242k | return Status::OK(); | 534 | 242k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 131 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 131 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 131 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 131 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 131 | return Status::OK(); | 534 | 131 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.08k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.08k | return Status::OK(); | 534 | 3.08k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.75k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.75k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.75k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.75k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.75k | return Status::OK(); | 534 | 7.75k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.51k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.51k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.51k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.51k | return Status::OK(); | 534 | 7.51k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 22 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 22 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 22 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 22 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 22 | return Status::OK(); | 534 | 22 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 189k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 189k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 189k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 189k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 189k | return Status::OK(); | 534 | 189k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 88.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 88.0k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 88.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 88.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 88.0k | return Status::OK(); | 534 | 88.0k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 81.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 81.1k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 81.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 81.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 81.1k | return Status::OK(); | 534 | 81.1k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 140 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 140 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 140 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 140 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 140 | return Status::OK(); | 534 | 140 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.66k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.66k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.66k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.66k | return Status::OK(); | 534 | 3.66k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 271k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 271k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 271k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 271k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 271k | return Status::OK(); | 534 | 271k | } |
_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.96k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.96k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.96k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.96k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.96k | return Status::OK(); | 534 | 5.96k | } |
_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.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 54.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 54.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 54.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 54.4k | return Status::OK(); | 534 | 54.4k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.70k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.70k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.70k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.70k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.70k | return Status::OK(); | 534 | 5.70k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 308 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 308 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 308 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 308 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 308 | return Status::OK(); | 534 | 308 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.62k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.62k | return Status::OK(); | 534 | 2.62k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.50k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.50k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.50k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.50k | return Status::OK(); | 534 | 2.50k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 327 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 327 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 327 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 327 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 327 | return Status::OK(); | 534 | 327 | } |
_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 | 619k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 619k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 619k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 619k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 619k | return Status::OK(); | 534 | 619k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 14 | return Status::OK(); | 534 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 169 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 169 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 169 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 169 | return Status::OK(); | 534 | 169 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.20k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.20k | return Status::OK(); | 534 | 2.20k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 785 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 785 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 785 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 785 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 785 | return Status::OK(); | 534 | 785 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.13k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.13k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.13k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.13k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.13k | return Status::OK(); | 534 | 1.13k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.34k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.34k | return Status::OK(); | 534 | 7.34k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 277k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 277k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 277k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 277k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 277k | return Status::OK(); | 534 | 277k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.65M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 1.95M | : _num_rows_returned(0), |
542 | 1.95M | _rows_returned_counter(nullptr), |
543 | 1.95M | _parent(parent), |
544 | 1.95M | _state(state), |
545 | 1.95M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 1.96M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 1.96M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 1.96M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 1.96M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 1.96M | _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.96M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 1.96M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 1.96M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 1.96M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 1.96M | if constexpr (!is_fake_shared) { |
560 | 1.14M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 710k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 710k | .first.get() |
563 | 710k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 710k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 710k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 710k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 710k | } else if (info.shared_state) { |
569 | 362k | 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 | 362k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 362k | _dependency = _shared_state->create_source_dependency( |
576 | 362k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 362k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 362k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 362k | } else { |
580 | 67.7k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 8.65k | DCHECK(false); |
582 | 8.65k | } |
583 | 67.7k | } |
584 | 1.14M | } |
585 | | |
586 | 1.96M | 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.96M | _rows_returned_counter = |
591 | 1.96M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 1.96M | _blocks_returned_counter = |
593 | 1.96M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 1.96M | _output_block_bytes_counter = |
595 | 1.96M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 1.96M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 1.96M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 1.96M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 1.96M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 1.96M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 1.96M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 1.96M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 1.96M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 1.96M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 1.96M | _memory_used_counter = |
606 | 1.96M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 1.96M | _common_profile->add_info_string("IsColocate", |
608 | 1.96M | std::to_string(_parent->is_colocated_operator())); |
609 | 1.96M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 1.96M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 1.96M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 1.96M | return Status::OK(); |
613 | 1.96M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 69.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 69.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 69.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 69.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 69.3k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 69.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 69.3k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 69.3k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 69.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 69.3k | if constexpr (!is_fake_shared) { | 560 | 69.3k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 13.1k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 13.1k | .first.get() | 563 | 13.1k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 13.1k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 13.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 13.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 56.1k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 54.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 54.2k | _dependency = _shared_state->create_source_dependency( | 576 | 54.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 54.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 54.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 54.2k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.93k | } | 584 | 69.3k | } | 585 | | | 586 | 69.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 69.3k | _rows_returned_counter = | 591 | 69.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 69.3k | _blocks_returned_counter = | 593 | 69.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 69.3k | _output_block_bytes_counter = | 595 | 69.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 69.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 69.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 69.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 69.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 69.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 69.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 69.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 69.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 69.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 69.3k | _memory_used_counter = | 606 | 69.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 69.3k | _common_profile->add_info_string("IsColocate", | 608 | 69.3k | std::to_string(_parent->is_colocated_operator())); | 609 | 69.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 69.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 69.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 69.3k | return Status::OK(); | 613 | 69.3k | } |
_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 | 197k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 197k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 197k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 197k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 197k | _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 | 197k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 197k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 197k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 197k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 197k | if constexpr (!is_fake_shared) { | 560 | 197k | 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 | 197k | } 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 | 191k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 191k | _dependency = _shared_state->create_source_dependency( | 576 | 191k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 191k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 191k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 191k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 5.42k | } | 584 | 197k | } | 585 | | | 586 | 197k | 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 | 197k | _rows_returned_counter = | 591 | 197k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 197k | _blocks_returned_counter = | 593 | 197k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 197k | _output_block_bytes_counter = | 595 | 197k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 197k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 197k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 197k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 197k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 197k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 197k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 197k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 197k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 197k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 197k | _memory_used_counter = | 606 | 197k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 197k | _common_profile->add_info_string("IsColocate", | 608 | 197k | std::to_string(_parent->is_colocated_operator())); | 609 | 197k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 197k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 197k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 197k | return Status::OK(); | 613 | 197k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 22 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 22 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 22 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 22 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 22 | _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 | 22 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 22 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 22 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 22 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 22 | if constexpr (!is_fake_shared) { | 560 | 22 | 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 | 22 | } 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 | 22 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 22 | _dependency = _shared_state->create_source_dependency( | 576 | 22 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 22 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 22 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 22 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 22 | } | 585 | | | 586 | 22 | 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 | 22 | _rows_returned_counter = | 591 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 22 | _blocks_returned_counter = | 593 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 22 | _output_block_bytes_counter = | 595 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 22 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 22 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 22 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 22 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 22 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 22 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 22 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 22 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 22 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 22 | _memory_used_counter = | 606 | 22 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 22 | _common_profile->add_info_string("IsColocate", | 608 | 22 | std::to_string(_parent->is_colocated_operator())); | 609 | 22 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 22 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 22 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 22 | return Status::OK(); | 613 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.96k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.96k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.96k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.96k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.96k | _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.96k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.96k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.96k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.96k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.96k | if constexpr (!is_fake_shared) { | 560 | 5.96k | 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.96k | } 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.93k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.93k | _dependency = _shared_state->create_source_dependency( | 576 | 5.93k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.93k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.93k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.93k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 28 | } | 584 | 5.96k | } | 585 | | | 586 | 5.96k | 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.96k | _rows_returned_counter = | 591 | 5.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.96k | _blocks_returned_counter = | 593 | 5.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.96k | _output_block_bytes_counter = | 595 | 5.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.96k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.96k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.96k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.96k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.96k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.96k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.96k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.96k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.96k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.96k | _memory_used_counter = | 606 | 5.96k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.96k | _common_profile->add_info_string("IsColocate", | 608 | 5.96k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.96k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.96k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.96k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.96k | return Status::OK(); | 613 | 5.96k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 7.78k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 7.78k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 7.78k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 7.78k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 7.78k | _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.78k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 7.78k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 7.78k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 7.78k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 7.78k | if constexpr (!is_fake_shared) { | 560 | 7.78k | 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.78k | } 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.73k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 7.73k | _dependency = _shared_state->create_source_dependency( | 576 | 7.73k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 7.73k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 7.73k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 7.73k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 55 | } | 584 | 7.78k | } | 585 | | | 586 | 7.78k | 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.78k | _rows_returned_counter = | 591 | 7.78k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 7.78k | _blocks_returned_counter = | 593 | 7.78k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 7.78k | _output_block_bytes_counter = | 595 | 7.78k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 7.78k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 7.78k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 7.78k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 7.78k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 7.78k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 7.78k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 7.78k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 7.78k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 7.78k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 7.78k | _memory_used_counter = | 606 | 7.78k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 7.78k | _common_profile->add_info_string("IsColocate", | 608 | 7.78k | std::to_string(_parent->is_colocated_operator())); | 609 | 7.78k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 7.78k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 7.78k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 7.78k | return Status::OK(); | 613 | 7.78k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 88.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 88.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 88.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 88.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 88.1k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 88.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 88.1k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 88.1k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 88.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 88.1k | if constexpr (!is_fake_shared) { | 560 | 88.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 88.1k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 87.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 87.0k | _dependency = _shared_state->create_source_dependency( | 576 | 87.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 87.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 87.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 87.0k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.07k | } | 584 | 88.1k | } | 585 | | | 586 | 88.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 88.1k | _rows_returned_counter = | 591 | 88.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 88.1k | _blocks_returned_counter = | 593 | 88.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 88.1k | _output_block_bytes_counter = | 595 | 88.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 88.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 88.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 88.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 88.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 88.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 88.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 88.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 88.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 88.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 88.1k | _memory_used_counter = | 606 | 88.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 88.1k | _common_profile->add_info_string("IsColocate", | 608 | 88.1k | std::to_string(_parent->is_colocated_operator())); | 609 | 88.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 88.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 88.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 88.1k | return Status::OK(); | 613 | 88.1k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 81.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 81.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 81.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 81.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 81.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 | 81.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 81.0k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 81.0k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 81.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 81.0k | if constexpr (!is_fake_shared) { | 560 | 81.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 81.1k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 81.1k | .first.get() | 563 | 81.1k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 81.1k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 81.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 81.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 81.0k | } | 585 | | | 586 | 81.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 | 81.0k | _rows_returned_counter = | 591 | 81.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 81.0k | _blocks_returned_counter = | 593 | 81.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 81.0k | _output_block_bytes_counter = | 595 | 81.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 81.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 81.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 81.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 81.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 81.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 81.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 81.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 81.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 81.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 81.0k | _memory_used_counter = | 606 | 81.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 81.0k | _common_profile->add_info_string("IsColocate", | 608 | 81.0k | std::to_string(_parent->is_colocated_operator())); | 609 | 81.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 81.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 81.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 81.0k | return Status::OK(); | 613 | 81.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 140 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 140 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 140 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 140 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 140 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 140 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 140 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 140 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 140 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 140 | if constexpr (!is_fake_shared) { | 560 | 140 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 140 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 140 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 140 | _dependency = _shared_state->create_source_dependency( | 576 | 140 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 140 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 140 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 140 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 140 | } | 585 | | | 586 | 140 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 140 | _rows_returned_counter = | 591 | 140 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 140 | _blocks_returned_counter = | 593 | 140 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 140 | _output_block_bytes_counter = | 595 | 140 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 140 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 140 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 140 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 140 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 140 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 140 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 140 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 140 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 140 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 140 | _memory_used_counter = | 606 | 140 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 140 | _common_profile->add_info_string("IsColocate", | 608 | 140 | std::to_string(_parent->is_colocated_operator())); | 609 | 140 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 140 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 140 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 140 | return Status::OK(); | 613 | 140 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 823k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 823k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 823k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 823k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 823k | _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 | 823k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 823k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 823k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 823k | 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 | 823k | 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 | 823k | _rows_returned_counter = | 591 | 823k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 823k | _blocks_returned_counter = | 593 | 823k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 823k | _output_block_bytes_counter = | 595 | 823k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 823k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 823k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 823k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 823k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 823k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 823k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 823k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 823k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 823k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 823k | _memory_used_counter = | 606 | 823k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 823k | _common_profile->add_info_string("IsColocate", | 608 | 823k | std::to_string(_parent->is_colocated_operator())); | 609 | 823k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 823k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 823k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 823k | return Status::OK(); | 613 | 823k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 54.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 54.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 54.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 54.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 54.4k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 54.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 54.4k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 54.4k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 54.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 54.4k | if constexpr (!is_fake_shared) { | 560 | 54.4k | 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.4k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 3.77k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 3.77k | _dependency = _shared_state->create_source_dependency( | 576 | 3.77k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 3.77k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 3.77k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 50.6k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 50.6k | } | 584 | 54.4k | } | 585 | | | 586 | 54.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 54.4k | _rows_returned_counter = | 591 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 54.4k | _blocks_returned_counter = | 593 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 54.4k | _output_block_bytes_counter = | 595 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 54.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 54.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 54.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 54.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 54.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 54.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 54.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 54.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 54.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 54.4k | _memory_used_counter = | 606 | 54.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 54.4k | _common_profile->add_info_string("IsColocate", | 608 | 54.4k | std::to_string(_parent->is_colocated_operator())); | 609 | 54.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 54.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 54.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 54.4k | return Status::OK(); | 613 | 54.4k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 26 | if constexpr (!is_fake_shared) { | 560 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 26 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 26 | _dependency = _shared_state->create_source_dependency( | 576 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 26 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 26 | } | 585 | | | 586 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 26 | _rows_returned_counter = | 591 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 26 | _blocks_returned_counter = | 593 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 26 | _output_block_bytes_counter = | 595 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 26 | _memory_used_counter = | 606 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 26 | _common_profile->add_info_string("IsColocate", | 608 | 26 | std::to_string(_parent->is_colocated_operator())); | 609 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 26 | return Status::OK(); | 613 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.70k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.70k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.70k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.70k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.70k | _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.70k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.70k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.70k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.70k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.70k | if constexpr (!is_fake_shared) { | 560 | 5.70k | 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.70k | } 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.70k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.70k | _dependency = _shared_state->create_source_dependency( | 576 | 5.70k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.70k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.70k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.70k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 3 | } | 584 | 5.70k | } | 585 | | | 586 | 5.70k | 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.70k | _rows_returned_counter = | 591 | 5.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.70k | _blocks_returned_counter = | 593 | 5.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.70k | _output_block_bytes_counter = | 595 | 5.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.70k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.70k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.70k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.70k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.70k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.70k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.70k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.70k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.70k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.70k | _memory_used_counter = | 606 | 5.70k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.70k | _common_profile->add_info_string("IsColocate", | 608 | 5.70k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.70k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.70k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.70k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.70k | return Status::OK(); | 613 | 5.70k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 410 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 410 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 410 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 410 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 410 | _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 | 410 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 410 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 410 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 410 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 410 | if constexpr (!is_fake_shared) { | 560 | 410 | 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 | 410 | } 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 | 409 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 409 | _dependency = _shared_state->create_source_dependency( | 576 | 409 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 409 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 409 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 409 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1 | } | 584 | 410 | } | 585 | | | 586 | 410 | 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 | 410 | _rows_returned_counter = | 591 | 410 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 410 | _blocks_returned_counter = | 593 | 410 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 410 | _output_block_bytes_counter = | 595 | 410 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 410 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 410 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 410 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 410 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 410 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 410 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 410 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 410 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 410 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 410 | _memory_used_counter = | 606 | 410 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 410 | _common_profile->add_info_string("IsColocate", | 608 | 410 | std::to_string(_parent->is_colocated_operator())); | 609 | 410 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 410 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 410 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 410 | return Status::OK(); | 613 | 410 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.16k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.16k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.16k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.16k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.16k | _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.16k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.16k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.16k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.16k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.16k | if constexpr (!is_fake_shared) { | 560 | 5.16k | 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.16k | } 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.13k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.13k | _dependency = _shared_state->create_source_dependency( | 576 | 5.13k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.13k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.13k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.13k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 30 | } | 584 | 5.16k | } | 585 | | | 586 | 5.16k | 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.16k | _rows_returned_counter = | 591 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.16k | _blocks_returned_counter = | 593 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.16k | _output_block_bytes_counter = | 595 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.16k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.16k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.16k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.16k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.16k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.16k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.16k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.16k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.16k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.16k | _memory_used_counter = | 606 | 5.16k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.16k | _common_profile->add_info_string("IsColocate", | 608 | 5.16k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.16k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.16k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.16k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.16k | return Status::OK(); | 613 | 5.16k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 624k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 624k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 624k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 624k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 624k | _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 | 624k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 624k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 624k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 624k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 624k | if constexpr (!is_fake_shared) { | 560 | 624k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 615k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 615k | .first.get() | 563 | 615k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 615k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 615k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 615k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 615k | } else if (info.shared_state) { | 569 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | 0 | DCHECK(false); | 571 | 0 | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.65k | } else { | 580 | 8.65k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 8.65k | DCHECK(false); | 582 | 8.65k | } | 583 | 8.65k | } | 584 | 624k | } | 585 | | | 586 | 624k | 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 | 624k | _rows_returned_counter = | 591 | 624k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 624k | _blocks_returned_counter = | 593 | 624k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 624k | _output_block_bytes_counter = | 595 | 624k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 624k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 624k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 624k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 624k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 624k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 624k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 624k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 624k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 624k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 624k | _memory_used_counter = | 606 | 624k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 624k | _common_profile->add_info_string("IsColocate", | 608 | 624k | std::to_string(_parent->is_colocated_operator())); | 609 | 624k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 624k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 624k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 624k | return Status::OK(); | 613 | 624k | } |
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 | 1.98M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 1.98M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.28M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 304k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 304k | } |
621 | 1.98M | if (_parent->has_projection()) { |
622 | 379k | const auto& projection = *_parent->_projection; |
623 | 379k | _projections.resize(projection.projections.size()); |
624 | 2.35M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.97M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.97M | } |
627 | 379k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 395k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 15.9k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 218k | 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 | 15.9k | } |
635 | 379k | } |
636 | 1.98M | return Status::OK(); |
637 | 1.98M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 70.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 70.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 72.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.32k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.32k | } | 621 | 70.8k | if (_parent->has_projection()) { | 622 | 70.8k | const auto& projection = *_parent->_projection; | 623 | 70.8k | _projections.resize(projection.projections.size()); | 624 | 378k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 307k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 307k | } | 627 | 70.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 77.7k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 6.87k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 159k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 152k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 152k | state, _intermediate_projections[i][j])); | 633 | 152k | } | 634 | 6.87k | } | 635 | 70.8k | } | 636 | 70.8k | return Status::OK(); | 637 | 70.8k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 198k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 198k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 198k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 198k | if (_parent->has_projection()) { | 622 | 80 | const auto& projection = *_parent->_projection; | 623 | 80 | _projections.resize(projection.projections.size()); | 624 | 405 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 80 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 80 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 80 | } | 636 | 198k | return Status::OK(); | 637 | 198k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 22 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 22 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 22 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 22 | 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 | 22 | return Status::OK(); | 637 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.97k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.97k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.04k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 78 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 78 | } | 621 | 5.97k | if (_parent->has_projection()) { | 622 | 5.97k | const auto& projection = *_parent->_projection; | 623 | 5.97k | _projections.resize(projection.projections.size()); | 624 | 27.7k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 21.7k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 21.7k | } | 627 | 5.97k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 5.99k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 23 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 202 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 179 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 179 | state, _intermediate_projections[i][j])); | 633 | 179 | } | 634 | 23 | } | 635 | 5.97k | } | 636 | 5.97k | return Status::OK(); | 637 | 5.97k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 7.80k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 7.80k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.51k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 705 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 705 | } | 621 | 7.80k | if (_parent->has_projection()) { | 622 | 4.32k | const auto& projection = *_parent->_projection; | 623 | 4.32k | _projections.resize(projection.projections.size()); | 624 | 17.6k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 13.2k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 13.2k | } | 627 | 4.32k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.40k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 82 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 609 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 527 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 527 | state, _intermediate_projections[i][j])); | 633 | 527 | } | 634 | 82 | } | 635 | 4.32k | } | 636 | 7.80k | return Status::OK(); | 637 | 7.80k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 88.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 88.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 89.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.40k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.40k | } | 621 | 88.3k | if (_parent->has_projection()) { | 622 | 29.8k | const auto& projection = *_parent->_projection; | 623 | 29.8k | _projections.resize(projection.projections.size()); | 624 | 274k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 244k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 244k | } | 627 | 29.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 30.0k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 175 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.21k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.04k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.04k | state, _intermediate_projections[i][j])); | 633 | 1.04k | } | 634 | 175 | } | 635 | 29.8k | } | 636 | 88.3k | return Status::OK(); | 637 | 88.3k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 81.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 81.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 81.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 47 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 47 | } | 621 | 81.1k | if (_parent->has_projection()) { | 622 | 276 | const auto& projection = *_parent->_projection; | 623 | 276 | _projections.resize(projection.projections.size()); | 624 | 1.18k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 909 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 909 | } | 627 | 276 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 277 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 1 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 10 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 10 | state, _intermediate_projections[i][j])); | 633 | 10 | } | 634 | 1 | } | 635 | 276 | } | 636 | 81.1k | return Status::OK(); | 637 | 81.1k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 144 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 144 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 144 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 144 | if (_parent->has_projection()) { | 622 | 130 | const auto& projection = *_parent->_projection; | 623 | 130 | _projections.resize(projection.projections.size()); | 624 | 390 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 260 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 260 | } | 627 | 130 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 130 | 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 | 130 | } | 636 | 144 | return Status::OK(); | 637 | 144 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 831k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 831k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.13M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 300k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 300k | } | 621 | 831k | if (_parent->has_projection()) { | 622 | 256k | const auto& projection = *_parent->_projection; | 623 | 256k | _projections.resize(projection.projections.size()); | 624 | 1.54M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.28M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.28M | } | 627 | 256k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 264k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 8.61k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 52.3k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 43.7k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 43.7k | state, _intermediate_projections[i][j])); | 633 | 43.7k | } | 634 | 8.61k | } | 635 | 256k | } | 636 | 831k | return Status::OK(); | 637 | 831k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 54.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 54.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 54.6k | 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.6k | if (_parent->has_projection()) { | 622 | 11.3k | const auto& projection = *_parent->_projection; | 623 | 11.3k | _projections.resize(projection.projections.size()); | 624 | 110k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 99.4k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 99.4k | } | 627 | 11.3k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.5k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 204 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 4.19k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 3.98k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 3.98k | state, _intermediate_projections[i][j])); | 633 | 3.98k | } | 634 | 204 | } | 635 | 11.3k | } | 636 | 54.6k | return Status::OK(); | 637 | 54.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.68k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.68k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.49k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 811 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 811 | } | 621 | 5.68k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 5.68k | return Status::OK(); | 637 | 5.68k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 410 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 410 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 410 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 410 | 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 | 410 | return Status::OK(); | 637 | 410 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.15k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.15k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.15k | 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.15k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 228 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 168 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 168 | } | 627 | 60 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 60 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 60 | } | 636 | 5.15k | return Status::OK(); | 637 | 5.15k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 630k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 630k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 630k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 630k | 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 | 630k | return Status::OK(); | 637 | 630k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 169 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 169 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 176 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 169 | if (_parent->has_projection()) { | 622 | 166 | const auto& projection = *_parent->_projection; | 623 | 166 | _projections.resize(projection.projections.size()); | 624 | 491 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 166 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 169 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 3 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 8 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 8 | state, _intermediate_projections[i][j])); | 633 | 8 | } | 634 | 3 | } | 635 | 166 | } | 636 | 169 | return Status::OK(); | 637 | 169 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 8.04k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 8.04k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 8.04k | _terminated = true; |
645 | 8.04k | return Status::OK(); |
646 | 8.04k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 432 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 432 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 432 | _terminated = true; | 645 | 432 | return Status::OK(); | 646 | 432 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 14 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 14 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 14 | _terminated = true; | 645 | 14 | return Status::OK(); | 646 | 14 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 38 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 38 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 38 | _terminated = true; | 645 | 38 | return Status::OK(); | 646 | 38 | } |
_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 | 20 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 20 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 20 | _terminated = true; | 645 | 20 | return Status::OK(); | 646 | 20 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 6.41k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 6.41k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 6.41k | _terminated = true; | 645 | 6.41k | return Status::OK(); | 646 | 6.41k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 29 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 29 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 29 | _terminated = true; | 645 | 29 | return Status::OK(); | 646 | 29 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 3 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 3 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 3 | _terminated = true; | 645 | 3 | return Status::OK(); | 646 | 3 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 2 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 2 | _terminated = true; | 645 | 2 | return Status::OK(); | 646 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.06k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.06k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1.06k | _terminated = true; | 645 | 1.06k | return Status::OK(); | 646 | 1.06k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 30 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 30 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 30 | _terminated = true; | 645 | 30 | return Status::OK(); | 646 | 30 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.20M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.20M | if (_closed) { |
651 | 225k | return Status::OK(); |
652 | 225k | } |
653 | 1.97M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.14M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.14M | } |
656 | 1.97M | _closed = true; |
657 | 1.97M | return Status::OK(); |
658 | 2.20M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 70.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 70.7k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 70.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 70.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 70.7k | } | 656 | 70.7k | _closed = true; | 657 | 70.7k | return Status::OK(); | 658 | 70.7k | } |
_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 | 392k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 392k | if (_closed) { | 651 | 196k | return Status::OK(); | 652 | 196k | } | 653 | 196k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 196k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 196k | } | 656 | 196k | _closed = true; | 657 | 196k | return Status::OK(); | 658 | 392k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 22 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 22 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 22 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 22 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 22 | } | 656 | 22 | _closed = true; | 657 | 22 | return Status::OK(); | 658 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.96k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.96k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.96k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.96k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.96k | } | 656 | 5.96k | _closed = true; | 657 | 5.96k | return Status::OK(); | 658 | 5.96k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 15.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 15.7k | if (_closed) { | 651 | 7.94k | return Status::OK(); | 652 | 7.94k | } | 653 | 7.79k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 7.79k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 7.79k | } | 656 | 7.79k | _closed = true; | 657 | 7.79k | return Status::OK(); | 658 | 15.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 88.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 88.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 88.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 88.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 88.1k | } | 656 | 88.1k | _closed = true; | 657 | 88.1k | return Status::OK(); | 658 | 88.1k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 80.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 80.8k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 80.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 80.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 80.8k | } | 656 | 80.8k | _closed = true; | 657 | 80.8k | return Status::OK(); | 658 | 80.8k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 139 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 139 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 139 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 139 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 139 | } | 656 | 139 | _closed = true; | 657 | 139 | return Status::OK(); | 658 | 139 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 846k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 846k | if (_closed) { | 651 | 14.4k | return Status::OK(); | 652 | 14.4k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 832k | _closed = true; | 657 | 832k | return Status::OK(); | 658 | 846k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 54.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 54.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 54.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 54.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 54.6k | } | 656 | 54.6k | _closed = true; | 657 | 54.6k | return Status::OK(); | 658 | 54.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 28 | if (_closed) { | 651 | 14 | return Status::OK(); | 652 | 14 | } | 653 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 14 | } | 656 | 14 | _closed = true; | 657 | 14 | return Status::OK(); | 658 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.68k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.68k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.68k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.68k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.68k | } | 656 | 5.68k | _closed = true; | 657 | 5.68k | return Status::OK(); | 658 | 5.68k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 615 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 615 | if (_closed) { | 651 | 307 | return Status::OK(); | 652 | 307 | } | 653 | 308 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 308 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 308 | } | 656 | 308 | _closed = true; | 657 | 308 | return Status::OK(); | 658 | 615 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.5k | if (_closed) { | 651 | 5.43k | return Status::OK(); | 652 | 5.43k | } | 653 | 5.14k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.14k | } | 656 | 5.14k | _closed = true; | 657 | 5.14k | return Status::OK(); | 658 | 10.5k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 631k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 631k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 631k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 631k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 631k | } | 656 | 631k | _closed = true; | 657 | 631k | return Status::OK(); | 658 | 631k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 337 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 337 | if (_closed) { | 651 | 177 | return Status::OK(); | 652 | 177 | } | 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 | 337 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.66M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.66M | _operator_profile = |
664 | 1.66M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.66M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.66M | _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.66M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.66M | _operator_profile->add_child(_common_profile, true); |
673 | 1.66M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.66M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.66M | _wait_for_finish_dependency_timer = |
677 | 1.66M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.66M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.66M | if constexpr (!is_fake_shared) { |
680 | 1.19M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.19M | info.shared_state_map.end()) { |
682 | 346k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 251k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 251k | } |
685 | 346k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 346k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 346k | ? 0 |
688 | 346k | : info.task_idx] |
689 | 346k | .get(); |
690 | 346k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 846k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 846k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 846k | _dependency = _shared_state->create_sink_dependency( |
697 | 846k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 846k | } |
699 | 1.19M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.19M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.19M | } |
702 | | |
703 | 1.66M | 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.66M | _rows_input_counter = |
708 | 1.66M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.66M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.66M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.66M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.66M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.66M | _memory_used_counter = |
714 | 1.66M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.66M | _common_profile->add_info_string("IsColocate", |
716 | 1.66M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.66M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.66M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.66M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.66M | return Status::OK(); |
721 | 1.66M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 118k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 118k | _operator_profile = | 664 | 118k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 118k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 118k | _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 | 118k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 118k | _operator_profile->add_child(_common_profile, true); | 673 | 118k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 118k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 118k | _wait_for_finish_dependency_timer = | 677 | 118k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 118k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 118k | if constexpr (!is_fake_shared) { | 680 | 118k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 118k | 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.3k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 13.3k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 13.3k | ? 0 | 688 | 13.3k | : info.task_idx] | 689 | 13.3k | .get(); | 690 | 13.3k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 105k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 105k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 105k | _dependency = _shared_state->create_sink_dependency( | 697 | 105k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 105k | } | 699 | 118k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 118k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 118k | } | 702 | | | 703 | 118k | 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 | 118k | _rows_input_counter = | 708 | 118k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 118k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 118k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 118k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 118k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 118k | _memory_used_counter = | 714 | 118k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 118k | _common_profile->add_info_string("IsColocate", | 716 | 118k | std::to_string(_parent->is_colocated_operator())); | 717 | 118k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 118k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 118k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 118k | return Status::OK(); | 721 | 118k | } |
_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 | 197k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 197k | _operator_profile = | 664 | 197k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 197k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 197k | _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 | 197k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 197k | _operator_profile->add_child(_common_profile, true); | 673 | 197k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 197k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 197k | _wait_for_finish_dependency_timer = | 677 | 197k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 197k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 197k | if constexpr (!is_fake_shared) { | 680 | 197k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 197k | 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 | 197k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 197k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 197k | _dependency = _shared_state->create_sink_dependency( | 697 | 197k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 197k | } | 699 | 197k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 197k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 197k | } | 702 | | | 703 | 197k | 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 | 197k | _rows_input_counter = | 708 | 197k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 197k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 197k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 197k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 197k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 197k | _memory_used_counter = | 714 | 197k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 197k | _common_profile->add_info_string("IsColocate", | 716 | 197k | std::to_string(_parent->is_colocated_operator())); | 717 | 197k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 197k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 197k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 197k | return Status::OK(); | 721 | 197k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 29 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 29 | _operator_profile = | 664 | 29 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 29 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 29 | _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 | 29 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 29 | _operator_profile->add_child(_common_profile, true); | 673 | 29 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 29 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 29 | _wait_for_finish_dependency_timer = | 677 | 29 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 29 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 29 | if constexpr (!is_fake_shared) { | 680 | 29 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 29 | 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 | 29 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 29 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 29 | _dependency = _shared_state->create_sink_dependency( | 697 | 29 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 29 | } | 699 | 29 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 29 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 29 | } | 702 | | | 703 | 29 | 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 | 29 | _rows_input_counter = | 708 | 29 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 29 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 29 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 29 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 29 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 29 | _memory_used_counter = | 714 | 29 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 29 | _common_profile->add_info_string("IsColocate", | 716 | 29 | std::to_string(_parent->is_colocated_operator())); | 717 | 29 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 29 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 29 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 29 | return Status::OK(); | 721 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 5.96k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 5.96k | _operator_profile = | 664 | 5.96k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 5.96k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 5.96k | _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.96k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 5.96k | _operator_profile->add_child(_common_profile, true); | 673 | 5.96k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 5.96k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 5.96k | _wait_for_finish_dependency_timer = | 677 | 5.96k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 5.96k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 5.96k | if constexpr (!is_fake_shared) { | 680 | 5.96k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 5.96k | 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.96k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 5.96k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 5.96k | _dependency = _shared_state->create_sink_dependency( | 697 | 5.96k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 5.96k | } | 699 | 5.96k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 5.96k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 5.96k | } | 702 | | | 703 | 5.96k | 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.96k | _rows_input_counter = | 708 | 5.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 5.96k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 5.96k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 5.96k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 5.96k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 5.96k | _memory_used_counter = | 714 | 5.96k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 5.96k | _common_profile->add_info_string("IsColocate", | 716 | 5.96k | std::to_string(_parent->is_colocated_operator())); | 717 | 5.96k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 5.96k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 5.96k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 5.96k | return Status::OK(); | 721 | 5.96k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 7.79k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 7.79k | _operator_profile = | 664 | 7.79k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 7.79k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 7.79k | _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.79k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 7.79k | _operator_profile->add_child(_common_profile, true); | 673 | 7.79k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 7.79k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 7.79k | _wait_for_finish_dependency_timer = | 677 | 7.79k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 7.79k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 7.79k | if constexpr (!is_fake_shared) { | 680 | 7.79k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 7.79k | 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.79k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 7.79k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 7.79k | _dependency = _shared_state->create_sink_dependency( | 697 | 7.79k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 7.79k | } | 699 | 7.79k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 7.79k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 7.79k | } | 702 | | | 703 | 7.79k | 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.79k | _rows_input_counter = | 708 | 7.79k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 7.79k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 7.79k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 7.79k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 7.79k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 7.79k | _memory_used_counter = | 714 | 7.79k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 7.79k | _common_profile->add_info_string("IsColocate", | 716 | 7.79k | std::to_string(_parent->is_colocated_operator())); | 717 | 7.79k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 7.79k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 7.79k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 7.79k | return Status::OK(); | 721 | 7.79k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 88.2k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 88.2k | _operator_profile = | 664 | 88.2k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 88.2k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 88.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 | 88.2k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 88.2k | _operator_profile->add_child(_common_profile, true); | 673 | 88.2k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 88.2k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 88.2k | _wait_for_finish_dependency_timer = | 677 | 88.2k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 88.2k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 88.2k | if constexpr (!is_fake_shared) { | 680 | 88.2k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 88.2k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 88.2k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 88.2k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 88.2k | _dependency = _shared_state->create_sink_dependency( | 697 | 88.2k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 88.2k | } | 699 | 88.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 88.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 88.2k | } | 702 | | | 703 | 88.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 | 88.2k | _rows_input_counter = | 708 | 88.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 88.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 88.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 88.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 88.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 88.2k | _memory_used_counter = | 714 | 88.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 88.2k | _common_profile->add_info_string("IsColocate", | 716 | 88.2k | std::to_string(_parent->is_colocated_operator())); | 717 | 88.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 88.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 88.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 88.2k | return Status::OK(); | 721 | 88.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 81.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 81.1k | _operator_profile = | 664 | 81.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 81.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 81.1k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 81.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 81.1k | _operator_profile->add_child(_common_profile, true); | 673 | 81.1k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 81.1k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 81.1k | _wait_for_finish_dependency_timer = | 677 | 81.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 81.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 81.1k | if constexpr (!is_fake_shared) { | 680 | 81.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 81.1k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 81.1k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 81.1k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 81.1k | ? 0 | 688 | 81.1k | : info.task_idx] | 689 | 81.1k | .get(); | 690 | 81.1k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 81.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 81.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 81.1k | } | 702 | | | 703 | 81.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 81.1k | _rows_input_counter = | 708 | 81.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 81.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 81.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 81.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 81.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 81.1k | _memory_used_counter = | 714 | 81.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 81.1k | _common_profile->add_info_string("IsColocate", | 716 | 81.1k | std::to_string(_parent->is_colocated_operator())); | 717 | 81.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 81.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 81.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 81.1k | return Status::OK(); | 721 | 81.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 150 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 150 | _operator_profile = | 664 | 150 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 150 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 150 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 150 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 150 | _operator_profile->add_child(_common_profile, true); | 673 | 150 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 150 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 150 | _wait_for_finish_dependency_timer = | 677 | 150 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 150 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 150 | if constexpr (!is_fake_shared) { | 680 | 150 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 150 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 150 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 150 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 150 | _dependency = _shared_state->create_sink_dependency( | 697 | 150 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 150 | } | 699 | 150 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 150 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 150 | } | 702 | | | 703 | 150 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 150 | _rows_input_counter = | 708 | 150 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 150 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 150 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 150 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 150 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 150 | _memory_used_counter = | 714 | 150 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 150 | _common_profile->add_info_string("IsColocate", | 716 | 150 | std::to_string(_parent->is_colocated_operator())); | 717 | 150 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 150 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 150 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 150 | return Status::OK(); | 721 | 150 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 476k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 476k | _operator_profile = | 664 | 476k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 476k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 476k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 476k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 476k | _operator_profile->add_child(_common_profile, true); | 673 | 476k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 476k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 476k | _wait_for_finish_dependency_timer = | 677 | 476k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 476k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | | 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 | 476k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 476k | _rows_input_counter = | 708 | 476k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 476k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 476k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 476k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 476k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 476k | _memory_used_counter = | 714 | 476k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 476k | _common_profile->add_info_string("IsColocate", | 716 | 476k | std::to_string(_parent->is_colocated_operator())); | 717 | 476k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 476k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 476k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 476k | return Status::OK(); | 721 | 476k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.73k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.73k | _operator_profile = | 664 | 8.73k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.73k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.73k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.73k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.73k | _operator_profile->add_child(_common_profile, true); | 673 | 8.73k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.73k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.73k | _wait_for_finish_dependency_timer = | 677 | 8.73k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.73k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.73k | if constexpr (!is_fake_shared) { | 680 | 8.73k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.73k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.73k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.73k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.73k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.73k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.73k | } | 699 | 8.73k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.73k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.73k | } | 702 | | | 703 | 8.73k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.73k | _rows_input_counter = | 708 | 8.73k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.73k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.73k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.73k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.73k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.73k | _memory_used_counter = | 714 | 8.73k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.73k | _common_profile->add_info_string("IsColocate", | 716 | 8.73k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.73k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.73k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.73k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.73k | return Status::OK(); | 721 | 8.73k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 410 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 410 | _operator_profile = | 664 | 410 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 410 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 410 | _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 | 410 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 410 | _operator_profile->add_child(_common_profile, true); | 673 | 410 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 410 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 410 | _wait_for_finish_dependency_timer = | 677 | 410 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 410 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 410 | if constexpr (!is_fake_shared) { | 680 | 410 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 410 | 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 | 410 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 410 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 410 | _dependency = _shared_state->create_sink_dependency( | 697 | 410 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 410 | } | 699 | 410 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 410 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 410 | } | 702 | | | 703 | 410 | 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 | 410 | _rows_input_counter = | 708 | 410 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 410 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 410 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 410 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 410 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 410 | _memory_used_counter = | 714 | 410 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 410 | _common_profile->add_info_string("IsColocate", | 716 | 410 | std::to_string(_parent->is_colocated_operator())); | 717 | 410 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 410 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 410 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 410 | return Status::OK(); | 721 | 410 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.23k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.23k | _operator_profile = | 664 | 2.23k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.23k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.23k | _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.23k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.23k | _operator_profile->add_child(_common_profile, true); | 673 | 2.23k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.23k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.23k | _wait_for_finish_dependency_timer = | 677 | 2.23k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.23k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.23k | if constexpr (!is_fake_shared) { | 680 | 2.23k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.23k | 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.23k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.23k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.23k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.23k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.23k | } | 699 | 2.23k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.23k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.23k | } | 702 | | | 703 | 2.23k | 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.23k | _rows_input_counter = | 708 | 2.23k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.23k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.23k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.23k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.23k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.23k | _memory_used_counter = | 714 | 2.23k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.23k | _common_profile->add_info_string("IsColocate", | 716 | 2.23k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.23k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.23k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.23k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.23k | return Status::OK(); | 721 | 2.23k | } |
_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 | 251k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 251k | _operator_profile = | 664 | 251k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 251k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 251k | _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 | 251k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 251k | _operator_profile->add_child(_common_profile, true); | 673 | 251k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 251k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 251k | _wait_for_finish_dependency_timer = | 677 | 251k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 251k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 251k | if constexpr (!is_fake_shared) { | 680 | 251k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 251k | info.shared_state_map.end()) { | 682 | 251k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 251k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 251k | } | 685 | 251k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 251k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 251k | ? 0 | 688 | 251k | : info.task_idx] | 689 | 251k | .get(); | 690 | 251k | _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 | 251k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 251k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 251k | } | 702 | | | 703 | 251k | 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 | 251k | _rows_input_counter = | 708 | 251k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 251k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 251k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 251k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 251k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 251k | _memory_used_counter = | 714 | 251k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 251k | _common_profile->add_info_string("IsColocate", | 716 | 251k | std::to_string(_parent->is_colocated_operator())); | 717 | 251k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 251k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 251k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 251k | return Status::OK(); | 721 | 251k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 418k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 418k | _operator_profile = | 664 | 418k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 418k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 418k | _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 | 418k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 418k | _operator_profile->add_child(_common_profile, true); | 673 | 418k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 418k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 418k | _wait_for_finish_dependency_timer = | 677 | 418k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 418k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 418k | if constexpr (!is_fake_shared) { | 680 | 418k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 418k | 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 | 418k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 418k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 418k | _dependency = _shared_state->create_sink_dependency( | 697 | 418k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 418k | } | 699 | 418k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 418k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 418k | } | 702 | | | 703 | 418k | 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 | 418k | _rows_input_counter = | 708 | 418k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 418k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 418k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 418k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 418k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 418k | _memory_used_counter = | 714 | 418k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 418k | _common_profile->add_info_string("IsColocate", | 716 | 418k | std::to_string(_parent->is_colocated_operator())); | 717 | 418k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 418k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 418k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 418k | return Status::OK(); | 721 | 418k | } |
_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.67M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.67M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.67M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.19M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.19M | } |
731 | 1.67M | _closed = true; |
732 | 1.67M | return Status::OK(); |
733 | 1.67M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 118k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 118k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 118k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 118k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 118k | } | 731 | 118k | _closed = true; | 732 | 118k | return Status::OK(); | 733 | 118k | } |
_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 | 197k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 197k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 197k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 197k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 197k | } | 731 | 197k | _closed = true; | 732 | 197k | return Status::OK(); | 733 | 197k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 20 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 20 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 18 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 18 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 18 | } | 731 | 18 | _closed = true; | 732 | 18 | return Status::OK(); | 733 | 20 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 5.94k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 5.94k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 5.94k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 5.94k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 5.94k | } | 731 | 5.94k | _closed = true; | 732 | 5.94k | return Status::OK(); | 733 | 5.94k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 7.78k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 7.78k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 7.78k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 7.78k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 7.78k | } | 731 | 7.78k | _closed = true; | 732 | 7.78k | return Status::OK(); | 733 | 7.78k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 87.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 87.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 87.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 87.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 87.9k | } | 731 | 87.9k | _closed = true; | 732 | 87.9k | return Status::OK(); | 733 | 87.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 80.8k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 80.8k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 80.8k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 80.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 80.8k | } | 731 | 80.8k | _closed = true; | 732 | 80.8k | return Status::OK(); | 733 | 80.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 139 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 139 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 139 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 139 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 139 | } | 731 | 139 | _closed = true; | 732 | 139 | return Status::OK(); | 733 | 139 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 479k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 479k | 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 | 479k | _closed = true; | 732 | 479k | return Status::OK(); | 733 | 479k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.74k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.74k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.74k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.74k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.74k | } | 731 | 8.74k | _closed = true; | 732 | 8.74k | return Status::OK(); | 733 | 8.74k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 307 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 307 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 307 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 307 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 307 | } | 731 | 307 | _closed = true; | 732 | 307 | return Status::OK(); | 733 | 307 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.23k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.23k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.23k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.23k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.23k | } | 731 | 2.23k | _closed = true; | 732 | 2.23k | return Status::OK(); | 733 | 2.23k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.5k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.5k | } | 731 | 12.5k | _closed = true; | 732 | 12.5k | return Status::OK(); | 733 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 253k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 253k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 253k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 253k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 253k | } | 731 | 253k | _closed = true; | 732 | 253k | return Status::OK(); | 733 | 253k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 421k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 421k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 421k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 421k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 421k | } | 731 | 421k | _closed = true; | 732 | 421k | return Status::OK(); | 733 | 421k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 14 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 14 | } | 731 | 14 | _closed = true; | 732 | 14 | return Status::OK(); | 733 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 338 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 338 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 338 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 338 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 338 | } | 731 | 338 | _closed = true; | 732 | 338 | return Status::OK(); | 733 | 338 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 7.69k | bool* eos) { |
738 | 7.69k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 7.69k | return pull(state, block, eos); |
740 | 7.69k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 37 | bool* eos) { | 738 | 37 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 37 | return pull(state, block, eos); | 740 | 37 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 7.65k | bool* eos) { | 738 | 7.65k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 7.65k | return pull(state, block, eos); | 740 | 7.65k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 524k | bool* eos) { |
745 | 524k | auto& local_state = get_local_state(state); |
746 | 524k | if (need_more_input_data(state)) { |
747 | 493k | local_state._child_block->clear_column_data( |
748 | 493k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 493k | .num_materialized_slots()); |
750 | 493k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 493k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 493k | *eos = local_state._child_eos; |
753 | 493k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 79.0k | return Status::OK(); |
755 | 79.0k | } |
756 | 414k | { |
757 | 414k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 414k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 414k | } |
760 | 414k | } |
761 | | |
762 | 445k | if (!need_more_input_data(state)) { |
763 | 423k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 423k | bool new_eos = false; |
765 | 423k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 423k | if (new_eos) { |
767 | 345k | *eos = true; |
768 | 345k | } else if (!need_more_input_data(state)) { |
769 | 22.0k | *eos = false; |
770 | 22.0k | } |
771 | 423k | } |
772 | 445k | return Status::OK(); |
773 | 445k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 144k | bool* eos) { | 745 | 144k | auto& local_state = get_local_state(state); | 746 | 144k | if (need_more_input_data(state)) { | 747 | 125k | local_state._child_block->clear_column_data( | 748 | 125k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 125k | .num_materialized_slots()); | 750 | 125k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 125k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 125k | *eos = local_state._child_eos; | 753 | 125k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 39.4k | return Status::OK(); | 755 | 39.4k | } | 756 | 86.1k | { | 757 | 86.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 86.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 86.1k | } | 760 | 86.1k | } | 761 | | | 762 | 104k | if (!need_more_input_data(state)) { | 763 | 104k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 104k | bool new_eos = false; | 765 | 104k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 104k | if (new_eos) { | 767 | 46.4k | *eos = true; | 768 | 58.2k | } else if (!need_more_input_data(state)) { | 769 | 9.33k | *eos = false; | 770 | 9.33k | } | 771 | 104k | } | 772 | 104k | return Status::OK(); | 773 | 104k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.71k | bool* eos) { | 745 | 4.71k | auto& local_state = get_local_state(state); | 746 | 4.71k | if (need_more_input_data(state)) { | 747 | 2.71k | local_state._child_block->clear_column_data( | 748 | 2.71k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.71k | .num_materialized_slots()); | 750 | 2.71k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.71k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.71k | *eos = local_state._child_eos; | 753 | 2.71k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 733 | return Status::OK(); | 755 | 733 | } | 756 | 1.98k | { | 757 | 1.98k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.98k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.98k | } | 760 | 1.98k | } | 761 | | | 762 | 3.98k | if (!need_more_input_data(state)) { | 763 | 3.98k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.98k | bool new_eos = false; | 765 | 3.98k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.98k | if (new_eos) { | 767 | 1.38k | *eos = true; | 768 | 2.59k | } else if (!need_more_input_data(state)) { | 769 | 1.99k | *eos = false; | 770 | 1.99k | } | 771 | 3.98k | } | 772 | 3.98k | return Status::OK(); | 773 | 3.98k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.89k | bool* eos) { | 745 | 1.89k | auto& local_state = get_local_state(state); | 746 | 1.89k | if (need_more_input_data(state)) { | 747 | 1.89k | local_state._child_block->clear_column_data( | 748 | 1.89k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.89k | .num_materialized_slots()); | 750 | 1.89k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.89k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.89k | *eos = local_state._child_eos; | 753 | 1.89k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 776 | return Status::OK(); | 755 | 776 | } | 756 | 1.11k | { | 757 | 1.11k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.11k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.11k | } | 760 | 1.11k | } | 761 | | | 762 | 1.11k | if (!need_more_input_data(state)) { | 763 | 1.11k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.11k | bool new_eos = false; | 765 | 1.11k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.11k | if (new_eos) { | 767 | 785 | *eos = true; | 768 | 785 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.11k | } | 772 | 1.11k | return Status::OK(); | 773 | 1.11k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 15.4k | bool* eos) { | 745 | 15.4k | auto& local_state = get_local_state(state); | 746 | 15.4k | if (need_more_input_data(state)) { | 747 | 15.4k | local_state._child_block->clear_column_data( | 748 | 15.4k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 15.4k | .num_materialized_slots()); | 750 | 15.4k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 15.4k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 15.4k | *eos = local_state._child_eos; | 753 | 15.4k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.16k | return Status::OK(); | 755 | 4.16k | } | 756 | 11.2k | { | 757 | 11.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 11.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 11.2k | } | 760 | 11.2k | } | 761 | | | 762 | 11.2k | if (!need_more_input_data(state)) { | 763 | 7.40k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.40k | bool new_eos = false; | 765 | 7.40k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.40k | if (new_eos) { | 767 | 7.33k | *eos = true; | 768 | 7.33k | } else if (!need_more_input_data(state)) { | 769 | 8 | *eos = false; | 770 | 8 | } | 771 | 7.40k | } | 772 | 11.2k | return Status::OK(); | 773 | 11.2k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 330k | bool* eos) { | 745 | 330k | auto& local_state = get_local_state(state); | 746 | 331k | if (need_more_input_data(state)) { | 747 | 331k | local_state._child_block->clear_column_data( | 748 | 331k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 331k | .num_materialized_slots()); | 750 | 331k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 331k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 331k | *eos = local_state._child_eos; | 753 | 331k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 32.3k | return Status::OK(); | 755 | 32.3k | } | 756 | 298k | { | 757 | 298k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 298k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 298k | } | 760 | 298k | } | 761 | | | 762 | 298k | if (!need_more_input_data(state)) { | 763 | 280k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 280k | bool new_eos = false; | 765 | 280k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 280k | if (new_eos) { | 767 | 279k | *eos = true; | 768 | 279k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 280k | } | 772 | 298k | return Status::OK(); | 773 | 298k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 20.8k | bool* eos) { | 745 | 20.8k | auto& local_state = get_local_state(state); | 746 | 20.8k | if (need_more_input_data(state)) { | 747 | 10.5k | local_state._child_block->clear_column_data( | 748 | 10.5k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 10.5k | .num_materialized_slots()); | 750 | 10.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 10.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 10.5k | *eos = local_state._child_eos; | 753 | 10.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 713 | return Status::OK(); | 755 | 713 | } | 756 | 9.80k | { | 757 | 9.80k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 9.80k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 9.80k | } | 760 | 9.80k | } | 761 | | | 762 | 20.1k | if (!need_more_input_data(state)) { | 763 | 19.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 19.5k | bool new_eos = false; | 765 | 19.5k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 19.5k | if (new_eos) { | 767 | 5.92k | *eos = true; | 768 | 13.5k | } else if (!need_more_input_data(state)) { | 769 | 10.3k | *eos = false; | 770 | 10.3k | } | 771 | 19.5k | } | 772 | 20.1k | return Status::OK(); | 773 | 20.1k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 6.73k | bool* eos) { | 745 | 6.73k | auto& local_state = get_local_state(state); | 746 | 6.73k | if (need_more_input_data(state)) { | 747 | 6.36k | local_state._child_block->clear_column_data( | 748 | 6.36k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 6.36k | .num_materialized_slots()); | 750 | 6.36k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 6.36k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 6.36k | *eos = local_state._child_eos; | 753 | 6.36k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 975 | return Status::OK(); | 755 | 975 | } | 756 | 5.39k | { | 757 | 5.39k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 5.39k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 5.39k | } | 760 | 5.39k | } | 761 | | | 762 | 5.75k | if (!need_more_input_data(state)) { | 763 | 5.75k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.75k | bool new_eos = false; | 765 | 5.75k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.75k | if (new_eos) { | 767 | 3.65k | *eos = true; | 768 | 3.65k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 5.75k | } | 772 | 5.74k | return Status::OK(); | 773 | 5.74k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 46.1k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 46.1k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 46.1k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 46.1k | "AsyncWriterDependency", true); |
781 | 46.1k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 46.1k | _finish_dependency)); |
783 | | |
784 | 46.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 46.1k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 46.1k | return Status::OK(); |
787 | 46.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 359 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 359 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 359 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 359 | "AsyncWriterDependency", true); | 781 | 359 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 359 | _finish_dependency)); | 783 | | | 784 | 359 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 359 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 359 | return Status::OK(); | 787 | 359 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 45.7k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 45.7k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 45.7k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 45.7k | "AsyncWriterDependency", true); | 781 | 45.7k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 45.7k | _finish_dependency)); | 783 | | | 784 | 45.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 45.7k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 45.7k | return Status::OK(); | 787 | 45.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 42 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 42 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 42 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 42 | "AsyncWriterDependency", true); | 781 | 42 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 42 | _finish_dependency)); | 783 | | | 784 | 42 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 42 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 42 | return Status::OK(); | 787 | 42 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
788 | | |
789 | | template <typename Writer, typename Parent> |
790 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
791 | 46.5k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 46.5k | RETURN_IF_ERROR(Base::open(state)); |
793 | 46.5k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 364k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 317k | RETURN_IF_ERROR( |
796 | 317k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 317k | } |
798 | 46.5k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 46.5k | return Status::OK(); |
800 | 46.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 359 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 359 | RETURN_IF_ERROR(Base::open(state)); | 793 | 359 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.85k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.49k | RETURN_IF_ERROR( | 796 | 1.49k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.49k | } | 798 | 359 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 359 | return Status::OK(); | 800 | 359 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 46.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 46.1k | RETURN_IF_ERROR(Base::open(state)); | 793 | 46.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 361k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 315k | RETURN_IF_ERROR( | 796 | 315k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 315k | } | 798 | 46.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 46.1k | return Status::OK(); | 800 | 46.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 42 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 42 | RETURN_IF_ERROR(Base::open(state)); | 793 | 42 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 756 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 714 | RETURN_IF_ERROR( | 796 | 714 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 714 | } | 798 | 42 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 42 | return Status::OK(); | 800 | 42 | } |
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 | 61.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 61.4k | return _writer->sink(block, eos); |
806 | 61.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.42k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.42k | return _writer->sink(block, eos); | 806 | 1.42k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 59.9k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 59.9k | return _writer->sink(block, eos); | 806 | 59.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 42 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 42 | return _writer->sink(block, eos); | 806 | 42 | } |
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 | 46.6k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 46.6k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 46.6k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 46.6k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
816 | | // if the init failed, the _writer may be nullptr. so here need check |
817 | 46.7k | if (_writer) { |
818 | 46.7k | Status st = _writer->get_writer_status(); |
819 | 46.7k | if (exec_status.ok()) { |
820 | 46.6k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 46.6k | : Status::Cancelled("force close")); |
822 | 46.6k | } else { |
823 | 86 | _writer->force_close(exec_status); |
824 | 86 | } |
825 | | // If there is an error in process_block thread, then we should get the writer |
826 | | // status before call force_close. For example, the thread may failed in commit |
827 | | // transaction. |
828 | 46.7k | RETURN_IF_ERROR(st); |
829 | 46.7k | } |
830 | 46.6k | return Base::close(state, exec_status); |
831 | 46.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 347 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 347 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 347 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 347 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 347 | if (_writer) { | 818 | 347 | Status st = _writer->get_writer_status(); | 819 | 347 | if (exec_status.ok()) { | 820 | 347 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 347 | : Status::Cancelled("force close")); | 822 | 347 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 347 | RETURN_IF_ERROR(st); | 829 | 347 | } | 830 | 347 | return Base::close(state, exec_status); | 831 | 347 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 46.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 46.2k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 46.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 46.2k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 46.3k | if (_writer) { | 818 | 46.3k | Status st = _writer->get_writer_status(); | 819 | 46.3k | if (exec_status.ok()) { | 820 | 46.2k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 46.2k | : Status::Cancelled("force close")); | 822 | 46.2k | } else { | 823 | 86 | _writer->force_close(exec_status); | 824 | 86 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 46.3k | RETURN_IF_ERROR(st); | 829 | 46.3k | } | 830 | 46.2k | return Base::close(state, exec_status); | 831 | 46.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 42 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 42 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 42 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 42 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 42 | if (_writer) { | 818 | 42 | Status st = _writer->get_writer_status(); | 819 | 42 | if (exec_status.ok()) { | 820 | 42 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 42 | : Status::Cancelled("force close")); | 822 | 42 | } 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 | 42 | RETURN_IF_ERROR(st); | 829 | 42 | } | 830 | 42 | return Base::close(state, exec_status); | 831 | 42 | } |
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 |