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.82M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.82M | if (_parent->nereids_id() == -1) { |
122 | 955k | return fmt::format("(id={})", _parent->node_id()); |
123 | 955k | } else { |
124 | 873k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 873k | } |
126 | 1.82M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 67.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 67.4k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 67.4k | } else { | 124 | 67.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 67.4k | } | 126 | 67.4k | } |
_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 | 197k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 197k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 197k | } else { | 124 | 197k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 197k | } | 126 | 197k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 24 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 24 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 24 | } else { | 124 | 24 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 24 | } | 126 | 24 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 6.67k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.67k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 6.67k | } else { | 124 | 6.67k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 6.67k | } | 126 | 6.67k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 8.21k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 8.21k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 8.20k | } else { | 124 | 8.20k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 8.20k | } | 126 | 8.21k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 87.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 87.5k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 87.4k | } else { | 124 | 87.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 87.4k | } | 126 | 87.5k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 82.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 82.2k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 82.2k | } else { | 124 | 82.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 82.2k | } | 126 | 82.2k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 158 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 158 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 158 | } else { | 124 | 158 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 158 | } | 126 | 158 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 659k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 659k | if (_parent->nereids_id() == -1) { | 122 | 295k | return fmt::format("(id={})", _parent->node_id()); | 123 | 364k | } else { | 124 | 364k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 364k | } | 126 | 659k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 53.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 53.8k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 53.8k | } else { | 124 | 53.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 53.8k | } | 126 | 53.8k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 25 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 25 | if (_parent->nereids_id() == -1) { | 122 | 25 | return fmt::format("(id={})", _parent->node_id()); | 123 | 25 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 25 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.40k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.41k | if (_parent->nereids_id() == -1) { | 122 | 5.41k | 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.40k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 375 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 375 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 273 | } else { | 124 | 273 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 273 | } | 126 | 375 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.06k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.06k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.05k | } else { | 124 | 5.05k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.05k | } | 126 | 5.06k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 655k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 655k | if (_parent->nereids_id() == -1) { | 122 | 654k | return fmt::format("(id={})", _parent->node_id()); | 123 | 654k | } else { | 124 | 301 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 301 | } | 126 | 655k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 168 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 168 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 168 | } else { | 124 | 168 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 168 | } | 126 | 168 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.21M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.21M | if (_parent->nereids_id() == -1) { |
131 | 703k | return fmt::format("(id={})", _parent->node_id()); |
132 | 703k | } else { |
133 | 510k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 510k | } |
135 | 1.21M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 115k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 115k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 115k | } else { | 133 | 115k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 115k | } | 135 | 115k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2 | if (_parent->nereids_id() == -1) { | 131 | 1 | return fmt::format("(id={})", _parent->node_id()); | 132 | 1 | } else { | 133 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1 | } | 135 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 200k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 200k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 200k | } else { | 133 | 200k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 200k | } | 135 | 200k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 31 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 31 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 31 | } else { | 133 | 31 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 31 | } | 135 | 31 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6.72k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.72k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.72k | } else { | 133 | 6.72k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.72k | } | 135 | 6.72k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.24k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.24k | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.23k | } else { | 133 | 8.23k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.23k | } | 135 | 8.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 88.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 88.3k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 88.3k | } else { | 133 | 88.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 88.3k | } | 135 | 88.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 82.1k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 82.1k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 82.1k | } else { | 133 | 82.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 82.1k | } | 135 | 82.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 168 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 168 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 168 | } else { | 133 | 168 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 168 | } | 135 | 168 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 18 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 18 | if (_parent->nereids_id() == -1) { | 131 | 18 | return fmt::format("(id={})", _parent->node_id()); | 132 | 18 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 18 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 9.58k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 9.58k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 9.58k | } else { | 133 | 9.58k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 9.58k | } | 135 | 9.58k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 376 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 376 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 274 | } else { | 133 | 274 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 274 | } | 135 | 376 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.3k | if (_parent->nereids_id() == -1) { | 131 | 12.3k | 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.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 245k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 246k | if (_parent->nereids_id() == -1) { | 131 | 246k | 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 | 245k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 444k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 444k | if (_parent->nereids_id() == -1) { | 131 | 444k | 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 | 444k | } |
_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.9k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 31.9k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 31.9k | _terminated = true; |
143 | 31.9k | return Status::OK(); |
144 | 31.9k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 3.36k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3.36k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3.36k | _terminated = true; | 143 | 3.36k | return Status::OK(); | 144 | 3.36k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2 | _terminated = true; | 143 | 2 | return Status::OK(); | 144 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.07k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.07k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.07k | _terminated = true; | 143 | 2.07k | return Status::OK(); | 144 | 2.07k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.00k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.00k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.00k | _terminated = true; | 143 | 1.00k | return Status::OK(); | 144 | 1.00k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 495 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 495 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 495 | _terminated = true; | 143 | 495 | return Status::OK(); | 144 | 495 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 336 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 336 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 336 | _terminated = true; | 143 | 336 | return Status::OK(); | 144 | 336 | } |
_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 | 197 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 197 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 197 | _terminated = true; | 143 | 197 | return Status::OK(); | 144 | 197 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 10 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 10 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 10 | _terminated = true; | 143 | 10 | return Status::OK(); | 144 | 10 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 300 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 300 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 300 | _terminated = true; | 143 | 300 | return Status::OK(); | 144 | 300 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 126 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 126 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 126 | _terminated = true; | 143 | 126 | return Status::OK(); | 144 | 126 | } |
|
145 | | |
146 | 305k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 305k | return _child && _child->is_serial_operator() && !is_source() |
148 | 305k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 305k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 305k | } |
151 | | |
152 | 25.1k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 25.1k | if (!_child) { |
154 | 23.9k | return false; |
155 | 23.9k | } |
156 | 1.17k | if (_child->is_serial_operator()) { |
157 | 189 | return true; |
158 | 189 | } |
159 | 989 | const auto child_distribution = _child->required_data_distribution(state); |
160 | 989 | return child_distribution.need_local_exchange() && |
161 | 989 | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.17k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 20.2k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 20.2k | fmt::memory_buffer debug_string_buffer; |
167 | 20.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 20.2k | return fmt::to_string(debug_string_buffer); |
169 | 20.2k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 4 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 4 | fmt::memory_buffer debug_string_buffer; | 167 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 4 | return fmt::to_string(debug_string_buffer); | 169 | 4 | } |
_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 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 2 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 2 | fmt::memory_buffer debug_string_buffer; | 167 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 2 | return fmt::to_string(debug_string_buffer); | 169 | 2 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 2 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 2 | fmt::memory_buffer debug_string_buffer; | 167 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 2 | return fmt::to_string(debug_string_buffer); | 169 | 2 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 4 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 4 | fmt::memory_buffer debug_string_buffer; | 167 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 4 | return fmt::to_string(debug_string_buffer); | 169 | 4 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 20.2k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 20.2k | fmt::memory_buffer debug_string_buffer; | 167 | 20.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 20.2k | return fmt::to_string(debug_string_buffer); | 169 | 20.2k | } |
_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 _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 6 | fmt::memory_buffer debug_string_buffer; | 167 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 6 | return fmt::to_string(debug_string_buffer); | 169 | 6 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 20.2k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 20.2k | fmt::memory_buffer debug_string_buffer; |
174 | 20.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 20.2k | return fmt::to_string(debug_string_buffer); |
176 | 20.2k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 2 | fmt::memory_buffer debug_string_buffer; | 174 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 2 | return fmt::to_string(debug_string_buffer); | 176 | 2 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 4 | fmt::memory_buffer debug_string_buffer; | 174 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 4 | return fmt::to_string(debug_string_buffer); | 176 | 4 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 4 | fmt::memory_buffer debug_string_buffer; | 174 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 4 | return fmt::to_string(debug_string_buffer); | 176 | 4 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 4 | fmt::memory_buffer debug_string_buffer; | 174 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 4 | return fmt::to_string(debug_string_buffer); | 176 | 4 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 20.2k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 20.2k | fmt::memory_buffer debug_string_buffer; | 174 | 20.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 20.2k | return fmt::to_string(debug_string_buffer); | 176 | 20.2k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 20.3k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 20.3k | fmt::memory_buffer debug_string_buffer; |
180 | 20.3k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 20.3k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 20.3k | _is_serial_operator); |
183 | 20.3k | return fmt::to_string(debug_string_buffer); |
184 | 20.3k | } |
185 | | |
186 | 20.2k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 20.2k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 20.2k | } |
189 | | |
190 | 652k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 652k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 652k | _nereids_id = tnode.nereids_id; |
193 | 652k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.87k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.87k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.87k | 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.87k | } |
206 | 652k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 652k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 652k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 652k | } else if (tnode.__isset.conjuncts) { |
212 | 272k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 272k | VExprContextSPtr context; |
214 | 272k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 272k | _conjuncts.emplace_back(context); |
216 | 272k | } |
217 | 98.8k | } |
218 | | |
219 | | // create the projections expr |
220 | 652k | if (tnode.__isset.projections) { |
221 | 260k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 260k | } |
223 | 652k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.87k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.87k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 6.56k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 6.56k | VExprContextSPtrs projections; |
228 | 6.56k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 6.56k | _projection->intermediate_projections.push_back(projections); |
230 | 6.56k | } |
231 | 3.87k | } |
232 | 652k | return Status::OK(); |
233 | 652k | } |
234 | | |
235 | 679k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 679k | for (auto& conjunct : _conjuncts) { |
237 | 272k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 272k | } |
239 | 679k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 628k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 338k | return a->execute_cost() < b->execute_cost(); |
242 | 338k | }); |
243 | 628k | }; |
244 | | |
245 | 679k | if (has_projection()) { |
246 | 260k | auto& projection = *_projection; |
247 | 266k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 6.56k | const auto& input_row_desc = |
249 | 6.56k | i == 0 ? operator_row_desc_before_projection() |
250 | 6.56k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 6.56k | RETURN_IF_ERROR( |
252 | 6.56k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 6.56k | } |
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 | 679k | for (auto& conjunct : _conjuncts) { |
265 | 272k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 272k | } |
267 | 679k | if (has_projection()) { |
268 | 260k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 260k | for (auto& projections : _projection->intermediate_projections) { |
270 | 6.56k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 6.56k | } |
272 | 260k | } |
273 | 679k | if (_child && !is_source()) { |
274 | 96.6k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 96.6k | } |
276 | | |
277 | 679k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 679k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 679k | return Status::OK(); |
283 | 679k | } |
284 | | |
285 | 8.74k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 8.74k | if (_child && !is_source()) { |
287 | 801 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 801 | } |
289 | 8.74k | auto result = state->get_local_state_result(operator_id()); |
290 | 8.74k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 8.74k | return result.value()->terminate(state); |
294 | 8.74k | } |
295 | | |
296 | 4.97M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.97M | if (_child && !is_source()) { |
298 | 856k | RETURN_IF_ERROR(_child->close(state)); |
299 | 856k | } |
300 | 4.97M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.97M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.97M | return result.value()->close(state); |
305 | 4.97M | } |
306 | | |
307 | 348k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 348k | _origin_block.clear_column_data( |
309 | 348k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 348k | } |
311 | | |
312 | 849k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 849k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 849k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 849k | return Status::OK(); |
317 | 849k | } |
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 | 348k | Block* output_block) const { |
326 | 348k | auto* local_state = state->get_local_state(operator_id()); |
327 | 348k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 348k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 348k | const size_t rows = origin_block->rows(); |
330 | 348k | if (rows == 0) { |
331 | 213k | return Status::OK(); |
332 | 213k | } |
333 | 134k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 134k | { |
336 | 134k | Block input_block = *origin_block; |
337 | | |
338 | 134k | ColumnsWithTypeAndName new_columns; |
339 | 134k | 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 | 71.6k | for (int i = 0; i < projections.size(); i++) { |
346 | 67.8k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 67.7k | if (new_columns[i].column->size() != rows) { |
348 | 0 | return Status::InternalError( |
349 | 0 | "intermediate projection result column size {} not equal input rows " |
350 | 0 | "{}, expr: {}", |
351 | 0 | new_columns[i].column->size(), rows, |
352 | 0 | projections[i]->root()->debug_string()); |
353 | 0 | } |
354 | 67.7k | } |
355 | 3.82k | Block tmp_block {new_columns}; |
356 | 3.82k | input_block.swap(tmp_block); |
357 | 3.82k | } |
358 | | |
359 | 134k | 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 | 134k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 134k | output_block, _projection->output_row_descriptor); |
368 | 134k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 134k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 134k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 766k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 631k | ColumnPtr column_ptr; |
374 | 631k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 631k | 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 | 631k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 631k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 631k | if (column_ptr->is_exclusive()) { |
386 | 227k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 404k | } else { |
388 | 404k | shared_columns[i] = std::move(column_ptr); |
389 | 404k | } |
390 | 631k | } |
391 | | |
392 | 134k | scoped_mutable_block.restore(); |
393 | 766k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 632k | if (shared_columns[i]) { |
395 | 404k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 404k | } |
397 | 632k | } |
398 | 134k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 134k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 134k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 134k | return Status::OK(); |
405 | 134k | } |
406 | | |
407 | 4.46M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.46M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.46M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.46M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.46M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.46M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.46M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.46M | return Status::OK(); |
415 | 4.46M | } |
416 | 4.46M | } |
417 | 4.46M | }); |
418 | | |
419 | 4.46M | Status status; |
420 | 4.46M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.46M | Defer defer([&]() { |
422 | 4.46M | if (status.ok()) { |
423 | 4.46M | local_state->update_output_block_counters(*block); |
424 | 4.46M | } |
425 | 4.46M | }); |
426 | 4.46M | if (has_projection()) { |
427 | 348k | local_state->clear_origin_block(); |
428 | 348k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 348k | if (UNLIKELY(!status.ok())) { |
430 | 24 | return status; |
431 | 24 | } |
432 | 348k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 348k | return status; |
434 | 348k | } |
435 | 4.11M | status = get_block(state, block, eos); |
436 | 4.11M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 4.11M | return status; |
438 | 4.11M | } |
439 | | |
440 | 2.76M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.76M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.57k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.57k | *eos = true; |
444 | 9.57k | } |
445 | | |
446 | 2.76M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.76M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.76M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.76M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.76M | if (op_name == arg_op_name) { |
452 | 2.76M | *eos = true; |
453 | 2.76M | } |
454 | 2.76M | }); |
455 | | |
456 | 2.76M | if (auto rows = block->rows()) { |
457 | 731k | _num_rows_returned += rows; |
458 | 731k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 731k | } |
460 | 2.76M | } |
461 | | |
462 | 31.9k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 31.9k | auto result = state->get_sink_local_state_result(); |
464 | 31.9k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 31.9k | return result.value()->terminate(state); |
468 | 31.9k | } |
469 | | |
470 | 20.2k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 20.2k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 20.2k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 20.2k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 20.2k | return fmt::to_string(debug_string_buffer); |
476 | 20.2k | } |
477 | | |
478 | 20.2k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 20.2k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 20.2k | } |
481 | | |
482 | 339k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 339k | std::string op_name = "UNKNOWN_SINK"; |
484 | 339k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 339k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 339k | op_name = it->second; |
488 | 339k | } |
489 | 339k | _name = op_name + "_OPERATOR"; |
490 | 339k | return Status::OK(); |
491 | 339k | } |
492 | | |
493 | 290k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 290k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 290k | _nereids_id = tnode.nereids_id; |
496 | 290k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 290k | _name = substr + "_SINK_OPERATOR"; |
498 | 290k | return Status::OK(); |
499 | 290k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.72M | LocalSinkStateInfo& info) { |
504 | 1.72M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.72M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.72M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.72M | return Status::OK(); |
508 | 1.72M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 115k | LocalSinkStateInfo& info) { | 504 | 115k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 115k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 115k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 115k | return Status::OK(); | 508 | 115k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 399k | LocalSinkStateInfo& info) { | 504 | 399k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 399k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 399k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 399k | return Status::OK(); | 508 | 399k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3 | LocalSinkStateInfo& info) { | 504 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3 | return Status::OK(); | 508 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 360 | LocalSinkStateInfo& info) { | 504 | 360 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 360 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 360 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 360 | return Status::OK(); | 508 | 360 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 45.4k | LocalSinkStateInfo& info) { | 504 | 45.4k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 45.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 45.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 45.4k | return Status::OK(); | 508 | 45.4k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 34 | LocalSinkStateInfo& info) { | 504 | 34 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 34 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 34 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 34 | return Status::OK(); | 508 | 34 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.23k | LocalSinkStateInfo& info) { | 504 | 8.23k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.23k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.23k | return Status::OK(); | 508 | 8.23k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 15 | LocalSinkStateInfo& info) { | 504 | 15 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 15 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 15 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 15 | return Status::OK(); | 508 | 15 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 201k | LocalSinkStateInfo& info) { | 504 | 201k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 201k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 201k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 201k | return Status::OK(); | 508 | 201k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 31 | LocalSinkStateInfo& info) { | 504 | 31 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 31 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 31 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 31 | return Status::OK(); | 508 | 31 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 246k | LocalSinkStateInfo& info) { | 504 | 246k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 246k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 246k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 246k | return Status::OK(); | 508 | 246k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 88.5k | LocalSinkStateInfo& info) { | 504 | 88.5k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 88.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 88.5k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 88.5k | return Status::OK(); | 508 | 88.5k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 82.1k | LocalSinkStateInfo& info) { | 504 | 82.1k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 82.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 82.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 82.1k | return Status::OK(); | 508 | 82.1k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 168 | LocalSinkStateInfo& info) { | 504 | 168 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 168 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 168 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 168 | return Status::OK(); | 508 | 168 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 504k | LocalSinkStateInfo& info) { | 504 | 504k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 504k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 504k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 504k | return Status::OK(); | 508 | 504k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.72k | LocalSinkStateInfo& info) { | 504 | 6.72k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.72k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.72k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.72k | return Status::OK(); | 508 | 6.72k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 9.58k | LocalSinkStateInfo& info) { | 504 | 9.58k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9.58k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9.58k | return Status::OK(); | 508 | 9.58k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.21k | LocalSinkStateInfo& info) { | 504 | 2.21k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.21k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.21k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.21k | return Status::OK(); | 508 | 2.21k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 275 | LocalSinkStateInfo& info) { | 504 | 275 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 275 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 275 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 275 | return Status::OK(); | 508 | 275 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.71k | LocalSinkStateInfo& info) { | 504 | 4.71k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.71k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.71k | return Status::OK(); | 508 | 4.71k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.49k | LocalSinkStateInfo& info) { | 504 | 2.49k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.49k | return Status::OK(); | 508 | 2.49k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.55k | LocalSinkStateInfo& info) { | 504 | 2.55k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.55k | return Status::OK(); | 508 | 2.55k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.44k | LocalSinkStateInfo& info) { | 504 | 2.44k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.44k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.44k | return Status::OK(); | 508 | 2.44k | } |
_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 | 565 | LocalSinkStateInfo& info) { | 504 | 565 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 565 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 565 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 565 | return Status::OK(); | 508 | 565 | } |
_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.36M | 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.36M | } else { |
519 | 1.36M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.36M | ss->id = operator_id(); |
521 | 1.36M | for (auto& dest : dests_id()) { |
522 | 1.35M | ss->related_op_ids.insert(dest); |
523 | 1.35M | } |
524 | 1.36M | return ss; |
525 | 1.36M | } |
526 | 1.36M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 101k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 101k | } else { | 519 | 101k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 101k | ss->id = operator_id(); | 521 | 101k | for (auto& dest : dests_id()) { | 522 | 101k | ss->related_op_ids.insert(dest); | 523 | 101k | } | 524 | 101k | return ss; | 525 | 101k | } | 526 | 101k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 400k | 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 | 400k | } else { | 519 | 400k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 400k | ss->id = operator_id(); | 521 | 400k | for (auto& dest : dests_id()) { | 522 | 398k | ss->related_op_ids.insert(dest); | 523 | 398k | } | 524 | 400k | return ss; | 525 | 400k | } | 526 | 400k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 3 | } else { | 519 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 3 | ss->id = operator_id(); | 521 | 3 | for (auto& dest : dests_id()) { | 522 | 3 | ss->related_op_ids.insert(dest); | 523 | 3 | } | 524 | 3 | return ss; | 525 | 3 | } | 526 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 360 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 360 | } else { | 519 | 360 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 360 | ss->id = operator_id(); | 521 | 360 | for (auto& dest : dests_id()) { | 522 | 360 | ss->related_op_ids.insert(dest); | 523 | 360 | } | 524 | 360 | return ss; | 525 | 360 | } | 526 | 360 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 45.5k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 45.5k | } else { | 519 | 45.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 45.5k | ss->id = operator_id(); | 521 | 45.5k | for (auto& dest : dests_id()) { | 522 | 45.2k | ss->related_op_ids.insert(dest); | 523 | 45.2k | } | 524 | 45.5k | return ss; | 525 | 45.5k | } | 526 | 45.5k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 34 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 34 | } else { | 519 | 34 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 34 | ss->id = operator_id(); | 521 | 34 | for (auto& dest : dests_id()) { | 522 | 34 | ss->related_op_ids.insert(dest); | 523 | 34 | } | 524 | 34 | return ss; | 525 | 34 | } | 526 | 34 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 8.26k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 8.26k | } else { | 519 | 8.26k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 8.26k | ss->id = operator_id(); | 521 | 8.27k | for (auto& dest : dests_id()) { | 522 | 8.27k | ss->related_op_ids.insert(dest); | 523 | 8.27k | } | 524 | 8.26k | return ss; | 525 | 8.26k | } | 526 | 8.26k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 15 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 15 | } else { | 519 | 15 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 15 | ss->id = operator_id(); | 521 | 15 | for (auto& dest : dests_id()) { | 522 | 15 | ss->related_op_ids.insert(dest); | 523 | 15 | } | 524 | 15 | return ss; | 525 | 15 | } | 526 | 15 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 201k | 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 | 201k | } else { | 519 | 201k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 201k | ss->id = operator_id(); | 521 | 201k | for (auto& dest : dests_id()) { | 522 | 201k | ss->related_op_ids.insert(dest); | 523 | 201k | } | 524 | 201k | return ss; | 525 | 201k | } | 526 | 201k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 33 | 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 | 33 | } else { | 519 | 33 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 33 | ss->id = operator_id(); | 521 | 33 | for (auto& dest : dests_id()) { | 522 | 33 | ss->related_op_ids.insert(dest); | 523 | 33 | } | 524 | 33 | return ss; | 525 | 33 | } | 526 | 33 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 88.7k | 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.7k | } else { | 519 | 88.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 88.7k | ss->id = operator_id(); | 521 | 88.8k | for (auto& dest : dests_id()) { | 522 | 88.8k | ss->related_op_ids.insert(dest); | 523 | 88.8k | } | 524 | 88.7k | return ss; | 525 | 88.7k | } | 526 | 88.7k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 167 | 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 | 167 | } else { | 519 | 167 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 167 | ss->id = operator_id(); | 521 | 167 | for (auto& dest : dests_id()) { | 522 | 167 | ss->related_op_ids.insert(dest); | 523 | 167 | } | 524 | 167 | return ss; | 525 | 167 | } | 526 | 167 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 504k | 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 | 504k | } else { | 519 | 504k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 504k | ss->id = operator_id(); | 521 | 504k | for (auto& dest : dests_id()) { | 522 | 498k | ss->related_op_ids.insert(dest); | 523 | 498k | } | 524 | 504k | return ss; | 525 | 504k | } | 526 | 504k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.73k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 6.73k | } else { | 519 | 6.73k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.73k | ss->id = operator_id(); | 521 | 6.73k | for (auto& dest : dests_id()) { | 522 | 6.73k | ss->related_op_ids.insert(dest); | 523 | 6.73k | } | 524 | 6.73k | return ss; | 525 | 6.73k | } | 526 | 6.73k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 376 | 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 | 376 | } else { | 519 | 376 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 376 | ss->id = operator_id(); | 521 | 377 | for (auto& dest : dests_id()) { | 522 | 377 | ss->related_op_ids.insert(dest); | 523 | 377 | } | 524 | 376 | return ss; | 525 | 376 | } | 526 | 376 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.52k | 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.52k | } else { | 519 | 2.52k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.52k | ss->id = operator_id(); | 521 | 2.56k | for (auto& dest : dests_id()) { | 522 | 2.56k | ss->related_op_ids.insert(dest); | 523 | 2.56k | } | 524 | 2.52k | return ss; | 525 | 2.52k | } | 526 | 2.52k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.44k | 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.44k | } else { | 519 | 2.44k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.44k | ss->id = operator_id(); | 521 | 2.45k | for (auto& dest : dests_id()) { | 522 | 2.45k | ss->related_op_ids.insert(dest); | 523 | 2.45k | } | 524 | 2.44k | return ss; | 525 | 2.44k | } | 526 | 2.44k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 564 | 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 | 564 | } else { | 519 | 564 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 564 | ss->id = operator_id(); | 521 | 564 | for (auto& dest : dests_id()) { | 522 | 555 | ss->related_op_ids.insert(dest); | 523 | 555 | } | 524 | 564 | return ss; | 525 | 564 | } | 526 | 564 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 106 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 106 | } else { | 519 | 106 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 106 | ss->id = operator_id(); | 521 | 106 | for (auto& dest : dests_id()) { | 522 | 106 | ss->related_op_ids.insert(dest); | 523 | 106 | } | 524 | 106 | return ss; | 525 | 106 | } | 526 | 106 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.08M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.08M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.08M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.08M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.08M | return Status::OK(); |
534 | 2.08M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 67.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 67.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 67.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 67.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 67.6k | return Status::OK(); | 534 | 67.6k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 233k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 233k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 233k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 233k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 233k | return Status::OK(); | 534 | 233k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 142 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 142 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 142 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 142 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 142 | return Status::OK(); | 534 | 142 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.09k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.09k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.09k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.09k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.09k | return Status::OK(); | 534 | 3.09k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.24k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.24k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.24k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.24k | return Status::OK(); | 534 | 8.24k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.96k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.96k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.96k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.96k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.96k | return Status::OK(); | 534 | 7.96k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 24 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 24 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 24 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 24 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 24 | return Status::OK(); | 534 | 24 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 192k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 192k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 192k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 192k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 192k | return Status::OK(); | 534 | 192k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 88.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 88.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 88.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 88.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 88.4k | return Status::OK(); | 534 | 88.4k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 82.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 82.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 82.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 82.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 82.4k | return Status::OK(); | 534 | 82.4k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 158 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 158 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 158 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 158 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 158 | return Status::OK(); | 534 | 158 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.03k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.03k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.03k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.03k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.03k | return Status::OK(); | 534 | 5.03k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 296k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 296k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 296k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 296k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 296k | return Status::OK(); | 534 | 296k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 935 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 935 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 935 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 935 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 935 | return Status::OK(); | 534 | 935 | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.71k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.71k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.71k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.71k | return Status::OK(); | 534 | 6.71k | } |
_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.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 54.0k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 54.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 54.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 54.0k | return Status::OK(); | 534 | 54.0k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.41k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.41k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.41k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.41k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.41k | return Status::OK(); | 534 | 5.41k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 273 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 273 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 273 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 273 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 273 | return Status::OK(); | 534 | 273 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.56k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.56k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.56k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.56k | return Status::OK(); | 534 | 2.56k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.47k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.47k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.47k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.47k | return Status::OK(); | 534 | 2.47k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 316 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 316 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 316 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 316 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 316 | return Status::OK(); | 534 | 316 | } |
_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 | 661k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 661k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 661k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 661k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 661k | return Status::OK(); | 534 | 661k | } |
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 | 783 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 783 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 783 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 783 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 783 | return Status::OK(); | 534 | 783 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.04k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.04k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.04k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.04k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.04k | return Status::OK(); | 534 | 1.04k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.56k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.56k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.56k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.56k | return Status::OK(); | 534 | 7.56k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 336k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 336k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 336k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 336k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 336k | return Status::OK(); | 534 | 336k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.71M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.06M | : _num_rows_returned(0), |
542 | 2.06M | _rows_returned_counter(nullptr), |
543 | 2.06M | _parent(parent), |
544 | 2.06M | _state(state), |
545 | 2.06M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.08M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.08M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.08M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.08M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.08M | _operator_profile->set_metadata(_parent->node_id()); |
553 | | // indent is false so that source operator will have same |
554 | | // indentation_level with its parent operator. |
555 | 2.08M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.08M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.08M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.08M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.08M | if constexpr (!is_fake_shared) { |
560 | 1.18M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 753k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 753k | .first.get() |
563 | 753k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 753k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 753k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 753k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 753k | } 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 | 68.4k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 6.96k | DCHECK(false); |
582 | 6.96k | } |
583 | 68.4k | } |
584 | 1.18M | } |
585 | | |
586 | 2.08M | if (must_set_shared_state() && _shared_state == nullptr) { |
587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
588 | 0 | } |
589 | | |
590 | 2.08M | _rows_returned_counter = |
591 | 2.08M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.08M | _blocks_returned_counter = |
593 | 2.08M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.08M | _output_block_bytes_counter = |
595 | 2.08M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.08M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.08M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.08M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.08M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.08M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.08M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.08M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.08M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.08M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.08M | _memory_used_counter = |
606 | 2.08M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.08M | _common_profile->add_info_string("IsColocate", |
608 | 2.08M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.08M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.08M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.08M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.08M | return Status::OK(); |
613 | 2.08M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 67.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 67.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 67.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 67.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 67.8k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 67.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 67.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 67.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 67.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 67.8k | if constexpr (!is_fake_shared) { | 560 | 67.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 13.9k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 13.9k | .first.get() | 563 | 13.9k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 13.9k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 13.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 13.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 53.9k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 53.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 53.2k | _dependency = _shared_state->create_source_dependency( | 576 | 53.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 53.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 53.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 53.2k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 648 | } | 584 | 67.8k | } | 585 | | | 586 | 67.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 67.8k | _rows_returned_counter = | 591 | 67.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 67.8k | _blocks_returned_counter = | 593 | 67.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 67.8k | _output_block_bytes_counter = | 595 | 67.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 67.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 67.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 67.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 67.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 67.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 67.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 67.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 67.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 67.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 67.8k | _memory_used_counter = | 606 | 67.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 67.8k | _common_profile->add_info_string("IsColocate", | 608 | 67.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 67.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 67.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 67.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 67.8k | return Status::OK(); | 613 | 67.8k | } |
_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 | 201k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 201k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 201k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 201k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 201k | _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 | 201k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 201k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 201k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 201k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 201k | if constexpr (!is_fake_shared) { | 560 | 201k | 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 | 201k | } 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 | 192k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 192k | _dependency = _shared_state->create_source_dependency( | 576 | 192k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 192k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 192k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 192k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 9.16k | } | 584 | 201k | } | 585 | | | 586 | 201k | 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 | 201k | _rows_returned_counter = | 591 | 201k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 201k | _blocks_returned_counter = | 593 | 201k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 201k | _output_block_bytes_counter = | 595 | 201k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 201k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 201k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 201k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 201k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 201k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 201k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 201k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 201k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 201k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 201k | _memory_used_counter = | 606 | 201k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 201k | _common_profile->add_info_string("IsColocate", | 608 | 201k | std::to_string(_parent->is_colocated_operator())); | 609 | 201k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 201k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 201k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 201k | return Status::OK(); | 613 | 201k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 24 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 24 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 24 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 24 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 24 | _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 | 24 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 24 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 24 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 24 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 24 | if constexpr (!is_fake_shared) { | 560 | 24 | 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 | 24 | } 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 | 24 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 24 | _dependency = _shared_state->create_source_dependency( | 576 | 24 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 24 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 24 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 24 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 24 | } | 585 | | | 586 | 24 | 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 | 24 | _rows_returned_counter = | 591 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 24 | _blocks_returned_counter = | 593 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 24 | _output_block_bytes_counter = | 595 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 24 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 24 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 24 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 24 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 24 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 24 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 24 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 24 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 24 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 24 | _memory_used_counter = | 606 | 24 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 24 | _common_profile->add_info_string("IsColocate", | 608 | 24 | std::to_string(_parent->is_colocated_operator())); | 609 | 24 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 24 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 24 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 24 | return Status::OK(); | 613 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.70k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.70k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.70k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.70k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.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 | 6.70k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.70k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.70k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.70k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.70k | if constexpr (!is_fake_shared) { | 560 | 6.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 | 6.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 | 6.68k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.68k | _dependency = _shared_state->create_source_dependency( | 576 | 6.68k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.68k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.68k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.68k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 19 | } | 584 | 6.70k | } | 585 | | | 586 | 6.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 | 6.70k | _rows_returned_counter = | 591 | 6.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.70k | _blocks_returned_counter = | 593 | 6.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.70k | _output_block_bytes_counter = | 595 | 6.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.70k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.70k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.70k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.70k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.70k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.70k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.70k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.70k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.70k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.70k | _memory_used_counter = | 606 | 6.70k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.70k | _common_profile->add_info_string("IsColocate", | 608 | 6.70k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.70k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.70k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.70k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.70k | return Status::OK(); | 613 | 6.70k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 8.26k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 8.26k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 8.26k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 8.26k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 8.26k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 8.26k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 8.26k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 8.26k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 8.26k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 8.26k | if constexpr (!is_fake_shared) { | 560 | 8.26k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 8.26k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 8.19k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 8.19k | _dependency = _shared_state->create_source_dependency( | 576 | 8.19k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 8.19k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 8.19k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.19k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 71 | } | 584 | 8.26k | } | 585 | | | 586 | 8.26k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 8.26k | _rows_returned_counter = | 591 | 8.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 8.26k | _blocks_returned_counter = | 593 | 8.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 8.26k | _output_block_bytes_counter = | 595 | 8.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 8.26k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 8.26k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 8.26k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 8.26k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 8.26k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 8.26k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 8.26k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 8.26k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 8.26k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 8.26k | _memory_used_counter = | 606 | 8.26k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 8.26k | _common_profile->add_info_string("IsColocate", | 608 | 8.26k | std::to_string(_parent->is_colocated_operator())); | 609 | 8.26k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 8.26k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 8.26k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 8.26k | return Status::OK(); | 613 | 8.26k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 88.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 88.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 88.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 88.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 88.6k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 88.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 88.6k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 88.6k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 88.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 88.6k | if constexpr (!is_fake_shared) { | 560 | 88.6k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 88.6k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 86.9k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 86.9k | _dependency = _shared_state->create_source_dependency( | 576 | 86.9k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 86.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 86.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 86.9k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.64k | } | 584 | 88.6k | } | 585 | | | 586 | 88.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 88.6k | _rows_returned_counter = | 591 | 88.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 88.6k | _blocks_returned_counter = | 593 | 88.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 88.6k | _output_block_bytes_counter = | 595 | 88.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 88.6k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 88.6k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 88.6k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 88.6k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 88.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 88.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 88.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 88.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 88.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 88.6k | _memory_used_counter = | 606 | 88.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 88.6k | _common_profile->add_info_string("IsColocate", | 608 | 88.6k | std::to_string(_parent->is_colocated_operator())); | 609 | 88.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 88.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 88.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 88.6k | return Status::OK(); | 613 | 88.6k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 82.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 82.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 82.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 82.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 82.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 | 82.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 82.4k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 82.4k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 82.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 82.4k | if constexpr (!is_fake_shared) { | 560 | 82.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 82.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 82.4k | .first.get() | 563 | 82.4k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 82.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 82.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 82.4k | _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 | 82.4k | } | 585 | | | 586 | 82.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 | 82.4k | _rows_returned_counter = | 591 | 82.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 82.4k | _blocks_returned_counter = | 593 | 82.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 82.4k | _output_block_bytes_counter = | 595 | 82.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 82.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 82.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 82.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 82.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 82.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 82.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 82.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 82.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 82.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 82.4k | _memory_used_counter = | 606 | 82.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 82.4k | _common_profile->add_info_string("IsColocate", | 608 | 82.4k | std::to_string(_parent->is_colocated_operator())); | 609 | 82.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 82.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 82.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 82.4k | return Status::OK(); | 613 | 82.4k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 158 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 158 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 158 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 158 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 158 | _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 | 158 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 158 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 158 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 158 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 158 | if constexpr (!is_fake_shared) { | 560 | 158 | 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 | 158 | } 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 | 158 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 158 | _dependency = _shared_state->create_source_dependency( | 576 | 158 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 158 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 158 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 158 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 158 | } | 585 | | | 586 | 158 | 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 | 158 | _rows_returned_counter = | 591 | 158 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 158 | _blocks_returned_counter = | 593 | 158 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 158 | _output_block_bytes_counter = | 595 | 158 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 158 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 158 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 158 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 158 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 158 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 158 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 158 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 158 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 158 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 158 | _memory_used_counter = | 606 | 158 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 158 | _common_profile->add_info_string("IsColocate", | 608 | 158 | std::to_string(_parent->is_colocated_operator())); | 609 | 158 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 158 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 158 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 158 | return Status::OK(); | 613 | 158 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 899k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 899k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 899k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 899k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 899k | _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 | 899k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 899k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 899k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 899k | 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 | 899k | 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 | 899k | _rows_returned_counter = | 591 | 899k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 899k | _blocks_returned_counter = | 593 | 899k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 899k | _output_block_bytes_counter = | 595 | 899k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 899k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 899k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 899k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 899k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 899k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 899k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 899k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 899k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 899k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 899k | _memory_used_counter = | 606 | 899k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 899k | _common_profile->add_info_string("IsColocate", | 608 | 899k | std::to_string(_parent->is_colocated_operator())); | 609 | 899k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 899k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 899k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 899k | return Status::OK(); | 613 | 899k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 53.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 53.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 53.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 53.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 53.8k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 53.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 53.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 53.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 53.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 53.8k | if constexpr (!is_fake_shared) { | 560 | 53.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 53.8k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 3.98k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 3.98k | _dependency = _shared_state->create_source_dependency( | 576 | 3.98k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 3.98k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 3.98k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 49.8k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 49.8k | } | 584 | 53.8k | } | 585 | | | 586 | 53.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 53.8k | _rows_returned_counter = | 591 | 53.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 53.8k | _blocks_returned_counter = | 593 | 53.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 53.8k | _output_block_bytes_counter = | 595 | 53.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 53.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 53.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 53.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 53.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 53.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 53.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 53.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 53.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 53.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 53.8k | _memory_used_counter = | 606 | 53.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 53.8k | _common_profile->add_info_string("IsColocate", | 608 | 53.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 53.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 53.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 53.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 53.8k | return Status::OK(); | 613 | 53.8k | } |
_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.42k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.42k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.42k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.42k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.42k | _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.42k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.42k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.42k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.42k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.42k | if constexpr (!is_fake_shared) { | 560 | 5.42k | 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.42k | } 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.40k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.40k | _dependency = _shared_state->create_source_dependency( | 576 | 5.40k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.40k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.40k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.40k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 17 | } | 584 | 5.42k | } | 585 | | | 586 | 5.42k | 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.42k | _rows_returned_counter = | 591 | 5.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.42k | _blocks_returned_counter = | 593 | 5.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.42k | _output_block_bytes_counter = | 595 | 5.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.42k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.42k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.42k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.42k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.42k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.42k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.42k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.42k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.42k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.42k | _memory_used_counter = | 606 | 5.42k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.42k | _common_profile->add_info_string("IsColocate", | 608 | 5.42k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.42k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.42k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.42k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.42k | return Status::OK(); | 613 | 5.42k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 377 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 377 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 377 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 377 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 377 | _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 | 377 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 377 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 377 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 377 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 377 | if constexpr (!is_fake_shared) { | 560 | 377 | 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 | 377 | } 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 | 377 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 377 | _dependency = _shared_state->create_source_dependency( | 576 | 377 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 377 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 377 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 377 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 377 | } | 585 | | | 586 | 377 | 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 | 377 | _rows_returned_counter = | 591 | 377 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 377 | _blocks_returned_counter = | 593 | 377 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 377 | _output_block_bytes_counter = | 595 | 377 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 377 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 377 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 377 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 377 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 377 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 377 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 377 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 377 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 377 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 377 | _memory_used_counter = | 606 | 377 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 377 | _common_profile->add_info_string("IsColocate", | 608 | 377 | std::to_string(_parent->is_colocated_operator())); | 609 | 377 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 377 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 377 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 377 | return Status::OK(); | 613 | 377 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.06k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.06k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.06k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.06k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.06k | _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.06k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.06k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.06k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.06k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.06k | if constexpr (!is_fake_shared) { | 560 | 5.06k | 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.06k | } 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.05k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.05k | _dependency = _shared_state->create_source_dependency( | 576 | 5.05k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.05k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.05k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.05k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 12 | } | 584 | 5.06k | } | 585 | | | 586 | 5.06k | 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.06k | _rows_returned_counter = | 591 | 5.06k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.06k | _blocks_returned_counter = | 593 | 5.06k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.06k | _output_block_bytes_counter = | 595 | 5.06k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.06k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.06k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.06k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.06k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.06k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.06k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.06k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.06k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.06k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.06k | _memory_used_counter = | 606 | 5.06k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.06k | _common_profile->add_info_string("IsColocate", | 608 | 5.06k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.06k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.06k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.06k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.06k | return Status::OK(); | 613 | 5.06k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 663k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 663k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 663k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 663k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 663k | _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 | 663k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 663k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 663k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 663k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 663k | if constexpr (!is_fake_shared) { | 560 | 663k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 656k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 656k | .first.get() | 563 | 656k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 656k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 656k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 656k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 656k | } else if (info.shared_state) { | 569 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | 0 | DCHECK(false); | 571 | 0 | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.96k | } else { | 580 | 6.96k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 6.96k | DCHECK(false); | 582 | 6.96k | } | 583 | 6.96k | } | 584 | 663k | } | 585 | | | 586 | 663k | 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 | 663k | _rows_returned_counter = | 591 | 663k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 663k | _blocks_returned_counter = | 593 | 663k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 663k | _output_block_bytes_counter = | 595 | 663k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 663k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 663k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 663k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 663k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 663k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 663k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 663k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 663k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 663k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 663k | _memory_used_counter = | 606 | 663k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 663k | _common_profile->add_info_string("IsColocate", | 608 | 663k | std::to_string(_parent->is_colocated_operator())); | 609 | 663k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 663k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 663k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 663k | return Status::OK(); | 613 | 663k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 169 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 169 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 169 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 169 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 169 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 169 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 169 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 169 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 169 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 169 | if constexpr (!is_fake_shared) { | 560 | 169 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 169 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 169 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 169 | _dependency = _shared_state->create_source_dependency( | 576 | 169 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 169 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 169 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 169 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 169 | } | 585 | | | 586 | 169 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 169 | _rows_returned_counter = | 591 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 169 | _blocks_returned_counter = | 593 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 169 | _output_block_bytes_counter = | 595 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 169 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 169 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 169 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 169 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 169 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 169 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 169 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 169 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 169 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 169 | _memory_used_counter = | 606 | 169 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 169 | _common_profile->add_info_string("IsColocate", | 608 | 169 | std::to_string(_parent->is_colocated_operator())); | 609 | 169 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 169 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 169 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 169 | return Status::OK(); | 613 | 169 | } |
|
614 | | |
615 | | template <typename SharedStateArg> |
616 | 2.09M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.09M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.39M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 299k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 299k | } |
621 | 2.09M | if (_parent->has_projection()) { |
622 | 371k | const auto& projection = *_parent->_projection; |
623 | 371k | _projections.resize(projection.projections.size()); |
624 | 2.32M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.95M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.95M | } |
627 | 371k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 384k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 13.0k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 192k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 179k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 179k | state, _intermediate_projections[i][j])); |
633 | 179k | } |
634 | 13.0k | } |
635 | 371k | } |
636 | 2.09M | return Status::OK(); |
637 | 2.09M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 68.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 68.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 69.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.53k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.53k | } | 621 | 68.0k | if (_parent->has_projection()) { | 622 | 67.9k | const auto& projection = *_parent->_projection; | 623 | 67.9k | _projections.resize(projection.projections.size()); | 624 | 375k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 307k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 307k | } | 627 | 67.9k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 74.5k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 6.56k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 151k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 144k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 144k | state, _intermediate_projections[i][j])); | 633 | 144k | } | 634 | 6.56k | } | 635 | 67.9k | } | 636 | 68.0k | return Status::OK(); | 637 | 68.0k | } |
_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 | 202k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 202k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 202k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 202k | 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 | 202k | return Status::OK(); | 637 | 202k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 24 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 24 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 24 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 24 | 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 | 24 | return Status::OK(); | 637 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.73k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.73k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.78k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 59 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 59 | } | 621 | 6.73k | if (_parent->has_projection()) { | 622 | 6.73k | const auto& projection = *_parent->_projection; | 623 | 6.73k | _projections.resize(projection.projections.size()); | 624 | 31.6k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 24.8k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 24.8k | } | 627 | 6.73k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.75k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 23 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 152 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 129 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 129 | state, _intermediate_projections[i][j])); | 633 | 129 | } | 634 | 23 | } | 635 | 6.73k | } | 636 | 6.73k | return Status::OK(); | 637 | 6.73k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 8.28k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 8.28k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 9.03k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 752 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 752 | } | 621 | 8.28k | if (_parent->has_projection()) { | 622 | 4.33k | const auto& projection = *_parent->_projection; | 623 | 4.33k | _projections.resize(projection.projections.size()); | 624 | 18.2k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 13.9k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 13.9k | } | 627 | 4.33k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.42k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 85 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 637 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 552 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 552 | state, _intermediate_projections[i][j])); | 633 | 552 | } | 634 | 85 | } | 635 | 4.33k | } | 636 | 8.28k | return Status::OK(); | 637 | 8.28k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 88.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 88.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 90.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.30k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.30k | } | 621 | 88.9k | if (_parent->has_projection()) { | 622 | 30.2k | const auto& projection = *_parent->_projection; | 623 | 30.2k | _projections.resize(projection.projections.size()); | 624 | 272k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 242k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 242k | } | 627 | 30.2k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 30.4k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 237 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.64k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.40k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.40k | state, _intermediate_projections[i][j])); | 633 | 1.40k | } | 634 | 237 | } | 635 | 30.2k | } | 636 | 88.9k | return Status::OK(); | 637 | 88.9k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 82.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 82.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 82.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 19 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 19 | } | 621 | 82.4k | if (_parent->has_projection()) { | 622 | 149 | const auto& projection = *_parent->_projection; | 623 | 149 | _projections.resize(projection.projections.size()); | 624 | 821 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 672 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 672 | } | 627 | 149 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 149 | 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 | 149 | } | 636 | 82.4k | return Status::OK(); | 637 | 82.4k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 162 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 162 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 162 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 162 | if (_parent->has_projection()) { | 622 | 134 | const auto& projection = *_parent->_projection; | 623 | 134 | _projections.resize(projection.projections.size()); | 624 | 402 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 268 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 268 | } | 627 | 134 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 134 | 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 | 134 | } | 636 | 162 | return Status::OK(); | 637 | 162 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 903k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 903k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.19M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 295k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 295k | } | 621 | 903k | if (_parent->has_projection()) { | 622 | 250k | const auto& projection = *_parent->_projection; | 623 | 250k | _projections.resize(projection.projections.size()); | 624 | 1.51M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.26M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.26M | } | 627 | 250k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 256k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 6.00k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 37.3k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 31.3k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 31.3k | state, _intermediate_projections[i][j])); | 633 | 31.3k | } | 634 | 6.00k | } | 635 | 250k | } | 636 | 903k | return Status::OK(); | 637 | 903k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 54.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 54.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 54.1k | 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.1k | if (_parent->has_projection()) { | 622 | 11.1k | const auto& projection = *_parent->_projection; | 623 | 11.1k | _projections.resize(projection.projections.size()); | 624 | 109k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 98.3k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 98.3k | } | 627 | 11.1k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.2k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 88 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.76k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.68k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.68k | state, _intermediate_projections[i][j])); | 633 | 1.68k | } | 634 | 88 | } | 635 | 11.1k | } | 636 | 54.1k | return Status::OK(); | 637 | 54.1k | } |
_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.40k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.40k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.20k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 801 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 801 | } | 621 | 5.40k | 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.40k | return Status::OK(); | 637 | 5.40k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 377 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 377 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 377 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 377 | 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 | 377 | return Status::OK(); | 637 | 377 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.06k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.06k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.06k | 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.06k | 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.06k | return Status::OK(); | 637 | 5.06k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 666k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 666k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 666k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 666k | 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 | 666k | return Status::OK(); | 637 | 666k | } |
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.74k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 8.74k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 8.74k | _terminated = true; |
645 | 8.74k | return Status::OK(); |
646 | 8.74k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 403 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 403 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 403 | _terminated = true; | 645 | 403 | return Status::OK(); | 646 | 403 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 24 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 24 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 24 | _terminated = true; | 645 | 24 | return Status::OK(); | 646 | 24 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 69 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 69 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 69 | _terminated = true; | 645 | 69 | return Status::OK(); | 646 | 69 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 107 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 107 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 107 | _terminated = true; | 645 | 107 | return Status::OK(); | 646 | 107 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 6.75k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 6.75k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 6.75k | _terminated = true; | 645 | 6.75k | return Status::OK(); | 646 | 6.75k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 51 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 51 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 51 | _terminated = true; | 645 | 51 | return Status::OK(); | 646 | 51 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 61 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 61 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 61 | _terminated = true; | 645 | 61 | return Status::OK(); | 646 | 61 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.23k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.23k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1.23k | _terminated = true; | 645 | 1.23k | return Status::OK(); | 646 | 1.23k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 37 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 37 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 37 | _terminated = true; | 645 | 37 | return Status::OK(); | 646 | 37 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.32M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.32M | if (_closed) { |
651 | 230k | return Status::OK(); |
652 | 230k | } |
653 | 2.09M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.18M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.18M | } |
656 | 2.09M | _closed = true; |
657 | 2.09M | return Status::OK(); |
658 | 2.32M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 67.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 67.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 67.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 67.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 67.9k | } | 656 | 67.9k | _closed = true; | 657 | 67.9k | return Status::OK(); | 658 | 67.9k | } |
_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 | 401k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 401k | if (_closed) { | 651 | 201k | return Status::OK(); | 652 | 201k | } | 653 | 199k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 199k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 199k | } | 656 | 199k | _closed = true; | 657 | 199k | return Status::OK(); | 658 | 401k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 24 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 24 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 24 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 24 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 24 | } | 656 | 24 | _closed = true; | 657 | 24 | return Status::OK(); | 658 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.71k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.71k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.71k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.71k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.71k | } | 656 | 6.71k | _closed = true; | 657 | 6.71k | return Status::OK(); | 658 | 6.71k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 16.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 16.6k | if (_closed) { | 651 | 8.38k | return Status::OK(); | 652 | 8.38k | } | 653 | 8.25k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 8.25k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 8.25k | } | 656 | 8.25k | _closed = true; | 657 | 8.25k | return Status::OK(); | 658 | 16.6k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 88.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 88.7k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 88.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 88.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 88.7k | } | 656 | 88.7k | _closed = true; | 657 | 88.7k | return Status::OK(); | 658 | 88.7k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 81.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 81.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 81.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 81.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 81.9k | } | 656 | 81.9k | _closed = true; | 657 | 81.9k | return Status::OK(); | 658 | 81.9k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 157 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 157 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 157 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 157 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 157 | } | 656 | 157 | _closed = true; | 657 | 157 | return Status::OK(); | 658 | 157 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 919k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 919k | if (_closed) { | 651 | 15.4k | return Status::OK(); | 652 | 15.4k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 904k | _closed = true; | 657 | 904k | return Status::OK(); | 658 | 919k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 54.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 54.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 54.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 54.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 54.1k | } | 656 | 54.1k | _closed = true; | 657 | 54.1k | return Status::OK(); | 658 | 54.1k | } |
_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.38k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.38k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.38k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.38k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.38k | } | 656 | 5.38k | _closed = true; | 657 | 5.38k | return Status::OK(); | 658 | 5.38k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 549 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 549 | if (_closed) { | 651 | 274 | return Status::OK(); | 652 | 274 | } | 653 | 275 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 275 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 275 | } | 656 | 275 | _closed = true; | 657 | 275 | return Status::OK(); | 658 | 549 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.1k | if (_closed) { | 651 | 5.14k | return Status::OK(); | 652 | 5.14k | } | 653 | 5.04k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.04k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.04k | } | 656 | 5.04k | _closed = true; | 657 | 5.04k | return Status::OK(); | 658 | 10.1k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 668k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 668k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 668k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 668k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 668k | } | 656 | 668k | _closed = true; | 657 | 668k | return Status::OK(); | 658 | 668k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 333 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 333 | if (_closed) { | 651 | 173 | return Status::OK(); | 652 | 173 | } | 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 | 333 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.72M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.72M | _operator_profile = |
664 | 1.72M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.72M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.72M | _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.72M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.72M | _operator_profile->add_child(_common_profile, true); |
673 | 1.72M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.72M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.72M | _wait_for_finish_dependency_timer = |
677 | 1.72M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.72M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.72M | if constexpr (!is_fake_shared) { |
680 | 1.22M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.22M | info.shared_state_map.end()) { |
682 | 343k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 246k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 246k | } |
685 | 343k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 343k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 343k | ? 0 |
688 | 343k | : info.task_idx] |
689 | 343k | .get(); |
690 | 343k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 879k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 879k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 879k | _dependency = _shared_state->create_sink_dependency( |
697 | 879k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 879k | } |
699 | 1.22M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.22M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.22M | } |
702 | | |
703 | 1.72M | 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.72M | _rows_input_counter = |
708 | 1.72M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.72M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.72M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.72M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.72M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.72M | _memory_used_counter = |
714 | 1.72M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.72M | _common_profile->add_info_string("IsColocate", |
716 | 1.72M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.72M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.72M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.72M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.72M | return Status::OK(); |
721 | 1.72M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 115k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 115k | _operator_profile = | 664 | 115k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 115k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 115k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 115k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 115k | _operator_profile->add_child(_common_profile, true); | 673 | 115k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 115k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 115k | _wait_for_finish_dependency_timer = | 677 | 115k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 115k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 115k | if constexpr (!is_fake_shared) { | 680 | 115k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 115k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 14.0k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 14.0k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 14.0k | ? 0 | 688 | 14.0k | : info.task_idx] | 689 | 14.0k | .get(); | 690 | 14.0k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 101k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 101k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 101k | _dependency = _shared_state->create_sink_dependency( | 697 | 101k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 101k | } | 699 | 115k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 115k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 115k | } | 702 | | | 703 | 115k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 115k | _rows_input_counter = | 708 | 115k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 115k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 115k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 115k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 115k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 115k | _memory_used_counter = | 714 | 115k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 115k | _common_profile->add_info_string("IsColocate", | 716 | 115k | std::to_string(_parent->is_colocated_operator())); | 717 | 115k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 115k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 115k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 115k | return Status::OK(); | 721 | 115k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2 | _operator_profile = | 664 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2 | _operator_profile->add_child(_common_profile, true); | 673 | 2 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2 | _wait_for_finish_dependency_timer = | 677 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2 | if constexpr (!is_fake_shared) { | 680 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2 | _dependency = _shared_state->create_sink_dependency( | 697 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2 | } | 699 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2 | } | 702 | | | 703 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2 | _rows_input_counter = | 708 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2 | _memory_used_counter = | 714 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2 | _common_profile->add_info_string("IsColocate", | 716 | 2 | std::to_string(_parent->is_colocated_operator())); | 717 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2 | return Status::OK(); | 721 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 201k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 201k | _operator_profile = | 664 | 201k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 201k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 201k | _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 | 201k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 201k | _operator_profile->add_child(_common_profile, true); | 673 | 201k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 201k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 201k | _wait_for_finish_dependency_timer = | 677 | 201k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 201k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 201k | if constexpr (!is_fake_shared) { | 680 | 201k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 201k | 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 | 201k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 201k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 201k | _dependency = _shared_state->create_sink_dependency( | 697 | 201k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 201k | } | 699 | 201k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 201k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 201k | } | 702 | | | 703 | 201k | 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 | 201k | _rows_input_counter = | 708 | 201k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 201k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 201k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 201k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 201k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 201k | _memory_used_counter = | 714 | 201k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 201k | _common_profile->add_info_string("IsColocate", | 716 | 201k | std::to_string(_parent->is_colocated_operator())); | 717 | 201k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 201k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 201k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 201k | return Status::OK(); | 721 | 201k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 31 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 31 | _operator_profile = | 664 | 31 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 31 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 31 | _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 | 31 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 31 | _operator_profile->add_child(_common_profile, true); | 673 | 31 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 31 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 31 | _wait_for_finish_dependency_timer = | 677 | 31 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 31 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 31 | if constexpr (!is_fake_shared) { | 680 | 31 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 31 | 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 | 31 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 31 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 31 | _dependency = _shared_state->create_sink_dependency( | 697 | 31 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 31 | } | 699 | 31 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 31 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 31 | } | 702 | | | 703 | 31 | 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 | 31 | _rows_input_counter = | 708 | 31 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 31 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 31 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 31 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 31 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 31 | _memory_used_counter = | 714 | 31 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 31 | _common_profile->add_info_string("IsColocate", | 716 | 31 | std::to_string(_parent->is_colocated_operator())); | 717 | 31 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 31 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 31 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 31 | return Status::OK(); | 721 | 31 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.73k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.73k | _operator_profile = | 664 | 6.73k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.73k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.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 | 6.73k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.73k | _operator_profile->add_child(_common_profile, true); | 673 | 6.73k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.73k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.73k | _wait_for_finish_dependency_timer = | 677 | 6.73k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.73k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.73k | if constexpr (!is_fake_shared) { | 680 | 6.73k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.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 | 6.73k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.73k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.73k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.73k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.73k | } | 699 | 6.73k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.73k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.73k | } | 702 | | | 703 | 6.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 | 6.73k | _rows_input_counter = | 708 | 6.73k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.73k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.73k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.73k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.73k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.73k | _memory_used_counter = | 714 | 6.73k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.73k | _common_profile->add_info_string("IsColocate", | 716 | 6.73k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.73k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.73k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.73k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.73k | return Status::OK(); | 721 | 6.73k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.27k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.27k | _operator_profile = | 664 | 8.27k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.27k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.27k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.27k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.27k | _operator_profile->add_child(_common_profile, true); | 673 | 8.27k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.27k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.27k | _wait_for_finish_dependency_timer = | 677 | 8.27k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.27k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.27k | if constexpr (!is_fake_shared) { | 680 | 8.27k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.27k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.27k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.27k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.27k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.27k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.27k | } | 699 | 8.27k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.27k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.27k | } | 702 | | | 703 | 8.27k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.27k | _rows_input_counter = | 708 | 8.27k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.27k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.27k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.27k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.27k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.27k | _memory_used_counter = | 714 | 8.27k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.27k | _common_profile->add_info_string("IsColocate", | 716 | 8.27k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.27k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.27k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.27k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.27k | return Status::OK(); | 721 | 8.27k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 88.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 88.7k | _operator_profile = | 664 | 88.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 88.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 88.7k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 88.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 88.7k | _operator_profile->add_child(_common_profile, true); | 673 | 88.7k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 88.7k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 88.7k | _wait_for_finish_dependency_timer = | 677 | 88.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 88.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 88.7k | if constexpr (!is_fake_shared) { | 680 | 88.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 88.7k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 88.7k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 88.7k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 88.7k | _dependency = _shared_state->create_sink_dependency( | 697 | 88.7k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 88.7k | } | 699 | 88.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 88.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 88.7k | } | 702 | | | 703 | 88.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 88.7k | _rows_input_counter = | 708 | 88.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 88.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 88.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 88.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 88.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 88.7k | _memory_used_counter = | 714 | 88.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 88.7k | _common_profile->add_info_string("IsColocate", | 716 | 88.7k | std::to_string(_parent->is_colocated_operator())); | 717 | 88.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 88.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 88.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 88.7k | return Status::OK(); | 721 | 88.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 82.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 82.3k | _operator_profile = | 664 | 82.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 82.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 82.3k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 82.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 82.3k | _operator_profile->add_child(_common_profile, true); | 673 | 82.3k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 82.3k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 82.3k | _wait_for_finish_dependency_timer = | 677 | 82.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 82.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 82.3k | if constexpr (!is_fake_shared) { | 680 | 82.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 82.4k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 82.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 82.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 82.4k | ? 0 | 688 | 82.4k | : info.task_idx] | 689 | 82.4k | .get(); | 690 | 82.4k | _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 | 82.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 82.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 82.3k | } | 702 | | | 703 | 82.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 82.3k | _rows_input_counter = | 708 | 82.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 82.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 82.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 82.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 82.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 82.3k | _memory_used_counter = | 714 | 82.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 82.3k | _common_profile->add_info_string("IsColocate", | 716 | 82.3k | std::to_string(_parent->is_colocated_operator())); | 717 | 82.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 82.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 82.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 82.3k | return Status::OK(); | 721 | 82.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 168 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 168 | _operator_profile = | 664 | 168 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 168 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 168 | _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 | 168 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 168 | _operator_profile->add_child(_common_profile, true); | 673 | 168 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 168 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 168 | _wait_for_finish_dependency_timer = | 677 | 168 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 168 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 168 | if constexpr (!is_fake_shared) { | 680 | 168 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 168 | 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 | 168 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 168 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 168 | _dependency = _shared_state->create_sink_dependency( | 697 | 168 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 168 | } | 699 | 168 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 168 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 168 | } | 702 | | | 703 | 168 | 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 | 168 | _rows_input_counter = | 708 | 168 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 168 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 168 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 168 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 168 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 168 | _memory_used_counter = | 714 | 168 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 168 | _common_profile->add_info_string("IsColocate", | 716 | 168 | std::to_string(_parent->is_colocated_operator())); | 717 | 168 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 168 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 168 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 168 | return Status::OK(); | 721 | 168 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 505k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 505k | _operator_profile = | 664 | 505k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 505k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 505k | _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 | 505k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 505k | _operator_profile->add_child(_common_profile, true); | 673 | 505k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 505k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 505k | _wait_for_finish_dependency_timer = | 677 | 505k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 505k | 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 | 505k | 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 | 505k | _rows_input_counter = | 708 | 505k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 505k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 505k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 505k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 505k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 505k | _memory_used_counter = | 714 | 505k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 505k | _common_profile->add_info_string("IsColocate", | 716 | 505k | std::to_string(_parent->is_colocated_operator())); | 717 | 505k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 505k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 505k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 505k | return Status::OK(); | 721 | 505k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 9.60k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 9.60k | _operator_profile = | 664 | 9.60k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 9.60k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 9.60k | _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 | 9.60k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 9.60k | _operator_profile->add_child(_common_profile, true); | 673 | 9.60k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 9.60k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 9.60k | _wait_for_finish_dependency_timer = | 677 | 9.60k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 9.60k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 9.60k | if constexpr (!is_fake_shared) { | 680 | 9.60k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 9.60k | 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 | 9.60k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 9.60k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 9.60k | _dependency = _shared_state->create_sink_dependency( | 697 | 9.60k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 9.60k | } | 699 | 9.60k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 9.60k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 9.60k | } | 702 | | | 703 | 9.60k | 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 | 9.60k | _rows_input_counter = | 708 | 9.60k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 9.60k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 9.60k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 9.60k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 9.60k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 9.60k | _memory_used_counter = | 714 | 9.60k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 9.60k | _common_profile->add_info_string("IsColocate", | 716 | 9.60k | std::to_string(_parent->is_colocated_operator())); | 717 | 9.60k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 9.60k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 9.60k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 9.60k | return Status::OK(); | 721 | 9.60k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 377 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 377 | _operator_profile = | 664 | 377 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 377 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 377 | _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 | 377 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 377 | _operator_profile->add_child(_common_profile, true); | 673 | 377 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 377 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 377 | _wait_for_finish_dependency_timer = | 677 | 377 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 377 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 377 | if constexpr (!is_fake_shared) { | 680 | 377 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 377 | 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 | 377 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 377 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 377 | _dependency = _shared_state->create_sink_dependency( | 697 | 377 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 377 | } | 699 | 377 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 377 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 377 | } | 702 | | | 703 | 377 | 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 | 377 | _rows_input_counter = | 708 | 377 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 377 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 377 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 377 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 377 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 377 | _memory_used_counter = | 714 | 377 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 377 | _common_profile->add_info_string("IsColocate", | 716 | 377 | std::to_string(_parent->is_colocated_operator())); | 717 | 377 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 377 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 377 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 377 | return Status::OK(); | 721 | 377 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.21k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.21k | _operator_profile = | 664 | 2.21k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.21k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.21k | _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.21k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.21k | _operator_profile->add_child(_common_profile, true); | 673 | 2.21k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.21k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.21k | _wait_for_finish_dependency_timer = | 677 | 2.21k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.21k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.21k | if constexpr (!is_fake_shared) { | 680 | 2.21k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.21k | 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.21k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.21k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.21k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.21k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.21k | } | 699 | 2.21k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.21k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.21k | } | 702 | | | 703 | 2.21k | 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.21k | _rows_input_counter = | 708 | 2.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.21k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.21k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.21k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.21k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.21k | _memory_used_counter = | 714 | 2.21k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.21k | _common_profile->add_info_string("IsColocate", | 716 | 2.21k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.21k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.21k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.21k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.21k | return Status::OK(); | 721 | 2.21k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.3k | _operator_profile = | 664 | 12.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.3k | _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.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.3k | _operator_profile->add_child(_common_profile, true); | 673 | 12.3k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.3k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.3k | _wait_for_finish_dependency_timer = | 677 | 12.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.3k | if constexpr (!is_fake_shared) { | 680 | 12.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.3k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 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.3k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.3k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.3k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.3k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.3k | } | 699 | 12.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.3k | } | 702 | | | 703 | 12.3k | 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.3k | _rows_input_counter = | 708 | 12.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.3k | _memory_used_counter = | 714 | 12.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.3k | _common_profile->add_info_string("IsColocate", | 716 | 12.3k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.3k | return Status::OK(); | 721 | 12.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 246k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 246k | _operator_profile = | 664 | 246k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 246k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 246k | _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 | 246k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 246k | _operator_profile->add_child(_common_profile, true); | 673 | 246k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 246k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 246k | _wait_for_finish_dependency_timer = | 677 | 246k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 246k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 246k | if constexpr (!is_fake_shared) { | 680 | 246k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 246k | info.shared_state_map.end()) { | 682 | 246k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 246k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 246k | } | 685 | 246k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 246k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 246k | ? 0 | 688 | 246k | : info.task_idx] | 689 | 246k | .get(); | 690 | 246k | _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 | 246k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 246k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 246k | } | 702 | | | 703 | 246k | 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 | 246k | _rows_input_counter = | 708 | 246k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 246k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 246k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 246k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 246k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 246k | _memory_used_counter = | 714 | 246k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 246k | _common_profile->add_info_string("IsColocate", | 716 | 246k | std::to_string(_parent->is_colocated_operator())); | 717 | 246k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 246k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 246k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 246k | return Status::OK(); | 721 | 246k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 447k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 447k | _operator_profile = | 664 | 447k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 447k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 447k | _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 | 447k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 447k | _operator_profile->add_child(_common_profile, true); | 673 | 447k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 447k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 447k | _wait_for_finish_dependency_timer = | 677 | 447k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 447k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 447k | if constexpr (!is_fake_shared) { | 680 | 447k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 447k | 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 | 447k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 447k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 447k | _dependency = _shared_state->create_sink_dependency( | 697 | 447k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 447k | } | 699 | 447k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 447k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 447k | } | 702 | | | 703 | 447k | 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 | 447k | _rows_input_counter = | 708 | 447k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 447k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 447k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 447k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 447k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 447k | _memory_used_counter = | 714 | 447k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 447k | _common_profile->add_info_string("IsColocate", | 716 | 447k | std::to_string(_parent->is_colocated_operator())); | 717 | 447k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 447k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 447k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 447k | return Status::OK(); | 721 | 447k | } |
_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.73M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.73M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.73M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.22M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.22M | } |
731 | 1.73M | _closed = true; |
732 | 1.73M | return Status::OK(); |
733 | 1.73M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 115k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 115k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 115k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 115k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 115k | } | 731 | 115k | _closed = true; | 732 | 115k | return Status::OK(); | 733 | 115k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1 | } | 731 | 1 | _closed = true; | 732 | 1 | return Status::OK(); | 733 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 201k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 201k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 201k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 201k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 201k | } | 731 | 201k | _closed = true; | 732 | 201k | return Status::OK(); | 733 | 201k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 22 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 22 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 20 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 20 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 20 | } | 731 | 20 | _closed = true; | 732 | 20 | return Status::OK(); | 733 | 22 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.66k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.66k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.66k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.66k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.66k | } | 731 | 6.66k | _closed = true; | 732 | 6.66k | return Status::OK(); | 733 | 6.66k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.24k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.24k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.24k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.24k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.24k | } | 731 | 8.24k | _closed = true; | 732 | 8.24k | return Status::OK(); | 733 | 8.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 88.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 88.5k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 88.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 88.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 88.5k | } | 731 | 88.5k | _closed = true; | 732 | 88.5k | return Status::OK(); | 733 | 88.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 81.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 81.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 81.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 81.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 81.9k | } | 731 | 81.9k | _closed = true; | 732 | 81.9k | return Status::OK(); | 733 | 81.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 157 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 157 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 157 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 157 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 157 | } | 731 | 157 | _closed = true; | 732 | 157 | return Status::OK(); | 733 | 157 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 509k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 509k | 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 | 509k | _closed = true; | 732 | 509k | return Status::OK(); | 733 | 509k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 9.59k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 9.59k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 9.59k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 9.59k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 9.59k | } | 731 | 9.59k | _closed = true; | 732 | 9.59k | return Status::OK(); | 733 | 9.59k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 274 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 274 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 274 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 274 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 274 | } | 731 | 274 | _closed = true; | 732 | 274 | return Status::OK(); | 733 | 274 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.22k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.22k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.22k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.22k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.22k | } | 731 | 2.22k | _closed = true; | 732 | 2.22k | return Status::OK(); | 733 | 2.22k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.3k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.3k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.3k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.3k | } | 731 | 12.3k | _closed = true; | 732 | 12.3k | return Status::OK(); | 733 | 12.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 247k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 247k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 247k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 247k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 247k | } | 731 | 247k | _closed = true; | 732 | 247k | return Status::OK(); | 733 | 247k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 449k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 449k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 449k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 449k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 449k | } | 731 | 449k | _closed = true; | 732 | 449k | return Status::OK(); | 733 | 449k | } |
_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 | 337 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 337 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 337 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 337 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 337 | } | 731 | 337 | _closed = true; | 732 | 337 | return Status::OK(); | 733 | 337 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 8.11k | bool* eos) { |
738 | 8.11k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 8.10k | return pull(state, block, eos); |
740 | 8.11k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 38 | bool* eos) { | 738 | 38 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 38 | return pull(state, block, eos); | 740 | 38 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 8.07k | bool* eos) { | 738 | 8.07k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 8.06k | return pull(state, block, eos); | 740 | 8.07k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 573k | bool* eos) { |
745 | 573k | auto& local_state = get_local_state(state); |
746 | 573k | if (need_more_input_data(state)) { |
747 | 545k | local_state._child_block->clear_column_data( |
748 | 545k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 545k | .num_materialized_slots()); |
750 | 545k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 545k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 545k | *eos = local_state._child_eos; |
753 | 545k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 70.8k | return Status::OK(); |
755 | 70.8k | } |
756 | 474k | { |
757 | 474k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 474k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 474k | } |
760 | 474k | } |
761 | | |
762 | 502k | if (!need_more_input_data(state)) { |
763 | 477k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 477k | bool new_eos = false; |
765 | 477k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 477k | if (new_eos) { |
767 | 400k | *eos = true; |
768 | 400k | } else if (!need_more_input_data(state)) { |
769 | 21.6k | *eos = false; |
770 | 21.6k | } |
771 | 477k | } |
772 | 502k | return Status::OK(); |
773 | 502k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 147k | bool* eos) { | 745 | 147k | auto& local_state = get_local_state(state); | 746 | 147k | if (need_more_input_data(state)) { | 747 | 131k | local_state._child_block->clear_column_data( | 748 | 131k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 131k | .num_materialized_slots()); | 750 | 131k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 131k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 131k | *eos = local_state._child_eos; | 753 | 131k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 47.6k | return Status::OK(); | 755 | 47.6k | } | 756 | 83.6k | { | 757 | 83.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 83.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 83.6k | } | 760 | 83.6k | } | 761 | | | 762 | 100k | if (!need_more_input_data(state)) { | 763 | 100k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 100k | bool new_eos = false; | 765 | 100k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 100k | if (new_eos) { | 767 | 43.6k | *eos = true; | 768 | 56.4k | } else if (!need_more_input_data(state)) { | 769 | 9.06k | *eos = false; | 770 | 9.06k | } | 771 | 100k | } | 772 | 100k | return Status::OK(); | 773 | 100k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.26k | bool* eos) { | 745 | 4.26k | auto& local_state = get_local_state(state); | 746 | 4.26k | if (need_more_input_data(state)) { | 747 | 2.30k | local_state._child_block->clear_column_data( | 748 | 2.30k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.30k | .num_materialized_slots()); | 750 | 2.30k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.30k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.30k | *eos = local_state._child_eos; | 753 | 2.30k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 659 | return Status::OK(); | 755 | 659 | } | 756 | 1.64k | { | 757 | 1.64k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.64k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.64k | } | 760 | 1.64k | } | 761 | | | 762 | 3.61k | if (!need_more_input_data(state)) { | 763 | 3.61k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.61k | bool new_eos = false; | 765 | 3.61k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.61k | if (new_eos) { | 767 | 932 | *eos = true; | 768 | 2.68k | } else if (!need_more_input_data(state)) { | 769 | 1.96k | *eos = false; | 770 | 1.96k | } | 771 | 3.61k | } | 772 | 3.60k | return Status::OK(); | 773 | 3.60k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.82k | bool* eos) { | 745 | 1.82k | auto& local_state = get_local_state(state); | 746 | 1.82k | if (need_more_input_data(state)) { | 747 | 1.82k | local_state._child_block->clear_column_data( | 748 | 1.82k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.82k | .num_materialized_slots()); | 750 | 1.82k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.82k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.82k | *eos = local_state._child_eos; | 753 | 1.82k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 761 | return Status::OK(); | 755 | 761 | } | 756 | 1.06k | { | 757 | 1.06k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.06k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.06k | } | 760 | 1.06k | } | 761 | | | 762 | 1.06k | if (!need_more_input_data(state)) { | 763 | 1.06k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.06k | bool new_eos = false; | 765 | 1.06k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.06k | if (new_eos) { | 767 | 783 | *eos = true; | 768 | 783 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.06k | } | 772 | 1.06k | return Status::OK(); | 773 | 1.06k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 22.2k | bool* eos) { | 745 | 22.2k | auto& local_state = get_local_state(state); | 746 | 22.2k | if (need_more_input_data(state)) { | 747 | 22.2k | local_state._child_block->clear_column_data( | 748 | 22.2k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 22.2k | .num_materialized_slots()); | 750 | 22.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 22.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 22.2k | *eos = local_state._child_eos; | 753 | 22.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 7.97k | return Status::OK(); | 755 | 7.97k | } | 756 | 14.2k | { | 757 | 14.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 14.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 14.2k | } | 760 | 14.2k | } | 761 | | | 762 | 14.2k | if (!need_more_input_data(state)) { | 763 | 7.58k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.58k | bool new_eos = false; | 765 | 7.58k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.58k | if (new_eos) { | 767 | 7.48k | *eos = true; | 768 | 7.48k | } else if (!need_more_input_data(state)) { | 769 | 13 | *eos = false; | 770 | 13 | } | 771 | 7.58k | } | 772 | 14.2k | return Status::OK(); | 773 | 14.2k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 367k | bool* eos) { | 745 | 367k | auto& local_state = get_local_state(state); | 746 | 368k | if (need_more_input_data(state)) { | 747 | 368k | local_state._child_block->clear_column_data( | 748 | 368k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 368k | .num_materialized_slots()); | 750 | 368k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 368k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 368k | *eos = local_state._child_eos; | 753 | 368k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 12.1k | return Status::OK(); | 755 | 12.1k | } | 756 | 356k | { | 757 | 356k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 356k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 356k | } | 760 | 356k | } | 761 | | | 762 | 355k | if (!need_more_input_data(state)) { | 763 | 337k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 337k | bool new_eos = false; | 765 | 337k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 337k | if (new_eos) { | 767 | 336k | *eos = true; | 768 | 336k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 337k | } | 772 | 355k | return Status::OK(); | 773 | 355k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 21.7k | bool* eos) { | 745 | 21.7k | auto& local_state = get_local_state(state); | 746 | 21.7k | if (need_more_input_data(state)) { | 747 | 11.4k | local_state._child_block->clear_column_data( | 748 | 11.4k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 11.4k | .num_materialized_slots()); | 750 | 11.4k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 11.4k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 11.4k | *eos = local_state._child_eos; | 753 | 11.4k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 643 | return Status::OK(); | 755 | 643 | } | 756 | 10.8k | { | 757 | 10.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.8k | } | 760 | 10.8k | } | 761 | | | 762 | 21.0k | if (!need_more_input_data(state)) { | 763 | 20.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 20.5k | bool new_eos = false; | 765 | 20.5k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 20.5k | if (new_eos) { | 767 | 6.68k | *eos = true; | 768 | 13.8k | } else if (!need_more_input_data(state)) { | 769 | 10.2k | *eos = false; | 770 | 10.2k | } | 771 | 20.5k | } | 772 | 21.0k | return Status::OK(); | 773 | 21.0k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 8.07k | bool* eos) { | 745 | 8.07k | auto& local_state = get_local_state(state); | 746 | 8.07k | if (need_more_input_data(state)) { | 747 | 7.71k | local_state._child_block->clear_column_data( | 748 | 7.71k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.71k | .num_materialized_slots()); | 750 | 7.71k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.71k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.71k | *eos = local_state._child_eos; | 753 | 7.71k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 1.00k | return Status::OK(); | 755 | 1.00k | } | 756 | 6.71k | { | 757 | 6.71k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.71k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.71k | } | 760 | 6.71k | } | 761 | | | 762 | 7.07k | if (!need_more_input_data(state)) { | 763 | 7.07k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.07k | bool new_eos = false; | 765 | 7.07k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.07k | if (new_eos) { | 767 | 4.95k | *eos = true; | 768 | 4.95k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 7.07k | } | 772 | 7.07k | return Status::OK(); | 773 | 7.07k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
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_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 360 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 360 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 360 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 360 | "AsyncWriterDependency", true); | 781 | 360 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 360 | _finish_dependency)); | 783 | | | 784 | 360 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 360 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 360 | return Status::OK(); | 787 | 360 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 45.3k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 45.3k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 45.3k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 45.3k | "AsyncWriterDependency", true); | 781 | 45.3k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 45.3k | _finish_dependency)); | 783 | | | 784 | 45.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 45.3k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 45.3k | return Status::OK(); | 787 | 45.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 34 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 34 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 34 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 34 | "AsyncWriterDependency", true); | 781 | 34 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 34 | _finish_dependency)); | 783 | | | 784 | 34 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 34 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 34 | return Status::OK(); | 787 | 34 | } |
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.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 46.0k | RETURN_IF_ERROR(Base::open(state)); |
793 | 46.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 359k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 313k | RETURN_IF_ERROR( |
796 | 313k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 313k | } |
798 | 46.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 46.0k | return Status::OK(); |
800 | 46.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 360 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 360 | RETURN_IF_ERROR(Base::open(state)); | 793 | 360 | _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 | 360 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 360 | return Status::OK(); | 800 | 360 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 45.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 45.6k | RETURN_IF_ERROR(Base::open(state)); | 793 | 45.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 357k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 311k | RETURN_IF_ERROR( | 796 | 311k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 311k | } | 798 | 45.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 45.6k | return Status::OK(); | 800 | 45.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 34 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 34 | RETURN_IF_ERROR(Base::open(state)); | 793 | 34 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 612 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 578 | RETURN_IF_ERROR( | 796 | 578 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 578 | } | 798 | 34 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 34 | return Status::OK(); | 800 | 34 | } |
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.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 61.2k | return _writer->sink(block, eos); |
806 | 61.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.50k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.50k | return _writer->sink(block, eos); | 806 | 1.50k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 59.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 59.7k | return _writer->sink(block, eos); | 806 | 59.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 34 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 34 | return _writer->sink(block, eos); | 806 | 34 | } |
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.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 46.1k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 46.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 46.1k | 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.2k | if (_writer) { |
818 | 46.2k | Status st = _writer->get_writer_status(); |
819 | 46.2k | if (exec_status.ok()) { |
820 | 46.1k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 46.1k | : Status::Cancelled("force close")); |
822 | 46.1k | } else { |
823 | 61 | _writer->force_close(exec_status); |
824 | 61 | } |
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.2k | RETURN_IF_ERROR(st); |
829 | 46.2k | } |
830 | 46.1k | return Base::close(state, exec_status); |
831 | 46.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 346 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 346 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 346 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 346 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 346 | if (_writer) { | 818 | 346 | Status st = _writer->get_writer_status(); | 819 | 346 | if (exec_status.ok()) { | 820 | 346 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 346 | : Status::Cancelled("force close")); | 822 | 346 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 346 | RETURN_IF_ERROR(st); | 829 | 346 | } | 830 | 346 | return Base::close(state, exec_status); | 831 | 346 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 45.8k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 45.8k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 45.8k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 45.8k | 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 | 45.8k | if (_writer) { | 818 | 45.8k | Status st = _writer->get_writer_status(); | 819 | 45.8k | if (exec_status.ok()) { | 820 | 45.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 45.7k | : Status::Cancelled("force close")); | 822 | 45.7k | } else { | 823 | 61 | _writer->force_close(exec_status); | 824 | 61 | } | 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 | 45.8k | RETURN_IF_ERROR(st); | 829 | 45.8k | } | 830 | 45.7k | return Base::close(state, exec_status); | 831 | 45.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 34 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 34 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 34 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 34 | 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 | 34 | if (_writer) { | 818 | 34 | Status st = _writer->get_writer_status(); | 819 | 34 | if (exec_status.ok()) { | 820 | 34 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 34 | : Status::Cancelled("force close")); | 822 | 34 | } 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 | 34 | RETURN_IF_ERROR(st); | 829 | 34 | } | 830 | 34 | return Base::close(state, exec_status); | 831 | 34 | } |
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 |