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 | 2.20M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 2.20M | if (_parent->nereids_id() == -1) { |
122 | 1.17M | return fmt::format("(id={})", _parent->node_id()); |
123 | 1.17M | } else { |
124 | 1.02M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 1.02M | } |
126 | 2.20M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 70.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 70.4k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 70.4k | } else { | 124 | 70.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 70.4k | } | 126 | 70.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 | 278k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 278k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 278k | } else { | 124 | 278k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 278k | } | 126 | 278k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 23 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 23 | } else { | 124 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 23 | } | 126 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 9.96k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 9.96k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 9.96k | } else { | 124 | 9.96k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 9.96k | } | 126 | 9.96k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 8.14k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 8.14k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 8.13k | } else { | 124 | 8.13k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 8.13k | } | 126 | 8.14k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 164k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 164k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 164k | } else { | 124 | 164k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 164k | } | 126 | 164k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 311 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 311 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 311 | } else { | 124 | 311 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 311 | } | 126 | 311 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 90 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 90 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 90 | } else { | 124 | 90 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 90 | } | 126 | 90 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 818k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 818k | if (_parent->nereids_id() == -1) { | 122 | 382k | return fmt::format("(id={})", _parent->node_id()); | 123 | 436k | } else { | 124 | 436k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 436k | } | 126 | 818k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 56.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 56.1k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 56.1k | } else { | 124 | 56.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 56.1k | } | 126 | 56.1k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 10.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 10.1k | if (_parent->nereids_id() == -1) { | 122 | 10.1k | return fmt::format("(id={})", _parent->node_id()); | 123 | 10.1k | } else { | 124 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 1 | } | 126 | 10.1k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 365 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 365 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 263 | } else { | 124 | 263 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 263 | } | 126 | 365 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.16k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.16k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.14k | } else { | 124 | 5.14k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.14k | } | 126 | 5.16k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 778k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 779k | if (_parent->nereids_id() == -1) { | 122 | 779k | 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 | 778k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 163 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 163 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 163 | } else { | 124 | 163 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 163 | } | 126 | 163 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.41M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.41M | if (_parent->nereids_id() == -1) { |
131 | 824k | return fmt::format("(id={})", _parent->node_id()); |
132 | 824k | } else { |
133 | 589k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 589k | } |
135 | 1.41M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 118k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 118k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 118k | } else { | 133 | 118k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 118k | } | 135 | 118k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2 | if (_parent->nereids_id() == -1) { | 131 | 1 | return fmt::format("(id={})", _parent->node_id()); | 132 | 1 | } else { | 133 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1 | } | 135 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 280k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 280k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 280k | } else { | 133 | 280k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 280k | } | 135 | 280k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 30 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 30 | } else { | 133 | 30 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 30 | } | 135 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 9.98k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 9.98k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 9.98k | } else { | 133 | 9.98k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 9.98k | } | 135 | 9.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.20k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.20k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.19k | } else { | 133 | 8.19k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.19k | } | 135 | 8.20k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 164k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 164k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 164k | } else { | 133 | 164k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 164k | } | 135 | 164k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 312 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 312 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 312 | } else { | 133 | 312 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 312 | } | 135 | 312 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 100 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 100 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 100 | } else { | 133 | 100 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 100 | } | 135 | 100 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 98 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 98 | if (_parent->nereids_id() == -1) { | 131 | 98 | return fmt::format("(id={})", _parent->node_id()); | 132 | 98 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 98 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6.40k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.40k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.40k | } else { | 133 | 6.40k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.40k | } | 135 | 6.40k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 369 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 369 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 267 | } else { | 133 | 267 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 267 | } | 135 | 369 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.6k | if (_parent->nereids_id() == -1) { | 131 | 12.5k | return fmt::format("(id={})", _parent->node_id()); | 132 | 12.5k | } else { | 133 | 6 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6 | } | 135 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 307k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 307k | if (_parent->nereids_id() == -1) { | 131 | 307k | 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 | 307k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 504k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 504k | if (_parent->nereids_id() == -1) { | 131 | 504k | 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 | 504k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 328 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 328 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 328 | } else { | 133 | 328 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 328 | } | 135 | 328 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 29.4k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 29.4k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 29.4k | _terminated = true; |
143 | 29.4k | return Status::OK(); |
144 | 29.4k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.05k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.05k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.05k | _terminated = true; | 143 | 1.05k | return Status::OK(); | 144 | 1.05k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.74k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.74k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.74k | _terminated = true; | 143 | 2.74k | return Status::OK(); | 144 | 2.74k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 6 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 6 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 6 | _terminated = true; | 143 | 6 | return Status::OK(); | 144 | 6 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 610 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 610 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 610 | _terminated = true; | 143 | 610 | return Status::OK(); | 144 | 610 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 34 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 34 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 34 | _terminated = true; | 143 | 34 | return Status::OK(); | 144 | 34 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_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_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 643 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 643 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 643 | _terminated = true; | 143 | 643 | return Status::OK(); | 144 | 643 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 7 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 7 | _terminated = true; | 143 | 7 | return Status::OK(); | 144 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 151 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 151 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 151 | _terminated = true; | 143 | 151 | return Status::OK(); | 144 | 151 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 140 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 140 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 140 | _terminated = true; | 143 | 140 | return Status::OK(); | 144 | 140 | } |
|
145 | | |
146 | 437k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 437k | return _child && _child->is_serial_operator() && !is_source() |
148 | 437k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 437k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 437k | } |
151 | | |
152 | 36.1k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 36.1k | if (!_child) { |
154 | 31.3k | return false; |
155 | 31.3k | } |
156 | 4.75k | if (_child->is_serial_operator()) { |
157 | 145 | return true; |
158 | 145 | } |
159 | 4.61k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 4.61k | return child_distribution.need_local_exchange() && |
161 | 4.61k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 4.75k | } |
163 | | |
164 | 82.7k | const RowDescriptor& OperatorBase::row_desc() const { |
165 | 82.7k | return _child->row_desc(); |
166 | 82.7k | } |
167 | | |
168 | | template <typename SharedStateArg> |
169 | 19.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
170 | 19.8k | fmt::memory_buffer debug_string_buffer; |
171 | 19.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
172 | 19.8k | return fmt::to_string(debug_string_buffer); |
173 | 19.8k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 29 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 29 | fmt::memory_buffer debug_string_buffer; | 171 | 29 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 29 | return fmt::to_string(debug_string_buffer); | 173 | 29 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 3 | fmt::memory_buffer debug_string_buffer; | 171 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 3 | return fmt::to_string(debug_string_buffer); | 173 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 9 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 9 | fmt::memory_buffer debug_string_buffer; | 171 | 9 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 9 | return fmt::to_string(debug_string_buffer); | 173 | 9 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 12 | fmt::memory_buffer debug_string_buffer; | 171 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 12 | return fmt::to_string(debug_string_buffer); | 173 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 10 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 10 | fmt::memory_buffer debug_string_buffer; | 171 | 10 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 10 | return fmt::to_string(debug_string_buffer); | 173 | 10 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 19.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 19.7k | fmt::memory_buffer debug_string_buffer; | 171 | 19.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 19.7k | return fmt::to_string(debug_string_buffer); | 173 | 19.7k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 1 | fmt::memory_buffer debug_string_buffer; | 171 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 1 | return fmt::to_string(debug_string_buffer); | 173 | 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 | 169 | 32 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 32 | fmt::memory_buffer debug_string_buffer; | 171 | 32 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 32 | return fmt::to_string(debug_string_buffer); | 173 | 32 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
174 | | |
175 | | template <typename SharedStateArg> |
176 | 19.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
177 | 19.8k | fmt::memory_buffer debug_string_buffer; |
178 | 19.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
179 | 19.8k | return fmt::to_string(debug_string_buffer); |
180 | 19.8k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 5 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 5 | fmt::memory_buffer debug_string_buffer; | 178 | 5 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 5 | return fmt::to_string(debug_string_buffer); | 180 | 5 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 9 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 9 | fmt::memory_buffer debug_string_buffer; | 178 | 9 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 9 | return fmt::to_string(debug_string_buffer); | 180 | 9 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 5 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 5 | fmt::memory_buffer debug_string_buffer; | 178 | 5 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 5 | return fmt::to_string(debug_string_buffer); | 180 | 5 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 10 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 10 | fmt::memory_buffer debug_string_buffer; | 178 | 10 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 10 | return fmt::to_string(debug_string_buffer); | 180 | 10 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 24 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 24 | fmt::memory_buffer debug_string_buffer; | 178 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 24 | return fmt::to_string(debug_string_buffer); | 180 | 24 | } |
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 | 176 | 18 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 18 | fmt::memory_buffer debug_string_buffer; | 178 | 18 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 18 | return fmt::to_string(debug_string_buffer); | 180 | 18 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 19.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 19.7k | fmt::memory_buffer debug_string_buffer; | 178 | 19.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 19.7k | return fmt::to_string(debug_string_buffer); | 180 | 19.7k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
181 | | |
182 | 19.9k | std::string OperatorXBase::debug_string(int indentation_level) const { |
183 | 19.9k | fmt::memory_buffer debug_string_buffer; |
184 | 19.9k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
185 | 19.9k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
186 | 19.9k | _is_serial_operator); |
187 | 19.9k | return fmt::to_string(debug_string_buffer); |
188 | 19.9k | } |
189 | | |
190 | 19.8k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
191 | 19.8k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
192 | 19.8k | } |
193 | | |
194 | 851k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
195 | 851k | std::string node_name = print_plan_node_type(tnode.node_type); |
196 | 851k | _nereids_id = tnode.nereids_id; |
197 | 851k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
198 | 4.14k | if (!tnode.__isset.output_tuple_id) { |
199 | 0 | return Status::InternalError("no final output tuple id"); |
200 | 0 | } |
201 | 4.14k | if (tnode.intermediate_output_tuple_id_list.size() != |
202 | 4.14k | tnode.intermediate_projections_list.size()) { |
203 | 0 | return Status::InternalError( |
204 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
205 | 0 | "intermediate_projections_list size:{}", |
206 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
207 | 0 | tnode.intermediate_projections_list.size()); |
208 | 0 | } |
209 | 4.14k | } |
210 | 851k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
211 | 851k | _op_name = substr + "_OPERATOR"; |
212 | | |
213 | 851k | if (tnode.__isset.vconjunct) { |
214 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
215 | 851k | } else if (tnode.__isset.conjuncts) { |
216 | 491k | for (const auto& conjunct : tnode.conjuncts) { |
217 | 491k | VExprContextSPtr context; |
218 | 491k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
219 | 491k | _conjuncts.emplace_back(context); |
220 | 491k | } |
221 | 158k | } |
222 | | |
223 | | // create the projections expr |
224 | 851k | if (tnode.__isset.projections) { |
225 | 333k | DCHECK(tnode.__isset.output_tuple_id); |
226 | 333k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
227 | 333k | } |
228 | 851k | if (!tnode.intermediate_projections_list.empty()) { |
229 | 4.14k | DCHECK(tnode.__isset.projections) << "no final projections"; |
230 | 4.14k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
231 | 8.40k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
232 | 8.40k | VExprContextSPtrs projections; |
233 | 8.40k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
234 | 8.40k | _intermediate_projections.push_back(projections); |
235 | 8.40k | } |
236 | 4.14k | } |
237 | 851k | return Status::OK(); |
238 | 851k | } |
239 | | |
240 | 885k | Status OperatorXBase::prepare(RuntimeState* state) { |
241 | 885k | for (auto& conjunct : _conjuncts) { |
242 | 490k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
243 | 490k | } |
244 | 885k | if (state->enable_adjust_conjunct_order_by_cost()) { |
245 | 833k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
246 | 652k | return a->execute_cost() < b->execute_cost(); |
247 | 652k | }); |
248 | 833k | }; |
249 | | |
250 | 893k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
251 | 8.40k | RETURN_IF_ERROR( |
252 | 8.40k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
253 | 8.40k | } |
254 | 885k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
255 | | |
256 | 885k | if (has_output_row_desc()) { |
257 | 332k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
258 | 332k | } |
259 | | |
260 | 885k | for (auto& conjunct : _conjuncts) { |
261 | 491k | RETURN_IF_ERROR(conjunct->open(state)); |
262 | 491k | } |
263 | 885k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
264 | 885k | for (auto& projections : _intermediate_projections) { |
265 | 8.40k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
266 | 8.40k | } |
267 | 885k | if (_child && !is_source()) { |
268 | 132k | RETURN_IF_ERROR(_child->prepare(state)); |
269 | 132k | } |
270 | | |
271 | 885k | if (VExpr::contains_blockable_function(_conjuncts) || |
272 | 886k | VExpr::contains_blockable_function(_projections)) { |
273 | 0 | _blockable = true; |
274 | 0 | } |
275 | | |
276 | 885k | return Status::OK(); |
277 | 885k | } |
278 | | |
279 | 6.57k | Status OperatorXBase::terminate(RuntimeState* state) { |
280 | 6.57k | if (_child && !is_source()) { |
281 | 1.16k | RETURN_IF_ERROR(_child->terminate(state)); |
282 | 1.16k | } |
283 | 6.57k | auto result = state->get_local_state_result(operator_id()); |
284 | 6.57k | if (!result) { |
285 | 0 | return result.error(); |
286 | 0 | } |
287 | 6.57k | return result.value()->terminate(state); |
288 | 6.57k | } |
289 | | |
290 | 6.10M | Status OperatorXBase::close(RuntimeState* state) { |
291 | 6.10M | if (_child && !is_source()) { |
292 | 1.02M | RETURN_IF_ERROR(_child->close(state)); |
293 | 1.02M | } |
294 | 6.10M | auto result = state->get_local_state_result(operator_id()); |
295 | 6.10M | if (!result) { |
296 | 0 | return result.error(); |
297 | 0 | } |
298 | 6.10M | return result.value()->close(state); |
299 | 6.10M | } |
300 | | |
301 | 305k | void PipelineXLocalStateBase::clear_origin_block() { |
302 | 305k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
303 | 305k | } |
304 | | |
305 | 619k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
306 | 619k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
307 | | |
308 | 619k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
309 | 619k | return Status::OK(); |
310 | 619k | } |
311 | | |
312 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
313 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
314 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
315 | 0 | } |
316 | | |
317 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
318 | 305k | Block* output_block) const { |
319 | 305k | auto* local_state = state->get_local_state(operator_id()); |
320 | 305k | SCOPED_TIMER(local_state->exec_time_counter()); |
321 | 305k | SCOPED_TIMER(local_state->_projection_timer); |
322 | 305k | const size_t rows = origin_block->rows(); |
323 | 305k | if (rows == 0) { |
324 | 159k | return Status::OK(); |
325 | 159k | } |
326 | 146k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
327 | | |
328 | 146k | { |
329 | 146k | Block input_block = *origin_block; |
330 | | |
331 | 146k | ColumnsWithTypeAndName new_columns; |
332 | 146k | for (const auto& projections : local_state->_intermediate_projections) { |
333 | 1.87k | if (projections.empty()) { |
334 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
335 | 0 | node_id()); |
336 | 0 | } |
337 | 1.87k | new_columns.resize(projections.size()); |
338 | 14.6k | for (int i = 0; i < projections.size(); i++) { |
339 | 12.7k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
340 | 12.7k | if (new_columns[i].column->size() != rows) { |
341 | 0 | return Status::InternalError( |
342 | 0 | "intermediate projection result column size {} not equal input rows " |
343 | 0 | "{}, expr: {}", |
344 | 0 | new_columns[i].column->size(), rows, |
345 | 0 | projections[i]->root()->debug_string()); |
346 | 0 | } |
347 | 12.7k | } |
348 | 1.87k | Block tmp_block {new_columns}; |
349 | 1.87k | input_block.swap(tmp_block); |
350 | 1.87k | } |
351 | | |
352 | 146k | if (input_block.rows() != rows) { |
353 | 0 | return Status::InternalError( |
354 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
355 | 0 | "input_block: {}", |
356 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
357 | 0 | } |
358 | | |
359 | 146k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
360 | 146k | output_block, *_output_row_descriptor); |
361 | 146k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
362 | 146k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
363 | 146k | Columns shared_columns(mutable_columns.size()); |
364 | | |
365 | 820k | for (int i = 0; i < mutable_columns.size(); ++i) { |
366 | 673k | ColumnPtr column_ptr; |
367 | 673k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
368 | 673k | if (column_ptr->size() != rows) { |
369 | 0 | return Status::InternalError( |
370 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
371 | 0 | column_ptr->size(), rows, |
372 | 0 | local_state->_projections[i]->root()->debug_string()); |
373 | 0 | } |
374 | 673k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
375 | 673k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
376 | 0 | column_ptr = make_nullable(column_ptr, false); |
377 | 0 | } |
378 | 673k | if (column_ptr->is_exclusive()) { |
379 | 247k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
380 | 426k | } else { |
381 | 426k | shared_columns[i] = std::move(column_ptr); |
382 | 426k | } |
383 | 673k | } |
384 | | |
385 | 146k | scoped_mutable_block.restore(); |
386 | 820k | for (int i = 0; i < shared_columns.size(); ++i) { |
387 | 673k | if (shared_columns[i]) { |
388 | 426k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
389 | 426k | } |
390 | 673k | } |
391 | 146k | } |
392 | | |
393 | 0 | origin_block->clear_column_data( |
394 | 146k | local_state->_parent->intermediate_row_desc().num_materialized_slots()); |
395 | 146k | DCHECK_EQ(output_block->rows(), rows); |
396 | | |
397 | 146k | return Status::OK(); |
398 | 146k | } |
399 | | |
400 | 4.79M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
401 | 4.79M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
402 | 4.79M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
403 | 4.79M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
404 | 4.79M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
405 | 4.79M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
406 | 4.79M | if (_debug_point_count++ % 2 == 0) { |
407 | 4.79M | return Status::OK(); |
408 | 4.79M | } |
409 | 4.79M | } |
410 | 4.79M | }); |
411 | | |
412 | 4.79M | Status status; |
413 | 4.79M | auto* local_state = state->get_local_state(operator_id()); |
414 | 4.79M | Defer defer([&]() { |
415 | 4.79M | if (status.ok()) { |
416 | 4.79M | local_state->update_output_block_counters(*block); |
417 | 4.79M | } |
418 | 4.79M | }); |
419 | 4.79M | if (_output_row_descriptor) { |
420 | 305k | local_state->clear_origin_block(); |
421 | 305k | status = get_block(state, &local_state->_origin_block, eos); |
422 | 305k | if (UNLIKELY(!status.ok())) { |
423 | 19 | return status; |
424 | 19 | } |
425 | 305k | status = do_projections(state, &local_state->_origin_block, block); |
426 | 305k | return status; |
427 | 305k | } |
428 | 4.49M | status = get_block(state, block, eos); |
429 | 4.49M | RETURN_IF_ERROR(block->check_type_and_column()); |
430 | 4.49M | return status; |
431 | 4.49M | } |
432 | | |
433 | 3.35M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
434 | 3.35M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
435 | 6.66k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
436 | 6.66k | *eos = true; |
437 | 6.66k | } |
438 | | |
439 | 3.35M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
440 | 3.35M | auto op_name = to_lower(_parent->_op_name); |
441 | 3.35M | auto arg_op_name = dp->param<std::string>("op_name"); |
442 | 3.35M | arg_op_name = to_lower(arg_op_name); |
443 | | |
444 | 3.35M | if (op_name == arg_op_name) { |
445 | 3.35M | *eos = true; |
446 | 3.35M | } |
447 | 3.35M | }); |
448 | | |
449 | 3.35M | if (auto rows = block->rows()) { |
450 | 934k | _num_rows_returned += rows; |
451 | 934k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
452 | 934k | } |
453 | 3.35M | } |
454 | | |
455 | 29.4k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
456 | 29.4k | auto result = state->get_sink_local_state_result(); |
457 | 29.4k | if (!result) { |
458 | 0 | return result.error(); |
459 | 0 | } |
460 | 29.4k | return result.value()->terminate(state); |
461 | 29.4k | } |
462 | | |
463 | 19.8k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
464 | 19.8k | fmt::memory_buffer debug_string_buffer; |
465 | | |
466 | 19.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
467 | 19.8k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
468 | 19.8k | return fmt::to_string(debug_string_buffer); |
469 | 19.8k | } |
470 | | |
471 | 19.8k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
472 | 19.8k | return state->get_sink_local_state()->debug_string(indentation_level); |
473 | 19.8k | } |
474 | | |
475 | 477k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
476 | 477k | std::string op_name = "UNKNOWN_SINK"; |
477 | 477k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
478 | | |
479 | 478k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
480 | 478k | op_name = it->second; |
481 | 478k | } |
482 | 477k | _name = op_name + "_OPERATOR"; |
483 | 477k | return Status::OK(); |
484 | 477k | } |
485 | | |
486 | 323k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
487 | 323k | std::string op_name = print_plan_node_type(tnode.node_type); |
488 | 323k | _nereids_id = tnode.nereids_id; |
489 | 323k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
490 | 323k | _name = substr + "_SINK_OPERATOR"; |
491 | 323k | return Status::OK(); |
492 | 323k | } |
493 | | |
494 | | template <typename LocalStateType> |
495 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
496 | 2.13M | LocalSinkStateInfo& info) { |
497 | 2.13M | auto local_state = LocalStateType::create_unique(this, state); |
498 | 2.13M | RETURN_IF_ERROR(local_state->init(state, info)); |
499 | 2.13M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
500 | 2.13M | return Status::OK(); |
501 | 2.13M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 118k | LocalSinkStateInfo& info) { | 497 | 118k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 118k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 118k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 118k | return Status::OK(); | 501 | 118k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 436k | LocalSinkStateInfo& info) { | 497 | 436k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 436k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 436k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 436k | return Status::OK(); | 501 | 436k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 86 | LocalSinkStateInfo& info) { | 497 | 86 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 86 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 86 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 86 | return Status::OK(); | 501 | 86 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 3 | LocalSinkStateInfo& info) { | 497 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 3 | return Status::OK(); | 501 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 511 | LocalSinkStateInfo& info) { | 497 | 511 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 511 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 511 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 511 | return Status::OK(); | 501 | 511 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 47.6k | LocalSinkStateInfo& info) { | 497 | 47.6k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 47.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 47.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 47.6k | return Status::OK(); | 501 | 47.6k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 9.61k | LocalSinkStateInfo& info) { | 497 | 9.61k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 9.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 9.61k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 9.61k | return Status::OK(); | 501 | 9.61k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 5.23k | LocalSinkStateInfo& info) { | 497 | 5.23k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 5.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 5.23k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 5.23k | return Status::OK(); | 501 | 5.23k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 156 | LocalSinkStateInfo& info) { | 497 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 156 | return Status::OK(); | 501 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 3.95k | LocalSinkStateInfo& info) { | 497 | 3.95k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 3.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 3.95k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 3.95k | return Status::OK(); | 501 | 3.95k | } |
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 48 | LocalSinkStateInfo& info) { | 497 | 48 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 48 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 48 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 48 | return Status::OK(); | 501 | 48 | } |
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 704 | LocalSinkStateInfo& info) { | 497 | 704 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 704 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 704 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 704 | return Status::OK(); | 501 | 704 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 1.71k | LocalSinkStateInfo& info) { | 497 | 1.71k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 1.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 1.71k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 1.71k | return Status::OK(); | 501 | 1.71k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 8.20k | LocalSinkStateInfo& info) { | 497 | 8.20k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 8.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 8.20k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 8.20k | return Status::OK(); | 501 | 8.20k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 95 | LocalSinkStateInfo& info) { | 497 | 95 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 95 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 95 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 95 | return Status::OK(); | 501 | 95 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 281k | LocalSinkStateInfo& info) { | 497 | 281k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 281k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 281k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 281k | return Status::OK(); | 501 | 281k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 30 | LocalSinkStateInfo& info) { | 497 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 30 | return Status::OK(); | 501 | 30 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 308k | LocalSinkStateInfo& info) { | 497 | 308k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 308k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 308k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 308k | return Status::OK(); | 501 | 308k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 165k | LocalSinkStateInfo& info) { | 497 | 165k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 165k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 165k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 165k | return Status::OK(); | 501 | 165k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 311 | LocalSinkStateInfo& info) { | 497 | 311 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 311 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 311 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 311 | return Status::OK(); | 501 | 311 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 100 | LocalSinkStateInfo& info) { | 497 | 100 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 100 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 100 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 100 | return Status::OK(); | 501 | 100 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 713k | LocalSinkStateInfo& info) { | 497 | 713k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 713k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 713k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 713k | return Status::OK(); | 501 | 713k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 9.99k | LocalSinkStateInfo& info) { | 497 | 9.99k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 9.99k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 9.99k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 9.99k | return Status::OK(); | 501 | 9.99k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 6.39k | LocalSinkStateInfo& info) { | 497 | 6.39k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 6.39k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 6.39k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 6.39k | return Status::OK(); | 501 | 6.39k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 3.74k | LocalSinkStateInfo& info) { | 497 | 3.74k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 3.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 3.74k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 3.74k | return Status::OK(); | 501 | 3.74k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 269 | LocalSinkStateInfo& info) { | 497 | 269 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 269 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 269 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 269 | return Status::OK(); | 501 | 269 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 4.86k | LocalSinkStateInfo& info) { | 497 | 4.86k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 4.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 4.86k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 4.86k | return Status::OK(); | 501 | 4.86k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.57k | LocalSinkStateInfo& info) { | 497 | 2.57k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.57k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.57k | return Status::OK(); | 501 | 2.57k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.64k | LocalSinkStateInfo& info) { | 497 | 2.64k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.64k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.64k | return Status::OK(); | 501 | 2.64k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.49k | LocalSinkStateInfo& info) { | 497 | 2.49k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.49k | return Status::OK(); | 501 | 2.49k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 1 | LocalSinkStateInfo& info) { | 497 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 1 | return Status::OK(); | 501 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 568 | LocalSinkStateInfo& info) { | 497 | 568 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 568 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 568 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 568 | return Status::OK(); | 501 | 568 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 14 | LocalSinkStateInfo& info) { | 497 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 14 | return Status::OK(); | 501 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 101 | LocalSinkStateInfo& info) { | 497 | 101 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 101 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 101 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 101 | return Status::OK(); | 501 | 101 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 164 | LocalSinkStateInfo& info) { | 497 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 164 | return Status::OK(); | 501 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 164 | LocalSinkStateInfo& info) { | 497 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 164 | return Status::OK(); | 501 | 164 | } |
|
502 | | |
503 | | template <typename LocalStateType> |
504 | 1.78M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
506 | 0 | LocalExchangeSharedState>) { |
507 | 0 | return nullptr; |
508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
509 | 0 | MultiCastSharedState>) { |
510 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
511 | 1.78M | } else { |
512 | 1.78M | auto ss = LocalStateType::SharedStateType::create_shared(); |
513 | 1.78M | ss->id = operator_id(); |
514 | 1.78M | for (auto& dest : dests_id()) { |
515 | 1.78M | ss->related_op_ids.insert(dest); |
516 | 1.78M | } |
517 | 1.78M | return ss; |
518 | 1.78M | } |
519 | 1.78M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 99.2k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 99.2k | } else { | 512 | 99.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 99.2k | ss->id = operator_id(); | 514 | 99.2k | for (auto& dest : dests_id()) { | 515 | 99.1k | ss->related_op_ids.insert(dest); | 516 | 99.1k | } | 517 | 99.2k | return ss; | 518 | 99.2k | } | 519 | 99.2k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 435k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 435k | } else { | 512 | 435k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 435k | ss->id = operator_id(); | 514 | 435k | for (auto& dest : dests_id()) { | 515 | 434k | ss->related_op_ids.insert(dest); | 516 | 434k | } | 517 | 435k | return ss; | 518 | 435k | } | 519 | 435k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 86 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 86 | } else { | 512 | 86 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 86 | ss->id = operator_id(); | 514 | 86 | for (auto& dest : dests_id()) { | 515 | 86 | ss->related_op_ids.insert(dest); | 516 | 86 | } | 517 | 86 | return ss; | 518 | 86 | } | 519 | 86 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 3 | } else { | 512 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 3 | ss->id = operator_id(); | 514 | 3 | for (auto& dest : dests_id()) { | 515 | 3 | ss->related_op_ids.insert(dest); | 516 | 3 | } | 517 | 3 | return ss; | 518 | 3 | } | 519 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 511 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 511 | } else { | 512 | 511 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 511 | ss->id = operator_id(); | 514 | 511 | for (auto& dest : dests_id()) { | 515 | 511 | ss->related_op_ids.insert(dest); | 516 | 511 | } | 517 | 511 | return ss; | 518 | 511 | } | 519 | 511 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 47.6k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 47.6k | } else { | 512 | 47.6k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 47.6k | ss->id = operator_id(); | 514 | 47.6k | for (auto& dest : dests_id()) { | 515 | 47.5k | ss->related_op_ids.insert(dest); | 516 | 47.5k | } | 517 | 47.6k | return ss; | 518 | 47.6k | } | 519 | 47.6k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 9.61k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 9.61k | } else { | 512 | 9.61k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 9.61k | ss->id = operator_id(); | 514 | 9.61k | for (auto& dest : dests_id()) { | 515 | 9.61k | ss->related_op_ids.insert(dest); | 516 | 9.61k | } | 517 | 9.61k | return ss; | 518 | 9.61k | } | 519 | 9.61k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 5.23k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 5.23k | } else { | 512 | 5.23k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 5.23k | ss->id = operator_id(); | 514 | 5.23k | for (auto& dest : dests_id()) { | 515 | 5.23k | ss->related_op_ids.insert(dest); | 516 | 5.23k | } | 517 | 5.23k | return ss; | 518 | 5.23k | } | 519 | 5.23k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 156 | } else { | 512 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 156 | ss->id = operator_id(); | 514 | 156 | for (auto& dest : dests_id()) { | 515 | 156 | ss->related_op_ids.insert(dest); | 516 | 156 | } | 517 | 156 | return ss; | 518 | 156 | } | 519 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 3.95k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 3.95k | } else { | 512 | 3.95k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 3.95k | ss->id = operator_id(); | 514 | 3.95k | for (auto& dest : dests_id()) { | 515 | 3.95k | ss->related_op_ids.insert(dest); | 516 | 3.95k | } | 517 | 3.95k | return ss; | 518 | 3.95k | } | 519 | 3.95k | } |
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 48 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 48 | } else { | 512 | 48 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 48 | ss->id = operator_id(); | 514 | 48 | for (auto& dest : dests_id()) { | 515 | 48 | ss->related_op_ids.insert(dest); | 516 | 48 | } | 517 | 48 | return ss; | 518 | 48 | } | 519 | 48 | } |
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 704 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 704 | } else { | 512 | 704 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 704 | ss->id = operator_id(); | 514 | 704 | for (auto& dest : dests_id()) { | 515 | 704 | ss->related_op_ids.insert(dest); | 516 | 704 | } | 517 | 704 | return ss; | 518 | 704 | } | 519 | 704 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 1.71k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 1.71k | } else { | 512 | 1.71k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 1.71k | ss->id = operator_id(); | 514 | 1.71k | for (auto& dest : dests_id()) { | 515 | 1.71k | ss->related_op_ids.insert(dest); | 516 | 1.71k | } | 517 | 1.71k | return ss; | 518 | 1.71k | } | 519 | 1.71k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 8.22k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 8.22k | } else { | 512 | 8.22k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 8.22k | ss->id = operator_id(); | 514 | 8.22k | for (auto& dest : dests_id()) { | 515 | 8.19k | ss->related_op_ids.insert(dest); | 516 | 8.19k | } | 517 | 8.22k | return ss; | 518 | 8.22k | } | 519 | 8.22k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 95 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 95 | } else { | 512 | 95 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 95 | ss->id = operator_id(); | 514 | 95 | for (auto& dest : dests_id()) { | 515 | 95 | ss->related_op_ids.insert(dest); | 516 | 95 | } | 517 | 95 | return ss; | 518 | 95 | } | 519 | 95 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 281k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 281k | } else { | 512 | 281k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 281k | ss->id = operator_id(); | 514 | 281k | for (auto& dest : dests_id()) { | 515 | 281k | ss->related_op_ids.insert(dest); | 516 | 281k | } | 517 | 281k | return ss; | 518 | 281k | } | 519 | 281k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 32 | } else { | 512 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 32 | ss->id = operator_id(); | 514 | 32 | for (auto& dest : dests_id()) { | 515 | 32 | ss->related_op_ids.insert(dest); | 516 | 32 | } | 517 | 32 | return ss; | 518 | 32 | } | 519 | 32 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 165k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 165k | } else { | 512 | 165k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 165k | ss->id = operator_id(); | 514 | 165k | for (auto& dest : dests_id()) { | 515 | 165k | ss->related_op_ids.insert(dest); | 516 | 165k | } | 517 | 165k | return ss; | 518 | 165k | } | 519 | 165k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 99 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 99 | } else { | 512 | 99 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 99 | ss->id = operator_id(); | 514 | 99 | for (auto& dest : dests_id()) { | 515 | 99 | ss->related_op_ids.insert(dest); | 516 | 99 | } | 517 | 99 | return ss; | 518 | 99 | } | 519 | 99 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 713k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 713k | } else { | 512 | 713k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 713k | ss->id = operator_id(); | 514 | 713k | for (auto& dest : dests_id()) { | 515 | 711k | ss->related_op_ids.insert(dest); | 516 | 711k | } | 517 | 713k | return ss; | 518 | 713k | } | 519 | 713k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 9.99k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 9.99k | } else { | 512 | 9.99k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 9.99k | ss->id = operator_id(); | 514 | 9.99k | for (auto& dest : dests_id()) { | 515 | 9.98k | ss->related_op_ids.insert(dest); | 516 | 9.98k | } | 517 | 9.99k | return ss; | 518 | 9.99k | } | 519 | 9.99k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 371 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 371 | } else { | 512 | 371 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 371 | ss->id = operator_id(); | 514 | 371 | for (auto& dest : dests_id()) { | 515 | 370 | ss->related_op_ids.insert(dest); | 516 | 370 | } | 517 | 371 | return ss; | 518 | 371 | } | 519 | 371 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 504 | 2.64k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 2.64k | } else { | 512 | 2.64k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 2.64k | ss->id = operator_id(); | 514 | 2.64k | for (auto& dest : dests_id()) { | 515 | 2.62k | ss->related_op_ids.insert(dest); | 516 | 2.62k | } | 517 | 2.64k | return ss; | 518 | 2.64k | } | 519 | 2.64k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 504 | 2.50k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 2.50k | } else { | 512 | 2.50k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 2.50k | ss->id = operator_id(); | 514 | 2.50k | for (auto& dest : dests_id()) { | 515 | 2.48k | ss->related_op_ids.insert(dest); | 516 | 2.48k | } | 517 | 2.50k | return ss; | 518 | 2.50k | } | 519 | 2.50k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 565 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 565 | } else { | 512 | 565 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 565 | ss->id = operator_id(); | 514 | 565 | for (auto& dest : dests_id()) { | 515 | 563 | ss->related_op_ids.insert(dest); | 516 | 563 | } | 517 | 565 | return ss; | 518 | 565 | } | 519 | 565 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 101 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 101 | } else { | 512 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 101 | ss->id = operator_id(); | 514 | 101 | for (auto& dest : dests_id()) { | 515 | 100 | ss->related_op_ids.insert(dest); | 516 | 100 | } | 517 | 101 | return ss; | 518 | 101 | } | 519 | 101 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
520 | | |
521 | | template <typename LocalStateType> |
522 | 2.57M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
523 | 2.57M | auto local_state = LocalStateType::create_unique(state, this); |
524 | 2.57M | RETURN_IF_ERROR(local_state->init(state, info)); |
525 | 2.57M | state->emplace_local_state(operator_id(), std::move(local_state)); |
526 | 2.57M | return Status::OK(); |
527 | 2.57M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 70.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 70.6k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 70.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 70.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 70.6k | return Status::OK(); | 527 | 70.6k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 317k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 317k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 317k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 317k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 317k | return Status::OK(); | 527 | 317k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 143 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 143 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 143 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 143 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 143 | return Status::OK(); | 527 | 143 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 38.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 38.0k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 38.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 38.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 38.0k | return Status::OK(); | 527 | 38.0k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 8.19k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 8.19k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 8.19k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 8.19k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 8.19k | return Status::OK(); | 527 | 8.19k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 8.50k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 8.50k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 8.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 8.50k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 8.50k | return Status::OK(); | 527 | 8.50k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 23 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 23 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 23 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 23 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 23 | return Status::OK(); | 527 | 23 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 272k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 272k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 272k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 272k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 272k | return Status::OK(); | 527 | 272k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 164k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 164k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 164k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 164k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 164k | return Status::OK(); | 527 | 164k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 311 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 311 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 311 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 311 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 311 | return Status::OK(); | 527 | 311 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 90 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 90 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 90 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 90 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 90 | return Status::OK(); | 527 | 90 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 4.73k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 4.73k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 4.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 4.73k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 4.73k | return Status::OK(); | 527 | 4.73k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 384k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 384k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 384k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 384k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 384k | return Status::OK(); | 527 | 384k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 1.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 1.42k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 1.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 1.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 1.42k | return Status::OK(); | 527 | 1.42k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 9.99k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 9.99k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 9.99k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 9.99k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 9.99k | return Status::OK(); | 527 | 9.99k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 221 | return Status::OK(); | 527 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.00k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.00k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.00k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.00k | return Status::OK(); | 527 | 2.00k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 56.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 56.4k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 56.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 56.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 56.4k | return Status::OK(); | 527 | 56.4k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 10.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 10.1k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 10.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 10.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 10.1k | return Status::OK(); | 527 | 10.1k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 267 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 267 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 267 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 267 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 267 | return Status::OK(); | 527 | 267 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.64k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.64k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.64k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.64k | return Status::OK(); | 527 | 2.64k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.50k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.50k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.50k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.50k | return Status::OK(); | 527 | 2.50k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 520 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 520 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 520 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 520 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 520 | return Status::OK(); | 527 | 520 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.23k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.23k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.23k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.23k | return Status::OK(); | 527 | 2.23k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 6.68k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 6.68k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 6.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 6.68k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 6.68k | return Status::OK(); | 527 | 6.68k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 782k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 782k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 782k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 782k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 782k | return Status::OK(); | 527 | 782k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 14 | return Status::OK(); | 527 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 164 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 164 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 164 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 164 | return Status::OK(); | 527 | 164 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.18k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.18k | return Status::OK(); | 527 | 2.18k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 1.74k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 1.74k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 1.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 1.74k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 1.74k | return Status::OK(); | 527 | 1.74k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.66k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.66k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.66k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.66k | return Status::OK(); | 527 | 2.66k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 12.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 12.4k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 12.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 12.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 12.4k | return Status::OK(); | 527 | 12.4k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 404k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 404k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 404k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 404k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 404k | return Status::OK(); | 527 | 404k | } |
|
528 | | |
529 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
530 | | RuntimeState* state) |
531 | 2.12M | : _parent(parent), _state(state) {} |
532 | | |
533 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
534 | 2.56M | : _num_rows_returned(0), |
535 | 2.56M | _rows_returned_counter(nullptr), |
536 | 2.56M | _parent(parent), |
537 | 2.56M | _state(state), |
538 | 2.56M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
539 | | |
540 | | template <typename SharedStateArg> |
541 | 2.57M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
542 | 2.57M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
543 | 2.57M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
544 | 2.57M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
545 | 2.57M | _operator_profile->set_metadata(_parent->node_id()); |
546 | | // indent is false so that source operator will have same |
547 | | // indentation_level with its parent operator. |
548 | 2.57M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
549 | 2.57M | _operator_profile->add_child(_common_profile.get(), true); |
550 | 2.57M | _operator_profile->add_child(_custom_profile.get(), true); |
551 | 2.57M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
552 | 2.57M | if constexpr (!is_fake_shared) { |
553 | 1.39M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
554 | 805k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
555 | 805k | .first.get() |
556 | 805k | ->template cast<SharedStateArg>(); |
557 | | |
558 | 805k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
559 | 805k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
560 | 805k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
561 | 805k | } else if (info.shared_state) { |
562 | 533k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
563 | 0 | DCHECK(false); |
564 | 0 | } |
565 | | // For UnionSourceOperator without children, there is no shared state. |
566 | 533k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
567 | | |
568 | 533k | _dependency = _shared_state->create_source_dependency( |
569 | 533k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
570 | 533k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
571 | 533k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
572 | 533k | } else { |
573 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
574 | 18.4E | DCHECK(false); |
575 | 18.4E | } |
576 | 54.8k | } |
577 | 1.39M | } |
578 | | |
579 | 2.57M | if (must_set_shared_state() && _shared_state == nullptr) { |
580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
581 | 0 | } |
582 | | |
583 | 2.57M | _rows_returned_counter = |
584 | 2.57M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
585 | 2.57M | _blocks_returned_counter = |
586 | 2.57M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
587 | 2.57M | _output_block_bytes_counter = |
588 | 2.57M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
589 | 2.57M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
590 | 2.57M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
591 | 2.57M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
592 | 2.57M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
593 | 2.57M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
594 | 2.57M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
595 | 2.57M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
596 | 2.57M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
597 | 2.57M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
598 | 2.57M | _memory_used_counter = |
599 | 2.57M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
600 | 2.57M | _common_profile->add_info_string("IsColocate", |
601 | 2.57M | std::to_string(_parent->is_colocated_operator())); |
602 | 2.57M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
603 | 2.57M | _common_profile->add_info_string("FollowedByShuffledOperator", |
604 | 2.57M | std::to_string(_parent->followed_by_shuffled_operator())); |
605 | 2.57M | return Status::OK(); |
606 | 2.57M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 70.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 70.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 70.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 70.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 70.7k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 70.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 70.7k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 70.7k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 70.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 70.7k | if constexpr (!is_fake_shared) { | 553 | 70.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 19.5k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 19.5k | .first.get() | 556 | 19.5k | ->template cast<SharedStateArg>(); | 557 | | | 558 | 19.5k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 19.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 19.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 51.2k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 51.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 51.1k | _dependency = _shared_state->create_source_dependency( | 569 | 51.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 51.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 51.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 51.1k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 84 | } | 577 | 70.7k | } | 578 | | | 579 | 70.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 70.7k | _rows_returned_counter = | 584 | 70.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 70.7k | _blocks_returned_counter = | 586 | 70.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 70.7k | _output_block_bytes_counter = | 588 | 70.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 70.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 70.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 70.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 70.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 70.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 70.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 70.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 70.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 70.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 70.7k | _memory_used_counter = | 599 | 70.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 70.7k | _common_profile->add_info_string("IsColocate", | 601 | 70.7k | std::to_string(_parent->is_colocated_operator())); | 602 | 70.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 70.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 70.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 70.7k | return Status::OK(); | 606 | 70.7k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 1 | if constexpr (!is_fake_shared) { | 553 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 1 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 1 | _dependency = _shared_state->create_source_dependency( | 569 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 1 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 1 | } | 578 | | | 579 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 1 | _rows_returned_counter = | 584 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 1 | _blocks_returned_counter = | 586 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 1 | _output_block_bytes_counter = | 588 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 1 | _memory_used_counter = | 599 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 1 | _common_profile->add_info_string("IsColocate", | 601 | 1 | std::to_string(_parent->is_colocated_operator())); | 602 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 1 | return Status::OK(); | 606 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 281k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 281k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 281k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 281k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 281k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 281k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 281k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 281k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 281k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 281k | if constexpr (!is_fake_shared) { | 553 | 281k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 281k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 280k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 280k | _dependency = _shared_state->create_source_dependency( | 569 | 280k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 280k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 280k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 280k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 1.14k | } | 577 | 281k | } | 578 | | | 579 | 281k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 281k | _rows_returned_counter = | 584 | 281k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 281k | _blocks_returned_counter = | 586 | 281k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 281k | _output_block_bytes_counter = | 588 | 281k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 281k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 281k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 281k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 281k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 281k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 281k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 281k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 281k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 281k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 281k | _memory_used_counter = | 599 | 281k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 281k | _common_profile->add_info_string("IsColocate", | 601 | 281k | std::to_string(_parent->is_colocated_operator())); | 602 | 281k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 281k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 281k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 281k | return Status::OK(); | 606 | 281k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 23 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 23 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 23 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 23 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 23 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 23 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 23 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 23 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 23 | if constexpr (!is_fake_shared) { | 553 | 23 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 23 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 23 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 23 | _dependency = _shared_state->create_source_dependency( | 569 | 23 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 23 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 23 | } | 578 | | | 579 | 23 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 23 | _rows_returned_counter = | 584 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 23 | _blocks_returned_counter = | 586 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 23 | _output_block_bytes_counter = | 588 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 23 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 23 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 23 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 23 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 23 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 23 | _memory_used_counter = | 599 | 23 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 23 | _common_profile->add_info_string("IsColocate", | 601 | 23 | std::to_string(_parent->is_colocated_operator())); | 602 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 23 | return Status::OK(); | 606 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 9.99k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 9.99k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 9.99k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 9.99k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 9.99k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 9.99k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 9.99k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 9.99k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 9.99k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 9.99k | if constexpr (!is_fake_shared) { | 553 | 9.99k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.99k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 9.99k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 9.99k | _dependency = _shared_state->create_source_dependency( | 569 | 9.99k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 9.99k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 9.99k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 9.99k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 5 | } | 577 | 9.99k | } | 578 | | | 579 | 9.99k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 9.99k | _rows_returned_counter = | 584 | 9.99k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 9.99k | _blocks_returned_counter = | 586 | 9.99k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 9.99k | _output_block_bytes_counter = | 588 | 9.99k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 9.99k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 9.99k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 9.99k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 9.99k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 9.99k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 9.99k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 9.99k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 9.99k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 9.99k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 9.99k | _memory_used_counter = | 599 | 9.99k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 9.99k | _common_profile->add_info_string("IsColocate", | 601 | 9.99k | std::to_string(_parent->is_colocated_operator())); | 602 | 9.99k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 9.99k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 9.99k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 9.99k | return Status::OK(); | 606 | 9.99k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 8.22k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 8.22k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 8.22k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 8.22k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 8.22k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 8.22k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 8.22k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 8.22k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 8.22k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 8.22k | if constexpr (!is_fake_shared) { | 553 | 8.22k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 8.22k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 8.19k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 8.19k | _dependency = _shared_state->create_source_dependency( | 569 | 8.19k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 8.19k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 8.19k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 8.19k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 22 | } | 577 | 8.22k | } | 578 | | | 579 | 8.22k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 8.22k | _rows_returned_counter = | 584 | 8.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 8.22k | _blocks_returned_counter = | 586 | 8.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 8.22k | _output_block_bytes_counter = | 588 | 8.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 8.22k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 8.22k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 8.22k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 8.22k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 8.22k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 8.22k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 8.22k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 8.22k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 8.22k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 8.22k | _memory_used_counter = | 599 | 8.22k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 8.22k | _common_profile->add_info_string("IsColocate", | 601 | 8.22k | std::to_string(_parent->is_colocated_operator())); | 602 | 8.22k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 8.22k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 8.22k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 8.22k | return Status::OK(); | 606 | 8.22k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 165k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 165k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 165k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 165k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 165k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 165k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 165k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 165k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 165k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 165k | if constexpr (!is_fake_shared) { | 553 | 165k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 165k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 164k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 164k | _dependency = _shared_state->create_source_dependency( | 569 | 164k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 164k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 164k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 164k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 467 | } | 577 | 165k | } | 578 | | | 579 | 165k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 165k | _rows_returned_counter = | 584 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 165k | _blocks_returned_counter = | 586 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 165k | _output_block_bytes_counter = | 588 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 165k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 165k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 165k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 165k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 165k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 165k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 165k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 165k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 165k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 165k | _memory_used_counter = | 599 | 165k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 165k | _common_profile->add_info_string("IsColocate", | 601 | 165k | std::to_string(_parent->is_colocated_operator())); | 602 | 165k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 165k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 165k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 165k | return Status::OK(); | 606 | 165k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 312 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 312 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 312 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 312 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 312 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 312 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 312 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 312 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 312 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 312 | if constexpr (!is_fake_shared) { | 553 | 312 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 312 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 312 | .first.get() | 556 | 312 | ->template cast<SharedStateArg>(); | 557 | | | 558 | 312 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 312 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 312 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 312 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | |
| 568 | 0 | _dependency = _shared_state->create_source_dependency( | 569 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 0 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 312 | } | 578 | | | 579 | 312 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 312 | _rows_returned_counter = | 584 | 312 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 312 | _blocks_returned_counter = | 586 | 312 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 312 | _output_block_bytes_counter = | 588 | 312 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 312 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 312 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 312 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 312 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 312 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 312 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 312 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 312 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 312 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 312 | _memory_used_counter = | 599 | 312 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 312 | _common_profile->add_info_string("IsColocate", | 601 | 312 | std::to_string(_parent->is_colocated_operator())); | 602 | 312 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 312 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 312 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 312 | return Status::OK(); | 606 | 312 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 90 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 90 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 90 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 90 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 90 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 90 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 90 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 90 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 90 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 90 | if constexpr (!is_fake_shared) { | 553 | 90 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 90 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 90 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 90 | _dependency = _shared_state->create_source_dependency( | 569 | 90 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 90 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 90 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 90 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 90 | } | 578 | | | 579 | 90 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 90 | _rows_returned_counter = | 584 | 90 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 90 | _blocks_returned_counter = | 586 | 90 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 90 | _output_block_bytes_counter = | 588 | 90 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 90 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 90 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 90 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 90 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 90 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 90 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 90 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 90 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 90 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 90 | _memory_used_counter = | 599 | 90 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 90 | _common_profile->add_info_string("IsColocate", | 601 | 90 | std::to_string(_parent->is_colocated_operator())); | 602 | 90 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 90 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 90 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 90 | return Status::OK(); | 606 | 90 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 1.17M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 1.17M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 1.17M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 1.17M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 1.17M | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 1.17M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 1.17M | _operator_profile->add_child(_common_profile.get(), true); | 550 | 1.17M | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 1.17M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | | if constexpr (!is_fake_shared) { | 553 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | | .first.get() | 556 | | ->template cast<SharedStateArg>(); | 557 | | | 558 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | | _dependency = _shared_state->create_source_dependency( | 569 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | | } | 577 | | } | 578 | | | 579 | 1.17M | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 1.17M | _rows_returned_counter = | 584 | 1.17M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 1.17M | _blocks_returned_counter = | 586 | 1.17M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 1.17M | _output_block_bytes_counter = | 588 | 1.17M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 1.17M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 1.17M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 1.17M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 1.17M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 1.17M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 1.17M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 1.17M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 1.17M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 1.17M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 1.17M | _memory_used_counter = | 599 | 1.17M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 1.17M | _common_profile->add_info_string("IsColocate", | 601 | 1.17M | std::to_string(_parent->is_colocated_operator())); | 602 | 1.17M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 1.17M | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 1.17M | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 1.17M | return Status::OK(); | 606 | 1.17M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 56.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 56.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 56.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 56.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 56.4k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 56.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 56.4k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 56.4k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 56.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 56.4k | if constexpr (!is_fake_shared) { | 553 | 56.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 56.4k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 3.03k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 3.03k | _dependency = _shared_state->create_source_dependency( | 569 | 3.03k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 3.03k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 3.03k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 53.3k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 53.3k | } | 577 | 56.4k | } | 578 | | | 579 | 56.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 56.4k | _rows_returned_counter = | 584 | 56.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 56.4k | _blocks_returned_counter = | 586 | 56.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 56.4k | _output_block_bytes_counter = | 588 | 56.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 56.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 56.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 56.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 56.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 56.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 56.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 56.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 56.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 56.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 56.4k | _memory_used_counter = | 599 | 56.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 56.4k | _common_profile->add_info_string("IsColocate", | 601 | 56.4k | std::to_string(_parent->is_colocated_operator())); | 602 | 56.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 56.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 56.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 56.4k | return Status::OK(); | 606 | 56.4k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 26 | if constexpr (!is_fake_shared) { | 553 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 26 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 26 | _dependency = _shared_state->create_source_dependency( | 569 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 26 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 26 | } | 578 | | | 579 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 26 | _rows_returned_counter = | 584 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 26 | _blocks_returned_counter = | 586 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 26 | _output_block_bytes_counter = | 588 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 26 | _memory_used_counter = | 599 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 26 | _common_profile->add_info_string("IsColocate", | 601 | 26 | std::to_string(_parent->is_colocated_operator())); | 602 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 26 | return Status::OK(); | 606 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 10.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 10.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 10.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 10.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 10.1k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 10.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 10.1k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 10.1k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 10.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 10.1k | if constexpr (!is_fake_shared) { | 553 | 10.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 10.1k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 10.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 10.1k | _dependency = _shared_state->create_source_dependency( | 569 | 10.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 10.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 10.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 10.1k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 3 | } | 577 | 10.1k | } | 578 | | | 579 | 10.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 10.1k | _rows_returned_counter = | 584 | 10.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 10.1k | _blocks_returned_counter = | 586 | 10.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 10.1k | _output_block_bytes_counter = | 588 | 10.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 10.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 10.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 10.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 10.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 10.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 10.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 10.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 10.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 10.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 10.1k | _memory_used_counter = | 599 | 10.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 10.1k | _common_profile->add_info_string("IsColocate", | 601 | 10.1k | std::to_string(_parent->is_colocated_operator())); | 602 | 10.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 10.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 10.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 10.1k | return Status::OK(); | 606 | 10.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 371 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 371 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 371 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 371 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 371 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 371 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 371 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 371 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 371 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 371 | if constexpr (!is_fake_shared) { | 553 | 371 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 371 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 366 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 366 | _dependency = _shared_state->create_source_dependency( | 569 | 366 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 366 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 366 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 366 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 5 | } | 577 | 371 | } | 578 | | | 579 | 371 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 371 | _rows_returned_counter = | 584 | 371 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 371 | _blocks_returned_counter = | 586 | 371 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 371 | _output_block_bytes_counter = | 588 | 371 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 371 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 371 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 371 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 371 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 371 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 371 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 371 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 371 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 371 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 371 | _memory_used_counter = | 599 | 371 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 371 | _common_profile->add_info_string("IsColocate", | 601 | 371 | std::to_string(_parent->is_colocated_operator())); | 602 | 371 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 371 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 371 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 371 | return Status::OK(); | 606 | 371 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 5.17k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 5.17k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 5.17k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 5.17k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 5.17k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 5.17k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 5.17k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 5.17k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 5.17k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 5.17k | if constexpr (!is_fake_shared) { | 553 | 5.17k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 5.17k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 5.16k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 5.16k | _dependency = _shared_state->create_source_dependency( | 569 | 5.16k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 5.16k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 5.16k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 5.16k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 8 | } | 577 | 5.17k | } | 578 | | | 579 | 5.17k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 5.17k | _rows_returned_counter = | 584 | 5.17k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 5.17k | _blocks_returned_counter = | 586 | 5.17k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 5.17k | _output_block_bytes_counter = | 588 | 5.17k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 5.17k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 5.17k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 5.17k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 5.17k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 5.17k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 5.17k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 5.17k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 5.17k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 5.17k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 5.17k | _memory_used_counter = | 599 | 5.17k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 5.17k | _common_profile->add_info_string("IsColocate", | 601 | 5.17k | std::to_string(_parent->is_colocated_operator())); | 602 | 5.17k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 5.17k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 5.17k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 5.17k | return Status::OK(); | 606 | 5.17k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 785k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 785k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 785k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 785k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 785k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 785k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 785k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 785k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 785k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 785k | if constexpr (!is_fake_shared) { | 553 | 785k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 785k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 785k | .first.get() | 556 | 785k | ->template cast<SharedStateArg>(); | 557 | | | 558 | 785k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 785k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 785k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 18.4E | } else if (info.shared_state) { | 562 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | 0 | DCHECK(false); | 564 | 0 | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | |
| 568 | 0 | _dependency = _shared_state->create_source_dependency( | 569 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 18.4E | } else { | 573 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | 18.4E | DCHECK(false); | 575 | 18.4E | } | 576 | 18.4E | } | 577 | 785k | } | 578 | | | 579 | 785k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 785k | _rows_returned_counter = | 584 | 785k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 785k | _blocks_returned_counter = | 586 | 785k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 785k | _output_block_bytes_counter = | 588 | 785k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 785k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 785k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 785k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 785k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 785k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 785k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 785k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 785k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 785k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 785k | _memory_used_counter = | 599 | 785k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 785k | _common_profile->add_info_string("IsColocate", | 601 | 785k | std::to_string(_parent->is_colocated_operator())); | 602 | 785k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 785k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 785k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 785k | return Status::OK(); | 606 | 785k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 164 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 164 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 164 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 164 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 164 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 164 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 164 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 164 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 164 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 164 | if constexpr (!is_fake_shared) { | 553 | 164 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 164 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 164 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 164 | _dependency = _shared_state->create_source_dependency( | 569 | 164 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 164 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 164 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 164 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 164 | } | 578 | | | 579 | 164 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 164 | _rows_returned_counter = | 584 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 164 | _blocks_returned_counter = | 586 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 164 | _output_block_bytes_counter = | 588 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 164 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 164 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 164 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 164 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 164 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 164 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 164 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 164 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 164 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 164 | _memory_used_counter = | 599 | 164 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 164 | _common_profile->add_info_string("IsColocate", | 601 | 164 | std::to_string(_parent->is_colocated_operator())); | 602 | 164 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 164 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 164 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 164 | return Status::OK(); | 606 | 164 | } |
|
607 | | |
608 | | template <typename SharedStateArg> |
609 | 2.58M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
610 | 2.58M | _conjuncts.resize(_parent->_conjuncts.size()); |
611 | 2.58M | _projections.resize(_parent->_projections.size()); |
612 | 3.12M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
613 | 545k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
614 | 545k | } |
615 | 5.41M | for (size_t i = 0; i < _projections.size(); i++) { |
616 | 2.83M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
617 | 2.83M | } |
618 | 2.58M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
619 | 2.59M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
620 | 14.2k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
621 | 108k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
622 | 94.6k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
623 | 94.6k | state, _intermediate_projections[i][j])); |
624 | 94.6k | } |
625 | 14.2k | } |
626 | 2.58M | return Status::OK(); |
627 | 2.58M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 70.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 70.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 70.7k | _projections.resize(_parent->_projections.size()); | 612 | 71.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 1.14k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 1.14k | } | 615 | 349k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 278k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 278k | } | 618 | 70.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 73.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 3.13k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 41.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 37.9k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 37.9k | state, _intermediate_projections[i][j])); | 624 | 37.9k | } | 625 | 3.13k | } | 626 | 70.7k | return Status::OK(); | 627 | 70.7k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 3 | _projections.resize(_parent->_projections.size()); | 612 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 3 | return Status::OK(); | 627 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 281k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 281k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 281k | _projections.resize(_parent->_projections.size()); | 612 | 281k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 281k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 365 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 365 | } | 618 | 281k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 281k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 281k | return Status::OK(); | 627 | 281k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 23 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 23 | _projections.resize(_parent->_projections.size()); | 612 | 23 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 23 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 23 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 23 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 23 | return Status::OK(); | 627 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 9.99k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 9.99k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 9.99k | _projections.resize(_parent->_projections.size()); | 612 | 10.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 131 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 131 | } | 615 | 63.6k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 53.7k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 53.7k | } | 618 | 9.99k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 10.1k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 146 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 939 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 793 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 793 | state, _intermediate_projections[i][j])); | 624 | 793 | } | 625 | 146 | } | 626 | 9.99k | return Status::OK(); | 627 | 9.99k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 8.22k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 8.22k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 8.22k | _projections.resize(_parent->_projections.size()); | 612 | 8.93k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 712 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 712 | } | 615 | 21.7k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 13.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 13.4k | } | 618 | 8.22k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 8.31k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 95 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 726 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 631 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 631 | state, _intermediate_projections[i][j])); | 624 | 631 | } | 625 | 95 | } | 626 | 8.22k | return Status::OK(); | 627 | 8.22k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 164k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 164k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 164k | _projections.resize(_parent->_projections.size()); | 612 | 169k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 4.14k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 4.14k | } | 615 | 426k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 261k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 261k | } | 618 | 164k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 165k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 286 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 1.91k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 1.62k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 1.62k | state, _intermediate_projections[i][j])); | 624 | 1.62k | } | 625 | 286 | } | 626 | 164k | return Status::OK(); | 627 | 164k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 312 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 312 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 312 | _projections.resize(_parent->_projections.size()); | 612 | 319 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 7 | } | 615 | 1.19k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 879 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 879 | } | 618 | 312 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 312 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 312 | return Status::OK(); | 627 | 312 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 94 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 94 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 94 | _projections.resize(_parent->_projections.size()); | 612 | 94 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 238 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 144 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 144 | } | 618 | 94 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 94 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 94 | return Status::OK(); | 627 | 94 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 1.18M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 1.18M | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 1.18M | _projections.resize(_parent->_projections.size()); | 612 | 1.72M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 535k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 535k | } | 615 | 3.31M | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 2.13M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 2.13M | } | 618 | 1.18M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 1.19M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 10.5k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 64.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 53.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 53.5k | state, _intermediate_projections[i][j])); | 624 | 53.5k | } | 625 | 10.5k | } | 626 | 1.18M | return Status::OK(); | 627 | 1.18M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 56.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 56.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 56.6k | _projections.resize(_parent->_projections.size()); | 612 | 56.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 152k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 96.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 96.0k | } | 618 | 56.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 56.6k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 56.6k | return Status::OK(); | 627 | 56.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 25 | _projections.resize(_parent->_projections.size()); | 612 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 25 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 25 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 25 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 25 | return Status::OK(); | 627 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 10.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 10.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 10.1k | _projections.resize(_parent->_projections.size()); | 612 | 13.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 3.51k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 3.51k | } | 615 | 10.1k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 10.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 10.1k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 10.1k | return Status::OK(); | 627 | 10.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 371 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 371 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 371 | _projections.resize(_parent->_projections.size()); | 612 | 371 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 371 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 371 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 371 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 371 | return Status::OK(); | 627 | 371 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 5.17k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 5.17k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 5.17k | _projections.resize(_parent->_projections.size()); | 612 | 5.17k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 5.34k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 168 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 168 | } | 618 | 5.17k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 5.17k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 5.17k | return Status::OK(); | 627 | 5.17k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 786k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 786k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 786k | _projections.resize(_parent->_projections.size()); | 612 | 786k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 786k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 786k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 786k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 786k | return Status::OK(); | 627 | 786k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 164 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 164 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 164 | _projections.resize(_parent->_projections.size()); | 612 | 171 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 7 | } | 615 | 483 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 319 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 319 | } | 618 | 164 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 167 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 3 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 11 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 8 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 8 | state, _intermediate_projections[i][j])); | 624 | 8 | } | 625 | 3 | } | 626 | 164 | return Status::OK(); | 627 | 164 | } |
|
628 | | |
629 | | template <typename SharedStateArg> |
630 | 6.57k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
631 | 6.57k | if (_terminated) { |
632 | 0 | return Status::OK(); |
633 | 0 | } |
634 | 6.57k | _terminated = true; |
635 | 6.57k | return Status::OK(); |
636 | 6.57k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 385 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 385 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 385 | _terminated = true; | 635 | 385 | return Status::OK(); | 636 | 385 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 59 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 59 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 59 | _terminated = true; | 635 | 59 | return Status::OK(); | 636 | 59 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 45 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 45 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 45 | _terminated = true; | 635 | 45 | return Status::OK(); | 636 | 45 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 150 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 150 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 150 | _terminated = true; | 635 | 150 | return Status::OK(); | 636 | 150 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 5.02k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 5.02k | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 5.02k | _terminated = true; | 635 | 5.02k | return Status::OK(); | 636 | 5.02k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 5 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 5 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 5 | _terminated = true; | 635 | 5 | return Status::OK(); | 636 | 5 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 12 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 12 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 12 | _terminated = true; | 635 | 12 | return Status::OK(); | 636 | 12 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 2 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 2 | _terminated = true; | 635 | 2 | return Status::OK(); | 636 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 880 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 880 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 880 | _terminated = true; | 635 | 880 | return Status::OK(); | 636 | 880 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 18 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 18 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 18 | _terminated = true; | 635 | 18 | return Status::OK(); | 636 | 18 | } |
|
637 | | |
638 | | template <typename SharedStateArg> |
639 | 2.89M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
640 | 2.89M | if (_closed) { |
641 | 312k | return Status::OK(); |
642 | 312k | } |
643 | 2.57M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
644 | 1.39M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
645 | 1.39M | } |
646 | 2.57M | _closed = true; |
647 | 2.57M | return Status::OK(); |
648 | 2.89M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 70.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 70.6k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 70.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 70.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 70.6k | } | 646 | 70.6k | _closed = true; | 647 | 70.6k | return Status::OK(); | 648 | 70.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 4 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 4 | } | 646 | 4 | _closed = true; | 647 | 4 | return Status::OK(); | 648 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 558k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 558k | if (_closed) { | 641 | 279k | return Status::OK(); | 642 | 279k | } | 643 | 279k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 279k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 279k | } | 646 | 279k | _closed = true; | 647 | 279k | return Status::OK(); | 648 | 558k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 23 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 23 | } | 646 | 23 | _closed = true; | 647 | 23 | return Status::OK(); | 648 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 9.99k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 9.99k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 9.99k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 9.99k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 9.99k | } | 646 | 9.99k | _closed = true; | 647 | 9.99k | return Status::OK(); | 648 | 9.99k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 16.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 16.5k | if (_closed) { | 641 | 8.32k | return Status::OK(); | 642 | 8.32k | } | 643 | 8.21k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 8.21k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 8.21k | } | 646 | 8.21k | _closed = true; | 647 | 8.21k | return Status::OK(); | 648 | 16.5k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 164k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 164k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 164k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 164k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 164k | } | 646 | 164k | _closed = true; | 647 | 164k | return Status::OK(); | 648 | 164k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 312 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 312 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 312 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 312 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 312 | } | 646 | 312 | _closed = true; | 647 | 312 | return Status::OK(); | 648 | 312 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 89 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 89 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 89 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 89 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 89 | } | 646 | 89 | _closed = true; | 647 | 89 | return Status::OK(); | 648 | 89 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 1.20M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 1.20M | if (_closed) { | 641 | 19.8k | return Status::OK(); | 642 | 19.8k | } | 643 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | | } | 646 | 1.18M | _closed = true; | 647 | 1.18M | return Status::OK(); | 648 | 1.20M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 56.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 56.7k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 56.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 56.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 56.7k | } | 646 | 56.7k | _closed = true; | 647 | 56.7k | return Status::OK(); | 648 | 56.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 28 | if (_closed) { | 641 | 14 | return Status::OK(); | 642 | 14 | } | 643 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 14 | } | 646 | 14 | _closed = true; | 647 | 14 | return Status::OK(); | 648 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 10.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 10.1k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 10.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 10.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 10.1k | } | 646 | 10.1k | _closed = true; | 647 | 10.1k | return Status::OK(); | 648 | 10.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 538 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 538 | if (_closed) { | 641 | 269 | return Status::OK(); | 642 | 269 | } | 643 | 269 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 269 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 269 | } | 646 | 269 | _closed = true; | 647 | 269 | return Status::OK(); | 648 | 538 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 10.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 10.4k | if (_closed) { | 641 | 5.24k | return Status::OK(); | 642 | 5.24k | } | 643 | 5.16k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 5.16k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 5.16k | } | 646 | 5.16k | _closed = true; | 647 | 5.16k | return Status::OK(); | 648 | 10.4k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 787k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 787k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 787k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 787k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 787k | } | 646 | 787k | _closed = true; | 647 | 787k | return Status::OK(); | 648 | 787k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 330 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 330 | if (_closed) { | 641 | 175 | return Status::OK(); | 642 | 175 | } | 643 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 155 | } | 646 | 155 | _closed = true; | 647 | 155 | return Status::OK(); | 648 | 330 | } |
|
649 | | |
650 | | template <typename SharedState> |
651 | 2.13M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
652 | | // create profile |
653 | 2.13M | _operator_profile = |
654 | 2.13M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
655 | 2.13M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
656 | 2.13M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
657 | | |
658 | | // indentation is true |
659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
660 | | // So we should set the indentation to true. |
661 | 2.13M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
662 | 2.13M | _operator_profile->add_child(_common_profile, true); |
663 | 2.13M | _operator_profile->add_child(_custom_profile, true); |
664 | | |
665 | 2.13M | _operator_profile->set_metadata(_parent->node_id()); |
666 | 2.13M | _wait_for_finish_dependency_timer = |
667 | 2.13M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
668 | 2.13M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
669 | 2.13M | if constexpr (!is_fake_shared) { |
670 | 1.41M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
671 | 1.41M | info.shared_state_map.end()) { |
672 | 328k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
673 | 309k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
674 | 309k | } |
675 | 328k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
676 | 328k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
677 | 328k | ? 0 |
678 | 328k | : info.task_idx] |
679 | 328k | .get(); |
680 | 328k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
681 | 1.08M | } else { |
682 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 18.4E | DCHECK(false); |
684 | 18.4E | } |
685 | 1.08M | _shared_state = info.shared_state->template cast<SharedState>(); |
686 | 1.08M | _dependency = _shared_state->create_sink_dependency( |
687 | 1.08M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
688 | 1.08M | } |
689 | 1.41M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
690 | 1.41M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
691 | 1.41M | } |
692 | | |
693 | 2.13M | if (must_set_shared_state() && _shared_state == nullptr) { |
694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
695 | 0 | } |
696 | | |
697 | 2.13M | _rows_input_counter = |
698 | 2.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
699 | 2.13M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
700 | 2.13M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
701 | 2.13M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
702 | 2.13M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
703 | 2.13M | _memory_used_counter = |
704 | 2.13M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
705 | 2.13M | _common_profile->add_info_string("IsColocate", |
706 | 2.13M | std::to_string(_parent->is_colocated_operator())); |
707 | 2.13M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
708 | 2.13M | _common_profile->add_info_string("FollowedByShuffledOperator", |
709 | 2.13M | std::to_string(_parent->followed_by_shuffled_operator())); |
710 | 2.13M | return Status::OK(); |
711 | 2.13M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 118k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 118k | _operator_profile = | 654 | 118k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 118k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 118k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 118k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 118k | _operator_profile->add_child(_common_profile, true); | 663 | 118k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 118k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 118k | _wait_for_finish_dependency_timer = | 667 | 118k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 118k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 118k | if constexpr (!is_fake_shared) { | 670 | 118k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 118k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 19.5k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 19.5k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 19.5k | ? 0 | 678 | 19.5k | : info.task_idx] | 679 | 19.5k | .get(); | 680 | 19.5k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 99.1k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 99.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 99.1k | _dependency = _shared_state->create_sink_dependency( | 687 | 99.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 99.1k | } | 689 | 118k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 118k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 118k | } | 692 | | | 693 | 118k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 118k | _rows_input_counter = | 698 | 118k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 118k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 118k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 118k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 118k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 118k | _memory_used_counter = | 704 | 118k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 118k | _common_profile->add_info_string("IsColocate", | 706 | 118k | std::to_string(_parent->is_colocated_operator())); | 707 | 118k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 118k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 118k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 118k | return Status::OK(); | 711 | 118k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 2 | _operator_profile = | 654 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 2 | _operator_profile->add_child(_common_profile, true); | 663 | 2 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 2 | _wait_for_finish_dependency_timer = | 667 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 2 | if constexpr (!is_fake_shared) { | 670 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 2 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 2 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 2 | _dependency = _shared_state->create_sink_dependency( | 687 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 2 | } | 689 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 2 | } | 692 | | | 693 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 2 | _rows_input_counter = | 698 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 2 | _memory_used_counter = | 704 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 2 | _common_profile->add_info_string("IsColocate", | 706 | 2 | std::to_string(_parent->is_colocated_operator())); | 707 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 2 | return Status::OK(); | 711 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 280k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 280k | _operator_profile = | 654 | 280k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 280k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 280k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 280k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 280k | _operator_profile->add_child(_common_profile, true); | 663 | 280k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 280k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 280k | _wait_for_finish_dependency_timer = | 667 | 280k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 280k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 280k | if constexpr (!is_fake_shared) { | 670 | 280k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 280k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 280k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 280k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 280k | _dependency = _shared_state->create_sink_dependency( | 687 | 280k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 280k | } | 689 | 280k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 280k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 280k | } | 692 | | | 693 | 280k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 280k | _rows_input_counter = | 698 | 280k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 280k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 280k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 280k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 280k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 280k | _memory_used_counter = | 704 | 280k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 280k | _common_profile->add_info_string("IsColocate", | 706 | 280k | std::to_string(_parent->is_colocated_operator())); | 707 | 280k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 280k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 280k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 280k | return Status::OK(); | 711 | 280k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 30 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 30 | _operator_profile = | 654 | 30 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 30 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 30 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 30 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 30 | _operator_profile->add_child(_common_profile, true); | 663 | 30 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 30 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 30 | _wait_for_finish_dependency_timer = | 667 | 30 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 30 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 30 | if constexpr (!is_fake_shared) { | 670 | 30 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 30 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 30 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 30 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 30 | _dependency = _shared_state->create_sink_dependency( | 687 | 30 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 30 | } | 689 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 30 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 30 | } | 692 | | | 693 | 30 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 30 | _rows_input_counter = | 698 | 30 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 30 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 30 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 30 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 30 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 30 | _memory_used_counter = | 704 | 30 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 30 | _common_profile->add_info_string("IsColocate", | 706 | 30 | std::to_string(_parent->is_colocated_operator())); | 707 | 30 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 30 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 30 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 30 | return Status::OK(); | 711 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 9.99k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 9.99k | _operator_profile = | 654 | 9.99k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 9.99k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 9.99k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 9.99k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 9.99k | _operator_profile->add_child(_common_profile, true); | 663 | 9.99k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 9.99k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 9.99k | _wait_for_finish_dependency_timer = | 667 | 9.99k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 9.99k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 9.99k | if constexpr (!is_fake_shared) { | 670 | 9.99k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 9.99k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 9.99k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 9.99k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 9.99k | _dependency = _shared_state->create_sink_dependency( | 687 | 9.99k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 9.99k | } | 689 | 9.99k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 9.99k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 9.99k | } | 692 | | | 693 | 9.99k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 9.99k | _rows_input_counter = | 698 | 9.99k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 9.99k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 9.99k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 9.99k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 9.99k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 9.99k | _memory_used_counter = | 704 | 9.99k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 9.99k | _common_profile->add_info_string("IsColocate", | 706 | 9.99k | std::to_string(_parent->is_colocated_operator())); | 707 | 9.99k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 9.99k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 9.99k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 9.99k | return Status::OK(); | 711 | 9.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 8.20k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 8.20k | _operator_profile = | 654 | 8.20k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 8.20k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 8.20k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 8.20k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 8.20k | _operator_profile->add_child(_common_profile, true); | 663 | 8.20k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 8.20k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 8.20k | _wait_for_finish_dependency_timer = | 667 | 8.20k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 8.20k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 8.20k | if constexpr (!is_fake_shared) { | 670 | 8.20k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 8.20k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 8.20k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 8.20k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 8.20k | _dependency = _shared_state->create_sink_dependency( | 687 | 8.20k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 8.20k | } | 689 | 8.20k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 8.20k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 8.20k | } | 692 | | | 693 | 8.20k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 8.20k | _rows_input_counter = | 698 | 8.20k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 8.20k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 8.20k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 8.20k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 8.20k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 8.20k | _memory_used_counter = | 704 | 8.20k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 8.20k | _common_profile->add_info_string("IsColocate", | 706 | 8.20k | std::to_string(_parent->is_colocated_operator())); | 707 | 8.20k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 8.20k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 8.20k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 8.20k | return Status::OK(); | 711 | 8.20k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 164k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 164k | _operator_profile = | 654 | 164k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 164k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 164k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 164k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 164k | _operator_profile->add_child(_common_profile, true); | 663 | 164k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 164k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 164k | _wait_for_finish_dependency_timer = | 667 | 164k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 164k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 164k | if constexpr (!is_fake_shared) { | 670 | 164k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 164k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 164k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 164k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 164k | _dependency = _shared_state->create_sink_dependency( | 687 | 164k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 164k | } | 689 | 164k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 164k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 164k | } | 692 | | | 693 | 164k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 164k | _rows_input_counter = | 698 | 164k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 164k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 164k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 164k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 164k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 164k | _memory_used_counter = | 704 | 164k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 164k | _common_profile->add_info_string("IsColocate", | 706 | 164k | std::to_string(_parent->is_colocated_operator())); | 707 | 164k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 164k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 164k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 164k | return Status::OK(); | 711 | 164k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 310 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 310 | _operator_profile = | 654 | 310 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 310 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 310 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 310 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 310 | _operator_profile->add_child(_common_profile, true); | 663 | 310 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 310 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 310 | _wait_for_finish_dependency_timer = | 667 | 310 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 310 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 310 | if constexpr (!is_fake_shared) { | 670 | 310 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 312 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 312 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 312 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 312 | ? 0 | 678 | 312 | : info.task_idx] | 679 | 312 | .get(); | 680 | 312 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 18.4E | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 687 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 18.4E | } | 689 | 310 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 310 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 310 | } | 692 | | | 693 | 312 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 310 | _rows_input_counter = | 698 | 310 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 310 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 310 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 310 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 310 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 310 | _memory_used_counter = | 704 | 310 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 310 | _common_profile->add_info_string("IsColocate", | 706 | 310 | std::to_string(_parent->is_colocated_operator())); | 707 | 310 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 310 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 310 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 310 | return Status::OK(); | 711 | 310 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 100 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 100 | _operator_profile = | 654 | 100 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 100 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 100 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 100 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 100 | _operator_profile->add_child(_common_profile, true); | 663 | 100 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 100 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 100 | _wait_for_finish_dependency_timer = | 667 | 100 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 100 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 100 | if constexpr (!is_fake_shared) { | 670 | 100 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 100 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 100 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 100 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 100 | _dependency = _shared_state->create_sink_dependency( | 687 | 100 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 100 | } | 689 | 100 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 100 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 100 | } | 692 | | | 693 | 100 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 100 | _rows_input_counter = | 698 | 100 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 100 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 100 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 100 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 100 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 100 | _memory_used_counter = | 704 | 100 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 100 | _common_profile->add_info_string("IsColocate", | 706 | 100 | std::to_string(_parent->is_colocated_operator())); | 707 | 100 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 100 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 100 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 100 | return Status::OK(); | 711 | 100 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 712k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 712k | _operator_profile = | 654 | 712k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 712k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 712k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 712k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 712k | _operator_profile->add_child(_common_profile, true); | 663 | 712k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 712k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 712k | _wait_for_finish_dependency_timer = | 667 | 712k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 712k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | | if constexpr (!is_fake_shared) { | 670 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | | ? 0 | 678 | | : info.task_idx] | 679 | | .get(); | 680 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | | _dependency = _shared_state->create_sink_dependency( | 687 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | | } | 689 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | | } | 692 | | | 693 | 712k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 712k | _rows_input_counter = | 698 | 712k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 712k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 712k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 712k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 712k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 712k | _memory_used_counter = | 704 | 712k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 712k | _common_profile->add_info_string("IsColocate", | 706 | 712k | std::to_string(_parent->is_colocated_operator())); | 707 | 712k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 712k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 712k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 712k | return Status::OK(); | 711 | 712k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 6.40k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 6.40k | _operator_profile = | 654 | 6.40k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 6.40k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 6.40k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 6.40k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 6.40k | _operator_profile->add_child(_common_profile, true); | 663 | 6.40k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 6.40k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 6.40k | _wait_for_finish_dependency_timer = | 667 | 6.40k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 6.40k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 6.40k | if constexpr (!is_fake_shared) { | 670 | 6.40k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 6.40k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 6.40k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 6.40k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 6.40k | _dependency = _shared_state->create_sink_dependency( | 687 | 6.40k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 6.40k | } | 689 | 6.40k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 6.40k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 6.40k | } | 692 | | | 693 | 6.40k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 6.40k | _rows_input_counter = | 698 | 6.40k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 6.40k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 6.40k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 6.40k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 6.40k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 6.40k | _memory_used_counter = | 704 | 6.40k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 6.40k | _common_profile->add_info_string("IsColocate", | 706 | 6.40k | std::to_string(_parent->is_colocated_operator())); | 707 | 6.40k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 6.40k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 6.40k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 6.40k | return Status::OK(); | 711 | 6.40k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 370 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 370 | _operator_profile = | 654 | 370 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 370 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 370 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 370 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 370 | _operator_profile->add_child(_common_profile, true); | 663 | 370 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 370 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 370 | _wait_for_finish_dependency_timer = | 667 | 370 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 370 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 370 | if constexpr (!is_fake_shared) { | 670 | 370 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 370 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 370 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 370 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 370 | _dependency = _shared_state->create_sink_dependency( | 687 | 370 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 370 | } | 689 | 370 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 370 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 370 | } | 692 | | | 693 | 370 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 370 | _rows_input_counter = | 698 | 370 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 370 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 370 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 370 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 370 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 370 | _memory_used_counter = | 704 | 370 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 370 | _common_profile->add_info_string("IsColocate", | 706 | 370 | std::to_string(_parent->is_colocated_operator())); | 707 | 370 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 370 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 370 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 370 | return Status::OK(); | 711 | 370 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 3.74k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 3.74k | _operator_profile = | 654 | 3.74k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 3.74k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 3.74k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 3.74k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 3.74k | _operator_profile->add_child(_common_profile, true); | 663 | 3.74k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 3.74k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 3.74k | _wait_for_finish_dependency_timer = | 667 | 3.74k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 3.74k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 3.74k | if constexpr (!is_fake_shared) { | 670 | 3.74k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 3.74k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 3.74k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 3.74k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 3.74k | _dependency = _shared_state->create_sink_dependency( | 687 | 3.74k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 3.74k | } | 689 | 3.74k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 3.74k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 3.74k | } | 692 | | | 693 | 3.74k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 3.74k | _rows_input_counter = | 698 | 3.74k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 3.74k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 3.74k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 3.74k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 3.74k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 3.74k | _memory_used_counter = | 704 | 3.74k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 3.74k | _common_profile->add_info_string("IsColocate", | 706 | 3.74k | std::to_string(_parent->is_colocated_operator())); | 707 | 3.74k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 3.74k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 3.74k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 3.74k | return Status::OK(); | 711 | 3.74k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 12.5k | _operator_profile = | 654 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 12.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 12.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 12.5k | _operator_profile->add_child(_common_profile, true); | 663 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 12.5k | _wait_for_finish_dependency_timer = | 667 | 12.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 12.5k | if constexpr (!is_fake_shared) { | 670 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 12.5k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 12.5k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 687 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 12.5k | } | 689 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 12.5k | } | 692 | | | 693 | 12.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 12.5k | _rows_input_counter = | 698 | 12.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 12.5k | _memory_used_counter = | 704 | 12.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 12.5k | _common_profile->add_info_string("IsColocate", | 706 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 707 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 12.5k | return Status::OK(); | 711 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 308k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 308k | _operator_profile = | 654 | 308k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 308k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 308k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 308k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 308k | _operator_profile->add_child(_common_profile, true); | 663 | 308k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 308k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 308k | _wait_for_finish_dependency_timer = | 667 | 308k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 308k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 308k | if constexpr (!is_fake_shared) { | 670 | 308k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 309k | info.shared_state_map.end()) { | 672 | 309k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | 309k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | 309k | } | 675 | 309k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 309k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 309k | ? 0 | 678 | 309k | : info.task_idx] | 679 | 309k | .get(); | 680 | 309k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 18.4E | } else { | 682 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 18.4E | DCHECK(false); | 684 | 18.4E | } | 685 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 687 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 18.4E | } | 689 | 308k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 308k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 308k | } | 692 | | | 693 | 308k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 308k | _rows_input_counter = | 698 | 308k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 308k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 308k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 308k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 308k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 308k | _memory_used_counter = | 704 | 308k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 308k | _common_profile->add_info_string("IsColocate", | 706 | 308k | std::to_string(_parent->is_colocated_operator())); | 707 | 308k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 308k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 308k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 308k | return Status::OK(); | 711 | 308k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 503k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 503k | _operator_profile = | 654 | 503k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 503k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 503k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 503k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 503k | _operator_profile->add_child(_common_profile, true); | 663 | 503k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 503k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 503k | _wait_for_finish_dependency_timer = | 667 | 503k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 503k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 503k | if constexpr (!is_fake_shared) { | 670 | 503k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 503k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 503k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 503k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 503k | _dependency = _shared_state->create_sink_dependency( | 687 | 503k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 503k | } | 689 | 503k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 503k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 503k | } | 692 | | | 693 | 504k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 503k | _rows_input_counter = | 698 | 503k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 503k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 503k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 503k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 503k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 503k | _memory_used_counter = | 704 | 503k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 503k | _common_profile->add_info_string("IsColocate", | 706 | 503k | std::to_string(_parent->is_colocated_operator())); | 707 | 503k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 503k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 503k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 503k | return Status::OK(); | 711 | 503k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 25 | _operator_profile = | 654 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 25 | _operator_profile->add_child(_common_profile, true); | 663 | 25 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 25 | _wait_for_finish_dependency_timer = | 667 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 25 | if constexpr (!is_fake_shared) { | 670 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 25 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 25 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 25 | _dependency = _shared_state->create_sink_dependency( | 687 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 25 | } | 689 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 25 | } | 692 | | | 693 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 25 | _rows_input_counter = | 698 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 25 | _memory_used_counter = | 704 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 25 | _common_profile->add_info_string("IsColocate", | 706 | 25 | std::to_string(_parent->is_colocated_operator())); | 707 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 25 | return Status::OK(); | 711 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 328 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 328 | _operator_profile = | 654 | 328 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 328 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 328 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 328 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 328 | _operator_profile->add_child(_common_profile, true); | 663 | 328 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 328 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 328 | _wait_for_finish_dependency_timer = | 667 | 328 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 328 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 328 | if constexpr (!is_fake_shared) { | 670 | 328 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 328 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 328 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 328 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 328 | _dependency = _shared_state->create_sink_dependency( | 687 | 328 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 328 | } | 689 | 328 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 328 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 328 | } | 692 | | | 693 | 328 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 328 | _rows_input_counter = | 698 | 328 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 328 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 328 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 328 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 328 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 328 | _memory_used_counter = | 704 | 328 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 328 | _common_profile->add_info_string("IsColocate", | 706 | 328 | std::to_string(_parent->is_colocated_operator())); | 707 | 328 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 328 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 328 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 328 | return Status::OK(); | 711 | 328 | } |
|
712 | | |
713 | | template <typename SharedState> |
714 | 2.13M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
715 | 2.13M | if (_closed) { |
716 | 2 | return Status::OK(); |
717 | 2 | } |
718 | 2.13M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
719 | 1.42M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
720 | 1.42M | } |
721 | 2.13M | _closed = true; |
722 | 2.13M | return Status::OK(); |
723 | 2.13M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 118k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 118k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 118k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 118k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 118k | } | 721 | 118k | _closed = true; | 722 | 118k | return Status::OK(); | 723 | 118k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 1 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 1 | } | 721 | 1 | _closed = true; | 722 | 1 | return Status::OK(); | 723 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 280k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 280k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 280k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 280k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 280k | } | 721 | 280k | _closed = true; | 722 | 280k | return Status::OK(); | 723 | 280k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 21 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 21 | if (_closed) { | 716 | 2 | return Status::OK(); | 717 | 2 | } | 718 | 19 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 19 | } | 721 | 19 | _closed = true; | 722 | 19 | return Status::OK(); | 723 | 21 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 9.98k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 9.98k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 9.98k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 9.98k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 9.98k | } | 721 | 9.98k | _closed = true; | 722 | 9.98k | return Status::OK(); | 723 | 9.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 8.20k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 8.20k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 8.20k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 8.20k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 8.20k | } | 721 | 8.20k | _closed = true; | 722 | 8.20k | return Status::OK(); | 723 | 8.20k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 164k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 164k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 164k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 164k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 164k | } | 721 | 164k | _closed = true; | 722 | 164k | return Status::OK(); | 723 | 164k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 309 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 309 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 309 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 309 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 309 | } | 721 | 309 | _closed = true; | 722 | 309 | return Status::OK(); | 723 | 309 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 89 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 89 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 89 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 89 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 89 | } | 721 | 89 | _closed = true; | 722 | 89 | return Status::OK(); | 723 | 89 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 715k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 715k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | | } | 721 | 715k | _closed = true; | 722 | 715k | return Status::OK(); | 723 | 715k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 6.40k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 6.40k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 6.40k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 6.40k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 6.40k | } | 721 | 6.40k | _closed = true; | 722 | 6.40k | return Status::OK(); | 723 | 6.40k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 268 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 268 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 268 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 268 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 268 | } | 721 | 268 | _closed = true; | 722 | 268 | return Status::OK(); | 723 | 268 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 3.74k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 3.74k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 3.74k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 3.74k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 3.74k | } | 721 | 3.74k | _closed = true; | 722 | 3.74k | return Status::OK(); | 723 | 3.74k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 12.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 12.6k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 12.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 12.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 12.6k | } | 721 | 12.6k | _closed = true; | 722 | 12.6k | return Status::OK(); | 723 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 309k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 309k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 309k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 309k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 309k | } | 721 | 309k | _closed = true; | 722 | 309k | return Status::OK(); | 723 | 309k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 508k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 508k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 508k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 508k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 508k | } | 721 | 508k | _closed = true; | 722 | 508k | return Status::OK(); | 723 | 508k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 14 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 14 | } | 721 | 14 | _closed = true; | 722 | 14 | return Status::OK(); | 723 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 328 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 328 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 328 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 328 | } | 721 | 328 | _closed = true; | 722 | 328 | return Status::OK(); | 723 | 328 | } |
|
724 | | |
725 | | template <typename LocalStateType> |
726 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
727 | 15.9k | bool* eos) { |
728 | 15.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
729 | 15.9k | return pull(state, block, eos); |
730 | 15.9k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 727 | 432 | bool* eos) { | 728 | 432 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 729 | 432 | return pull(state, block, eos); | 730 | 432 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 727 | 15.5k | bool* eos) { | 728 | 15.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 729 | 15.5k | return pull(state, block, eos); | 730 | 15.5k | } |
|
731 | | |
732 | | template <typename LocalStateType> |
733 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
734 | 688k | bool* eos) { |
735 | 688k | auto& local_state = get_local_state(state); |
736 | 688k | if (need_more_input_data(state)) { |
737 | 660k | local_state._child_block->clear_column_data( |
738 | 660k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
739 | 660k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
740 | 660k | state, local_state._child_block.get(), &local_state._child_eos)); |
741 | 660k | *eos = local_state._child_eos; |
742 | 660k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
743 | 74.5k | return Status::OK(); |
744 | 74.5k | } |
745 | 586k | { |
746 | 586k | SCOPED_TIMER(local_state.exec_time_counter()); |
747 | 586k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
748 | 586k | } |
749 | 586k | } |
750 | | |
751 | 614k | if (!need_more_input_data(state)) { |
752 | 563k | SCOPED_TIMER(local_state.exec_time_counter()); |
753 | 563k | bool new_eos = false; |
754 | 563k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
755 | 563k | if (new_eos) { |
756 | 483k | *eos = true; |
757 | 483k | } else if (!need_more_input_data(state)) { |
758 | 23.4k | *eos = false; |
759 | 23.4k | } |
760 | 563k | } |
761 | 614k | return Status::OK(); |
762 | 614k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 150k | bool* eos) { | 735 | 150k | auto& local_state = get_local_state(state); | 736 | 150k | if (need_more_input_data(state)) { | 737 | 134k | local_state._child_block->clear_column_data( | 738 | 134k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 134k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 134k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 134k | *eos = local_state._child_eos; | 742 | 134k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 45.8k | return Status::OK(); | 744 | 45.8k | } | 745 | 88.8k | { | 746 | 88.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 88.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 88.8k | } | 749 | 88.8k | } | 750 | | | 751 | 105k | if (!need_more_input_data(state)) { | 752 | 105k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 105k | bool new_eos = false; | 754 | 105k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 105k | if (new_eos) { | 756 | 46.5k | *eos = true; | 757 | 58.7k | } else if (!need_more_input_data(state)) { | 758 | 10.1k | *eos = false; | 759 | 10.1k | } | 760 | 105k | } | 761 | 105k | return Status::OK(); | 762 | 105k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 4.33k | bool* eos) { | 735 | 4.33k | auto& local_state = get_local_state(state); | 736 | 4.33k | if (need_more_input_data(state)) { | 737 | 2.58k | local_state._child_block->clear_column_data( | 738 | 2.58k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 2.58k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 2.58k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 2.58k | *eos = local_state._child_eos; | 742 | 2.58k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 641 | return Status::OK(); | 744 | 641 | } | 745 | 1.94k | { | 746 | 1.94k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 1.94k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 1.94k | } | 749 | 1.94k | } | 750 | | | 751 | 3.70k | if (!need_more_input_data(state)) { | 752 | 3.70k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 3.70k | bool new_eos = false; | 754 | 3.70k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 3.70k | if (new_eos) { | 756 | 1.43k | *eos = true; | 757 | 2.27k | } else if (!need_more_input_data(state)) { | 758 | 1.75k | *eos = false; | 759 | 1.75k | } | 760 | 3.70k | } | 761 | 3.69k | return Status::OK(); | 762 | 3.69k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 4.93k | bool* eos) { | 735 | 4.93k | auto& local_state = get_local_state(state); | 736 | 4.93k | if (need_more_input_data(state)) { | 737 | 4.93k | local_state._child_block->clear_column_data( | 738 | 4.93k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 4.93k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 4.93k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 4.93k | *eos = local_state._child_eos; | 742 | 4.93k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 1.72k | return Status::OK(); | 744 | 1.72k | } | 745 | 3.21k | { | 746 | 3.21k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 3.21k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 3.21k | } | 749 | 3.21k | } | 750 | | | 751 | 3.21k | if (!need_more_input_data(state)) { | 752 | 3.21k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 3.21k | bool new_eos = false; | 754 | 3.21k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 3.21k | if (new_eos) { | 756 | 1.74k | *eos = true; | 757 | 1.74k | } else if (!need_more_input_data(state)) { | 758 | 0 | *eos = false; | 759 | 0 | } | 760 | 3.21k | } | 761 | 3.21k | return Status::OK(); | 762 | 3.21k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 36.6k | bool* eos) { | 735 | 36.6k | auto& local_state = get_local_state(state); | 736 | 36.7k | if (need_more_input_data(state)) { | 737 | 36.7k | local_state._child_block->clear_column_data( | 738 | 36.7k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 36.7k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 36.7k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 36.7k | *eos = local_state._child_eos; | 742 | 36.7k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 3.54k | return Status::OK(); | 744 | 3.54k | } | 745 | 33.2k | { | 746 | 33.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 33.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 33.2k | } | 749 | 33.2k | } | 750 | | | 751 | 33.0k | if (!need_more_input_data(state)) { | 752 | 12.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 12.3k | bool new_eos = false; | 754 | 12.3k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 12.3k | if (new_eos) { | 756 | 12.3k | *eos = true; | 757 | 12.3k | } else if (!need_more_input_data(state)) { | 758 | 0 | *eos = false; | 759 | 0 | } | 760 | 12.3k | } | 761 | 33.0k | return Status::OK(); | 762 | 33.0k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 455k | bool* eos) { | 735 | 455k | auto& local_state = get_local_state(state); | 736 | 457k | if (need_more_input_data(state)) { | 737 | 457k | local_state._child_block->clear_column_data( | 738 | 457k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 457k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 457k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 457k | *eos = local_state._child_eos; | 742 | 457k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 19.8k | return Status::OK(); | 744 | 19.8k | } | 745 | 437k | { | 746 | 437k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 437k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 437k | } | 749 | 437k | } | 750 | | | 751 | 435k | if (!need_more_input_data(state)) { | 752 | 406k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 406k | bool new_eos = false; | 754 | 406k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 406k | if (new_eos) { | 756 | 406k | *eos = true; | 757 | 406k | } else if (!need_more_input_data(state)) { | 758 | 0 | *eos = false; | 759 | 0 | } | 760 | 406k | } | 761 | 435k | return Status::OK(); | 762 | 435k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 29.2k | bool* eos) { | 735 | 29.2k | auto& local_state = get_local_state(state); | 736 | 29.2k | if (need_more_input_data(state)) { | 737 | 18.1k | local_state._child_block->clear_column_data( | 738 | 18.1k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 18.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 18.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 18.1k | *eos = local_state._child_eos; | 742 | 18.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 2.65k | return Status::OK(); | 744 | 2.65k | } | 745 | 15.4k | { | 746 | 15.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 15.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 15.4k | } | 749 | 15.4k | } | 750 | | | 751 | 26.5k | if (!need_more_input_data(state)) { | 752 | 25.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 25.9k | bool new_eos = false; | 754 | 25.9k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 25.9k | if (new_eos) { | 756 | 9.97k | *eos = true; | 757 | 15.9k | } else if (!need_more_input_data(state)) { | 758 | 11.1k | *eos = false; | 759 | 11.1k | } | 760 | 25.9k | } | 761 | 26.5k | return Status::OK(); | 762 | 26.5k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 6.96k | bool* eos) { | 735 | 6.96k | auto& local_state = get_local_state(state); | 736 | 6.96k | if (need_more_input_data(state)) { | 737 | 6.61k | local_state._child_block->clear_column_data( | 738 | 6.61k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 6.61k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 6.61k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 6.61k | *eos = local_state._child_eos; | 742 | 6.61k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 237 | return Status::OK(); | 744 | 237 | } | 745 | 6.37k | { | 746 | 6.37k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 6.37k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 6.37k | } | 749 | 6.37k | } | 750 | | | 751 | 6.73k | if (!need_more_input_data(state)) { | 752 | 6.73k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 6.73k | bool new_eos = false; | 754 | 6.73k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 6.73k | if (new_eos) { | 756 | 4.71k | *eos = true; | 757 | 4.71k | } else if (!need_more_input_data(state)) { | 758 | 366 | *eos = false; | 759 | 366 | } | 760 | 6.73k | } | 761 | 6.72k | return Status::OK(); | 762 | 6.72k | } |
|
763 | | |
764 | | template <typename Writer, typename Parent> |
765 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
766 | 69.5k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
767 | 69.5k | RETURN_IF_ERROR(Base::init(state, info)); |
768 | 69.5k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
769 | 69.5k | "AsyncWriterDependency", true); |
770 | 69.5k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
771 | 69.5k | _finish_dependency)); |
772 | | |
773 | 69.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
774 | 69.5k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
775 | 69.5k | return Status::OK(); |
776 | 69.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 511 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 511 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 511 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 511 | "AsyncWriterDependency", true); | 770 | 511 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 511 | _finish_dependency)); | 772 | | | 773 | 511 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 511 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 511 | return Status::OK(); | 776 | 511 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 86 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 86 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 86 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 86 | "AsyncWriterDependency", true); | 770 | 86 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 86 | _finish_dependency)); | 772 | | | 773 | 86 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 86 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 86 | return Status::OK(); | 776 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 47.5k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 47.5k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 47.5k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 47.5k | "AsyncWriterDependency", true); | 770 | 47.5k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 47.5k | _finish_dependency)); | 772 | | | 773 | 47.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 47.5k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 47.5k | return Status::OK(); | 776 | 47.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 9.61k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 9.61k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 9.61k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 9.61k | "AsyncWriterDependency", true); | 770 | 9.61k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 9.61k | _finish_dependency)); | 772 | | | 773 | 9.61k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 9.61k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 9.61k | return Status::OK(); | 776 | 9.61k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 5.23k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 5.23k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 5.23k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 5.23k | "AsyncWriterDependency", true); | 770 | 5.23k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 5.23k | _finish_dependency)); | 772 | | | 773 | 5.23k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 5.23k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 5.23k | return Status::OK(); | 776 | 5.23k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 3.95k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 3.95k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 3.95k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 3.95k | "AsyncWriterDependency", true); | 770 | 3.95k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 3.95k | _finish_dependency)); | 772 | | | 773 | 3.95k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 3.95k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 3.95k | return Status::OK(); | 776 | 3.95k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 48 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 48 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 48 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 48 | "AsyncWriterDependency", true); | 770 | 48 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 48 | _finish_dependency)); | 772 | | | 773 | 48 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 48 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 48 | return Status::OK(); | 776 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 704 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 704 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 704 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 704 | "AsyncWriterDependency", true); | 770 | 704 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 704 | _finish_dependency)); | 772 | | | 773 | 704 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 704 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 704 | return Status::OK(); | 776 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 1.71k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 1.71k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 1.71k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 1.71k | "AsyncWriterDependency", true); | 770 | 1.71k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 1.71k | _finish_dependency)); | 772 | | | 773 | 1.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 1.71k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 1.71k | return Status::OK(); | 776 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 156 | "AsyncWriterDependency", true); | 770 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 156 | _finish_dependency)); | 772 | | | 773 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 156 | return Status::OK(); | 776 | 156 | } |
|
777 | | |
778 | | template <typename Writer, typename Parent> |
779 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
780 | 69.5k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
781 | 69.5k | RETURN_IF_ERROR(Base::open(state)); |
782 | 69.5k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
783 | 597k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
784 | 527k | RETURN_IF_ERROR( |
785 | 527k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
786 | 527k | } |
787 | 69.5k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
788 | 69.5k | return Status::OK(); |
789 | 69.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 511 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 511 | RETURN_IF_ERROR(Base::open(state)); | 782 | 511 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 2.76k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 2.25k | RETURN_IF_ERROR( | 785 | 2.25k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 2.25k | } | 787 | 511 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 511 | return Status::OK(); | 789 | 511 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 86 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 86 | RETURN_IF_ERROR(Base::open(state)); | 782 | 86 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 402 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 316 | RETURN_IF_ERROR( | 785 | 316 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 316 | } | 787 | 86 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 86 | return Status::OK(); | 789 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 47.7k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 47.7k | RETURN_IF_ERROR(Base::open(state)); | 782 | 47.7k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 340k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 292k | RETURN_IF_ERROR( | 785 | 292k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 292k | } | 787 | 47.7k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 47.7k | return Status::OK(); | 789 | 47.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 9.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 9.38k | RETURN_IF_ERROR(Base::open(state)); | 782 | 9.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 57.0k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 47.6k | RETURN_IF_ERROR( | 785 | 47.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 47.6k | } | 787 | 9.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 9.38k | return Status::OK(); | 789 | 9.38k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 5.23k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 5.23k | RETURN_IF_ERROR(Base::open(state)); | 782 | 5.23k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 135k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 130k | RETURN_IF_ERROR( | 785 | 130k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 130k | } | 787 | 5.23k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 5.23k | return Status::OK(); | 789 | 5.23k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 3.95k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 3.95k | RETURN_IF_ERROR(Base::open(state)); | 782 | 3.95k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 44.5k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 40.5k | RETURN_IF_ERROR( | 785 | 40.5k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 40.5k | } | 787 | 3.95k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 3.95k | return Status::OK(); | 789 | 3.95k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 48 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 48 | RETURN_IF_ERROR(Base::open(state)); | 782 | 48 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 204 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 156 | RETURN_IF_ERROR( | 785 | 156 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 156 | } | 787 | 48 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 48 | return Status::OK(); | 789 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 704 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 704 | RETURN_IF_ERROR(Base::open(state)); | 782 | 704 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 2.10k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 1.40k | RETURN_IF_ERROR( | 785 | 1.40k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 1.40k | } | 787 | 704 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 704 | return Status::OK(); | 789 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 1.71k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 1.71k | RETURN_IF_ERROR(Base::open(state)); | 782 | 1.71k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 13.2k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 11.5k | RETURN_IF_ERROR( | 785 | 11.5k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 11.5k | } | 787 | 1.71k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 1.71k | return Status::OK(); | 789 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 156 | RETURN_IF_ERROR(Base::open(state)); | 782 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 630 | RETURN_IF_ERROR( | 785 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 630 | } | 787 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 156 | return Status::OK(); | 789 | 156 | } |
|
790 | | |
791 | | template <typename Writer, typename Parent> |
792 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
793 | 95.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
794 | 95.4k | return _writer->sink(block, eos); |
795 | 95.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 1.91k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 1.91k | return _writer->sink(block, eos); | 795 | 1.91k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 110 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 110 | return _writer->sink(block, eos); | 795 | 110 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 65.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 65.0k | return _writer->sink(block, eos); | 795 | 65.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 11.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 11.0k | return _writer->sink(block, eos); | 795 | 11.0k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 7.67k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 7.67k | return _writer->sink(block, eos); | 795 | 7.67k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 6.42k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 6.42k | return _writer->sink(block, eos); | 795 | 6.42k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 60 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 60 | return _writer->sink(block, eos); | 795 | 60 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 794 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 794 | return _writer->sink(block, eos); | 795 | 794 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 2.15k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 2.15k | return _writer->sink(block, eos); | 795 | 2.15k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 310 | return _writer->sink(block, eos); | 795 | 310 | } |
|
796 | | |
797 | | template <typename Writer, typename Parent> |
798 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
799 | 69.6k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
800 | 69.6k | if (_closed) { |
801 | 0 | return Status::OK(); |
802 | 0 | } |
803 | 69.6k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
804 | 69.6k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
805 | | // if the init failed, the _writer may be nullptr. so here need check |
806 | 69.7k | if (_writer) { |
807 | 69.7k | Status st = _writer->get_writer_status(); |
808 | 69.7k | if (exec_status.ok()) { |
809 | 69.6k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
810 | 69.6k | : Status::Cancelled("force close")); |
811 | 69.6k | } else { |
812 | 169 | _writer->force_close(exec_status); |
813 | 169 | } |
814 | | // If there is an error in process_block thread, then we should get the writer |
815 | | // status before call force_close. For example, the thread may failed in commit |
816 | | // transaction. |
817 | 69.7k | RETURN_IF_ERROR(st); |
818 | 69.7k | } |
819 | 69.6k | return Base::close(state, exec_status); |
820 | 69.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 499 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 499 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 499 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 499 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 499 | if (_writer) { | 807 | 499 | Status st = _writer->get_writer_status(); | 808 | 499 | if (exec_status.ok()) { | 809 | 499 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 499 | : Status::Cancelled("force close")); | 811 | 499 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 499 | RETURN_IF_ERROR(st); | 818 | 499 | } | 819 | 499 | return Base::close(state, exec_status); | 820 | 499 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 86 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 86 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 86 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 86 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 86 | if (_writer) { | 807 | 86 | Status st = _writer->get_writer_status(); | 808 | 86 | if (exec_status.ok()) { | 809 | 86 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 86 | : Status::Cancelled("force close")); | 811 | 86 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 86 | RETURN_IF_ERROR(st); | 818 | 86 | } | 819 | 78 | return Base::close(state, exec_status); | 820 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 47.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 47.7k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 47.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 47.7k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 47.7k | if (_writer) { | 807 | 47.7k | Status st = _writer->get_writer_status(); | 808 | 47.7k | if (exec_status.ok()) { | 809 | 47.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 47.7k | : Status::Cancelled("force close")); | 811 | 47.7k | } else { | 812 | 47 | _writer->force_close(exec_status); | 813 | 47 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 47.7k | RETURN_IF_ERROR(st); | 818 | 47.7k | } | 819 | 47.6k | return Base::close(state, exec_status); | 820 | 47.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 9.56k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 9.56k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 9.56k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 9.56k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 9.60k | if (_writer) { | 807 | 9.60k | Status st = _writer->get_writer_status(); | 808 | 9.60k | if (exec_status.ok()) { | 809 | 9.48k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 9.48k | : Status::Cancelled("force close")); | 811 | 9.48k | } else { | 812 | 120 | _writer->force_close(exec_status); | 813 | 120 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 9.60k | RETURN_IF_ERROR(st); | 818 | 9.60k | } | 819 | 9.56k | return Base::close(state, exec_status); | 820 | 9.56k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 5.22k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 5.22k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 5.22k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 5.22k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 5.23k | if (_writer) { | 807 | 5.23k | Status st = _writer->get_writer_status(); | 808 | 5.23k | if (exec_status.ok()) { | 809 | 5.23k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 5.23k | : Status::Cancelled("force close")); | 811 | 5.23k | } else { | 812 | 2 | _writer->force_close(exec_status); | 813 | 2 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 5.23k | RETURN_IF_ERROR(st); | 818 | 5.23k | } | 819 | 5.22k | return Base::close(state, exec_status); | 820 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 3.95k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 3.95k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 3.95k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 3.95k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 3.95k | if (_writer) { | 807 | 3.95k | Status st = _writer->get_writer_status(); | 808 | 3.95k | if (exec_status.ok()) { | 809 | 3.95k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 3.95k | : Status::Cancelled("force close")); | 811 | 3.95k | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 3.95k | RETURN_IF_ERROR(st); | 818 | 3.95k | } | 819 | 3.95k | return Base::close(state, exec_status); | 820 | 3.95k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 48 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 48 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 48 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 48 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 48 | if (_writer) { | 807 | 48 | Status st = _writer->get_writer_status(); | 808 | 48 | if (exec_status.ok()) { | 809 | 48 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 48 | : Status::Cancelled("force close")); | 811 | 48 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 48 | RETURN_IF_ERROR(st); | 818 | 48 | } | 819 | 48 | return Base::close(state, exec_status); | 820 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 704 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 704 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 704 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 704 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 704 | if (_writer) { | 807 | 704 | Status st = _writer->get_writer_status(); | 808 | 704 | if (exec_status.ok()) { | 809 | 704 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 704 | : Status::Cancelled("force close")); | 811 | 704 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 704 | RETURN_IF_ERROR(st); | 818 | 704 | } | 819 | 704 | return Base::close(state, exec_status); | 820 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 1.71k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 1.71k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 1.71k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 1.71k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 1.71k | if (_writer) { | 807 | 1.71k | Status st = _writer->get_writer_status(); | 808 | 1.71k | if (exec_status.ok()) { | 809 | 1.71k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 1.71k | : Status::Cancelled("force close")); | 811 | 1.71k | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 1.71k | RETURN_IF_ERROR(st); | 818 | 1.71k | } | 819 | 1.71k | return Base::close(state, exec_status); | 820 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 156 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 156 | if (_writer) { | 807 | 156 | Status st = _writer->get_writer_status(); | 808 | 156 | if (exec_status.ok()) { | 809 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 156 | : Status::Cancelled("force close")); | 811 | 156 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 156 | RETURN_IF_ERROR(st); | 818 | 156 | } | 819 | 156 | return Base::close(state, exec_status); | 820 | 156 | } |
|
821 | | |
822 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
823 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
824 | | DECLARE_OPERATOR(ResultSinkLocalState) |
825 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
826 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
827 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
828 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
829 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
830 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
831 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
832 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
833 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
834 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
835 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
836 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
837 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
838 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
839 | | DECLARE_OPERATOR(SortSinkLocalState) |
840 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
841 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
842 | | DECLARE_OPERATOR(AggSinkLocalState) |
843 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
844 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
845 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
846 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
847 | | DECLARE_OPERATOR(UnionSinkLocalState) |
848 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
849 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
850 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
851 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
852 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
853 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
854 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
855 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
856 | | DECLARE_OPERATOR(CacheSinkLocalState) |
857 | | DECLARE_OPERATOR(DictSinkLocalState) |
858 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
859 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
860 | | |
861 | | #undef DECLARE_OPERATOR |
862 | | |
863 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
864 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
865 | | DECLARE_OPERATOR(OlapScanLocalState) |
866 | | DECLARE_OPERATOR(GroupCommitLocalState) |
867 | | DECLARE_OPERATOR(JDBCScanLocalState) |
868 | | DECLARE_OPERATOR(FileScanLocalState) |
869 | | DECLARE_OPERATOR(AnalyticLocalState) |
870 | | DECLARE_OPERATOR(SortLocalState) |
871 | | DECLARE_OPERATOR(SpillSortLocalState) |
872 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
873 | | DECLARE_OPERATOR(AggLocalState) |
874 | | DECLARE_OPERATOR(BucketedAggLocalState) |
875 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
876 | | DECLARE_OPERATOR(TableFunctionLocalState) |
877 | | DECLARE_OPERATOR(ExchangeLocalState) |
878 | | DECLARE_OPERATOR(RepeatLocalState) |
879 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
880 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
881 | | DECLARE_OPERATOR(EmptySetLocalState) |
882 | | DECLARE_OPERATOR(UnionSourceLocalState) |
883 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
884 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
885 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
886 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
887 | | DECLARE_OPERATOR(DataGenLocalState) |
888 | | DECLARE_OPERATOR(SchemaScanLocalState) |
889 | | DECLARE_OPERATOR(MetaScanLocalState) |
890 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
891 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
892 | | DECLARE_OPERATOR(CacheSourceLocalState) |
893 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
894 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
895 | | |
896 | | #ifdef BE_TEST |
897 | | DECLARE_OPERATOR(MockLocalState) |
898 | | DECLARE_OPERATOR(MockScanLocalState) |
899 | | #endif |
900 | | #undef DECLARE_OPERATOR |
901 | | |
902 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
903 | | template class StreamingOperatorX<SelectLocalState>; |
904 | | |
905 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
906 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
907 | | template class StatefulOperatorX<RepeatLocalState>; |
908 | | template class StatefulOperatorX<MaterializationLocalState>; |
909 | | template class StatefulOperatorX<StreamingAggLocalState>; |
910 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
911 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
912 | | template class StatefulOperatorX<TableFunctionLocalState>; |
913 | | |
914 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
915 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
916 | | template class PipelineXSinkLocalState<SortSharedState>; |
917 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
918 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
919 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
920 | | template class PipelineXSinkLocalState<AggSharedState>; |
921 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
922 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
923 | | template class PipelineXSinkLocalState<FakeSharedState>; |
924 | | template class PipelineXSinkLocalState<UnionSharedState>; |
925 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
926 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
927 | | template class PipelineXSinkLocalState<SetSharedState>; |
928 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
929 | | template class PipelineXSinkLocalState<BasicSharedState>; |
930 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
931 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
932 | | |
933 | | template class PipelineXLocalState<HashJoinSharedState>; |
934 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
935 | | template class PipelineXLocalState<SortSharedState>; |
936 | | template class PipelineXLocalState<SpillSortSharedState>; |
937 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
938 | | template class PipelineXLocalState<AnalyticSharedState>; |
939 | | template class PipelineXLocalState<AggSharedState>; |
940 | | template class PipelineXLocalState<BucketedAggSharedState>; |
941 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
942 | | template class PipelineXLocalState<FakeSharedState>; |
943 | | template class PipelineXLocalState<UnionSharedState>; |
944 | | template class PipelineXLocalState<DataQueueSharedState>; |
945 | | template class PipelineXLocalState<MultiCastSharedState>; |
946 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
947 | | template class PipelineXLocalState<SetSharedState>; |
948 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
949 | | template class PipelineXLocalState<BasicSharedState>; |
950 | | template class PipelineXLocalState<RecCTESharedState>; |
951 | | |
952 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
953 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
954 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
955 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
956 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
957 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
958 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
959 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
960 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
961 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
962 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
963 | | |
964 | | #ifdef BE_TEST |
965 | | template class OperatorX<DummyOperatorLocalState>; |
966 | | template class DataSinkOperatorX<DummySinkLocalState>; |
967 | | #endif |
968 | | |
969 | | } // namespace doris |