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 "common/status.h" |
21 | | #include "exec/common/util.hpp" |
22 | | #include "exec/exchange/local_exchange_sink_operator.h" |
23 | | #include "exec/exchange/local_exchange_source_operator.h" |
24 | | #include "exec/operator/aggregation_sink_operator.h" |
25 | | #include "exec/operator/aggregation_source_operator.h" |
26 | | #include "exec/operator/analytic_sink_operator.h" |
27 | | #include "exec/operator/analytic_source_operator.h" |
28 | | #include "exec/operator/assert_num_rows_operator.h" |
29 | | #include "exec/operator/blackhole_sink_operator.h" |
30 | | #include "exec/operator/cache_sink_operator.h" |
31 | | #include "exec/operator/cache_source_operator.h" |
32 | | #include "exec/operator/datagen_operator.h" |
33 | | #include "exec/operator/dict_sink_operator.h" |
34 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
35 | | #include "exec/operator/empty_set_operator.h" |
36 | | #include "exec/operator/es_scan_operator.h" |
37 | | #include "exec/operator/exchange_sink_operator.h" |
38 | | #include "exec/operator/exchange_source_operator.h" |
39 | | #include "exec/operator/file_scan_operator.h" |
40 | | #include "exec/operator/group_commit_block_sink_operator.h" |
41 | | #include "exec/operator/group_commit_scan_operator.h" |
42 | | #include "exec/operator/hashjoin_build_sink.h" |
43 | | #include "exec/operator/hashjoin_probe_operator.h" |
44 | | #include "exec/operator/hive_table_sink_operator.h" |
45 | | #include "exec/operator/iceberg_table_sink_operator.h" |
46 | | #include "exec/operator/jdbc_scan_operator.h" |
47 | | #include "exec/operator/jdbc_table_sink_operator.h" |
48 | | #include "exec/operator/local_merge_sort_source_operator.h" |
49 | | #include "exec/operator/materialization_opertor.h" |
50 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
51 | | #include "exec/operator/memory_scratch_sink_operator.h" |
52 | | #include "exec/operator/meta_scan_operator.h" |
53 | | #include "exec/operator/mock_operator.h" |
54 | | #include "exec/operator/mock_scan_operator.h" |
55 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
56 | | #include "exec/operator/multi_cast_data_stream_source.h" |
57 | | #include "exec/operator/nested_loop_join_build_operator.h" |
58 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
59 | | #include "exec/operator/olap_scan_operator.h" |
60 | | #include "exec/operator/olap_table_sink_operator.h" |
61 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
62 | | #include "exec/operator/partition_sort_sink_operator.h" |
63 | | #include "exec/operator/partition_sort_source_operator.h" |
64 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
65 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
66 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
67 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
68 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
69 | | #include "exec/operator/rec_cte_scan_operator.h" |
70 | | #include "exec/operator/rec_cte_sink_operator.h" |
71 | | #include "exec/operator/rec_cte_source_operator.h" |
72 | | #include "exec/operator/repeat_operator.h" |
73 | | #include "exec/operator/result_file_sink_operator.h" |
74 | | #include "exec/operator/result_sink_operator.h" |
75 | | #include "exec/operator/schema_scan_operator.h" |
76 | | #include "exec/operator/select_operator.h" |
77 | | #include "exec/operator/set_probe_sink_operator.h" |
78 | | #include "exec/operator/set_sink_operator.h" |
79 | | #include "exec/operator/set_source_operator.h" |
80 | | #include "exec/operator/sort_sink_operator.h" |
81 | | #include "exec/operator/sort_source_operator.h" |
82 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
83 | | #include "exec/operator/spill_sort_sink_operator.h" |
84 | | #include "exec/operator/spill_sort_source_operator.h" |
85 | | #include "exec/operator/streaming_aggregation_operator.h" |
86 | | #include "exec/operator/table_function_operator.h" |
87 | | #include "exec/operator/tvf_table_sink_operator.h" |
88 | | #include "exec/operator/union_sink_operator.h" |
89 | | #include "exec/operator/union_source_operator.h" |
90 | | #include "exec/pipeline/dependency.h" |
91 | | #include "exec/pipeline/pipeline.h" |
92 | | #include "exprs/vexpr.h" |
93 | | #include "exprs/vexpr_context.h" |
94 | | #include "runtime/runtime_profile.h" |
95 | | #include "util/debug_util.h" |
96 | | #include "util/string_util.h" |
97 | | |
98 | | namespace doris { |
99 | | #include "common/compile_check_begin.h" |
100 | | class RowDescriptor; |
101 | | class RuntimeState; |
102 | | } // namespace doris |
103 | | |
104 | | namespace doris { |
105 | | |
106 | 0 | Status OperatorBase::close(RuntimeState* state) { |
107 | 0 | if (_is_closed) { |
108 | 0 | return Status::OK(); |
109 | 0 | } |
110 | 0 | _is_closed = true; |
111 | 0 | return Status::OK(); |
112 | 0 | } |
113 | | |
114 | | template <typename SharedStateArg> |
115 | 24.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
116 | 24.2k | if (_parent->nereids_id() == -1) { |
117 | 202 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
118 | 24.0k | } else { |
119 | 24.0k | return fmt::format("(nereids_id={})" + operator_name_suffix, |
120 | 24.0k | std::to_string(_parent->nereids_id()), |
121 | 24.0k | std::to_string(_parent->node_id())); |
122 | 24.0k | } |
123 | 24.2k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 24.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 24.0k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 24.0k | } else { | 119 | 24.0k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 24.0k | std::to_string(_parent->nereids_id()), | 121 | 24.0k | std::to_string(_parent->node_id())); | 122 | 24.0k | } | 123 | 24.0k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 1 | if (_parent->nereids_id() == -1) { | 117 | 1 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 1 | } else { | 119 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 0 | std::to_string(_parent->nereids_id()), | 121 | 0 | std::to_string(_parent->node_id())); | 122 | 0 | } | 123 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 17 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 17 | if (_parent->nereids_id() == -1) { | 117 | 12 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 12 | } else { | 119 | 5 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 5 | std::to_string(_parent->nereids_id()), | 121 | 5 | std::to_string(_parent->node_id())); | 122 | 5 | } | 123 | 17 | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 5 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 5 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 5 | } else { | 119 | 5 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 5 | std::to_string(_parent->nereids_id()), | 121 | 5 | std::to_string(_parent->node_id())); | 122 | 5 | } | 123 | 5 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 9 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 9 | if (_parent->nereids_id() == -1) { | 117 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 9 | } else { | 119 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 0 | std::to_string(_parent->nereids_id()), | 121 | 0 | std::to_string(_parent->node_id())); | 122 | 0 | } | 123 | 9 | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 32 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 32 | if (_parent->nereids_id() == -1) { | 117 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 27 | } else { | 119 | 5 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 5 | std::to_string(_parent->nereids_id()), | 121 | 5 | std::to_string(_parent->node_id())); | 122 | 5 | } | 123 | 32 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 5 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 5 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 5 | } else { | 119 | 5 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 5 | std::to_string(_parent->nereids_id()), | 121 | 5 | std::to_string(_parent->node_id())); | 122 | 5 | } | 123 | 5 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 44 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 44 | if (_parent->nereids_id() == -1) { | 117 | 36 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 36 | } else { | 119 | 8 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 8 | std::to_string(_parent->nereids_id()), | 121 | 8 | std::to_string(_parent->node_id())); | 122 | 8 | } | 123 | 44 | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 2 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 2 | if (_parent->nereids_id() == -1) { | 117 | 2 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 2 | } else { | 119 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 0 | std::to_string(_parent->nereids_id()), | 121 | 0 | std::to_string(_parent->node_id())); | 122 | 0 | } | 123 | 2 | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 3 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 3 | if (_parent->nereids_id() == -1) { | 117 | 3 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 3 | } else { | 119 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 0 | std::to_string(_parent->nereids_id()), | 121 | 0 | std::to_string(_parent->node_id())); | 122 | 0 | } | 123 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 102 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 102 | if (_parent->nereids_id() == -1) { | 117 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 102 | } else { | 119 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 0 | std::to_string(_parent->nereids_id()), | 121 | 0 | std::to_string(_parent->node_id())); | 122 | 0 | } | 123 | 102 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 10 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 10 | if (_parent->nereids_id() == -1) { | 117 | 10 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 10 | } else { | 119 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 0 | std::to_string(_parent->nereids_id()), | 121 | 0 | std::to_string(_parent->node_id())); | 122 | 0 | } | 123 | 10 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev |
124 | | |
125 | | template <typename SharedStateArg> |
126 | 72.2k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
127 | 72.2k | if (_parent->nereids_id() == -1) { |
128 | 188 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
129 | 72.0k | } else { |
130 | 72.0k | return fmt::format("(nereids_id={})" + operator_name_suffix, |
131 | 72.0k | std::to_string(_parent->nereids_id()), |
132 | 72.0k | std::to_string(_parent->node_id())); |
133 | 72.0k | } |
134 | 72.2k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 72.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 72.0k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 72.0k | } else { | 130 | 72.0k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 72.0k | std::to_string(_parent->nereids_id()), | 132 | 72.0k | std::to_string(_parent->node_id())); | 133 | 72.0k | } | 134 | 72.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 2 | if (_parent->nereids_id() == -1) { | 128 | 1 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 1 | } else { | 130 | 1 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 1 | std::to_string(_parent->nereids_id()), | 132 | 1 | std::to_string(_parent->node_id())); | 133 | 1 | } | 134 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 17 | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 9 | } else { | 130 | 8 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 8 | std::to_string(_parent->nereids_id()), | 132 | 8 | std::to_string(_parent->node_id())); | 133 | 8 | } | 134 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 8 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 8 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 8 | } else { | 130 | 8 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 8 | std::to_string(_parent->nereids_id()), | 132 | 8 | std::to_string(_parent->node_id())); | 133 | 8 | } | 134 | 8 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 9 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 9 | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 9 | } else { | 130 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 0 | std::to_string(_parent->nereids_id()), | 132 | 0 | std::to_string(_parent->node_id())); | 133 | 0 | } | 134 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 38 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 38 | if (_parent->nereids_id() == -1) { | 128 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 27 | } else { | 130 | 11 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 11 | std::to_string(_parent->nereids_id()), | 132 | 11 | std::to_string(_parent->node_id())); | 133 | 11 | } | 134 | 38 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 11 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 11 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 11 | } else { | 130 | 11 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 11 | std::to_string(_parent->nereids_id()), | 132 | 11 | std::to_string(_parent->node_id())); | 133 | 11 | } | 134 | 11 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 3 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 3 | if (_parent->nereids_id() == -1) { | 128 | 3 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 3 | } else { | 130 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 0 | std::to_string(_parent->nereids_id()), | 132 | 0 | std::to_string(_parent->node_id())); | 133 | 0 | } | 134 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 102 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 102 | if (_parent->nereids_id() == -1) { | 128 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 102 | } else { | 130 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 0 | std::to_string(_parent->nereids_id()), | 132 | 0 | std::to_string(_parent->node_id())); | 133 | 0 | } | 134 | 102 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 23 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 23 | if (_parent->nereids_id() == -1) { | 128 | 23 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 23 | } else { | 130 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 0 | std::to_string(_parent->nereids_id()), | 132 | 0 | std::to_string(_parent->node_id())); | 133 | 0 | } | 134 | 23 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 11 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 11 | if (_parent->nereids_id() == -1) { | 128 | 11 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 11 | } else { | 130 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 0 | std::to_string(_parent->nereids_id()), | 132 | 0 | std::to_string(_parent->node_id())); | 133 | 0 | } | 134 | 11 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 3 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 3 | if (_parent->nereids_id() == -1) { | 128 | 3 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 3 | } else { | 130 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 0 | std::to_string(_parent->nereids_id()), | 132 | 0 | std::to_string(_parent->node_id())); | 133 | 0 | } | 134 | 3 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev |
135 | | |
136 | | template <typename SharedStateArg> |
137 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
138 | 24.0k | if (_terminated) { |
139 | 0 | return Status::OK(); |
140 | 0 | } |
141 | 24.0k | _terminated = true; |
142 | 24.0k | return Status::OK(); |
143 | 24.0k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 24.0k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 24.0k | _terminated = true; | 142 | 24.0k | return Status::OK(); | 143 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE |
144 | | |
145 | 5 | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
146 | 5 | return _child && _child->is_serial_operator() && !is_source() |
147 | 5 | ? DataDistribution(ExchangeType::PASSTHROUGH) |
148 | 5 | : DataDistribution(ExchangeType::NOOP); |
149 | 5 | } |
150 | | |
151 | 72.0k | const RowDescriptor& OperatorBase::row_desc() const { |
152 | 72.0k | return _child->row_desc(); |
153 | 72.0k | } |
154 | | |
155 | | template <typename SharedStateArg> |
156 | 54.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
157 | 54.8k | fmt::memory_buffer debug_string_buffer; |
158 | 54.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
159 | 54.8k | return fmt::to_string(debug_string_buffer); |
160 | 54.8k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 3 | fmt::memory_buffer debug_string_buffer; | 158 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 3 | return fmt::to_string(debug_string_buffer); | 160 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 54.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 54.8k | fmt::memory_buffer debug_string_buffer; | 158 | 54.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 54.8k | return fmt::to_string(debug_string_buffer); | 160 | 54.8k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
161 | | |
162 | | template <typename SharedStateArg> |
163 | 54.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
164 | 54.8k | fmt::memory_buffer debug_string_buffer; |
165 | 54.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
166 | 54.8k | return fmt::to_string(debug_string_buffer); |
167 | 54.8k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 54.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 54.8k | fmt::memory_buffer debug_string_buffer; | 165 | 54.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 54.8k | return fmt::to_string(debug_string_buffer); | 167 | 54.8k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
168 | | |
169 | 54.9k | std::string OperatorXBase::debug_string(int indentation_level) const { |
170 | 54.9k | fmt::memory_buffer debug_string_buffer; |
171 | 54.9k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
172 | 54.9k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
173 | 54.9k | _is_serial_operator); |
174 | 54.9k | return fmt::to_string(debug_string_buffer); |
175 | 54.9k | } |
176 | | |
177 | 54.8k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
178 | 54.8k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
179 | 54.8k | } |
180 | | |
181 | 24.0k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
182 | 24.0k | std::string node_name = print_plan_node_type(tnode.node_type); |
183 | 24.0k | _nereids_id = tnode.nereids_id; |
184 | 24.0k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
185 | 0 | if (!tnode.__isset.output_tuple_id) { |
186 | 0 | return Status::InternalError("no final output tuple id"); |
187 | 0 | } |
188 | 0 | if (tnode.intermediate_output_tuple_id_list.size() != |
189 | 0 | tnode.intermediate_projections_list.size()) { |
190 | 0 | return Status::InternalError( |
191 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
192 | 0 | "intermediate_projections_list size:{}", |
193 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
194 | 0 | tnode.intermediate_projections_list.size()); |
195 | 0 | } |
196 | 0 | } |
197 | 24.0k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
198 | 24.0k | _op_name = substr + "_OPERATOR"; |
199 | | |
200 | 24.0k | if (tnode.__isset.vconjunct) { |
201 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
202 | 24.0k | } else if (tnode.__isset.conjuncts) { |
203 | 4 | for (const auto& conjunct : tnode.conjuncts) { |
204 | 1 | VExprContextSPtr context; |
205 | 1 | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
206 | 1 | _conjuncts.emplace_back(context); |
207 | 1 | } |
208 | 4 | } |
209 | | |
210 | | // create the projections expr |
211 | 24.0k | if (tnode.__isset.projections) { |
212 | 24.0k | DCHECK(tnode.__isset.output_tuple_id); |
213 | 24.0k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
214 | 24.0k | } |
215 | 24.0k | if (!tnode.intermediate_projections_list.empty()) { |
216 | 0 | DCHECK(tnode.__isset.projections) << "no final projections"; |
217 | 0 | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
218 | 0 | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
219 | 0 | VExprContextSPtrs projections; |
220 | 0 | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
221 | 0 | _intermediate_projections.push_back(projections); |
222 | 0 | } |
223 | 0 | } |
224 | 24.0k | return Status::OK(); |
225 | 24.0k | } |
226 | | |
227 | 48.1k | Status OperatorXBase::prepare(RuntimeState* state) { |
228 | 48.1k | for (auto& conjunct : _conjuncts) { |
229 | 0 | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
230 | 0 | } |
231 | 48.1k | if (state->enable_adjust_conjunct_order_by_cost()) { |
232 | 0 | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
233 | 0 | return a->execute_cost() < b->execute_cost(); |
234 | 0 | }); |
235 | 0 | }; |
236 | | |
237 | 48.1k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
238 | 0 | RETURN_IF_ERROR( |
239 | 0 | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
240 | 0 | } |
241 | 48.1k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
242 | | |
243 | 48.1k | if (has_output_row_desc()) { |
244 | 24.0k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
245 | 24.0k | } |
246 | | |
247 | 48.1k | for (auto& conjunct : _conjuncts) { |
248 | 0 | RETURN_IF_ERROR(conjunct->open(state)); |
249 | 0 | } |
250 | 48.1k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
251 | 48.1k | for (auto& projections : _intermediate_projections) { |
252 | 0 | RETURN_IF_ERROR(VExpr::open(projections, state)); |
253 | 0 | } |
254 | 48.1k | if (_child && !is_source()) { |
255 | 24.0k | RETURN_IF_ERROR(_child->prepare(state)); |
256 | 24.0k | } |
257 | | |
258 | 48.1k | if (VExpr::contains_blockable_function(_conjuncts) || |
259 | 48.1k | VExpr::contains_blockable_function(_projections)) { |
260 | 0 | _blockable = true; |
261 | 0 | } |
262 | | |
263 | 48.1k | return Status::OK(); |
264 | 48.1k | } |
265 | | |
266 | 0 | Status OperatorXBase::terminate(RuntimeState* state) { |
267 | 0 | if (_child && !is_source()) { |
268 | 0 | RETURN_IF_ERROR(_child->terminate(state)); |
269 | 0 | } |
270 | 0 | auto result = state->get_local_state_result(operator_id()); |
271 | 0 | if (!result) { |
272 | 0 | return result.error(); |
273 | 0 | } |
274 | 0 | return result.value()->terminate(state); |
275 | 0 | } |
276 | | |
277 | 24.0k | Status OperatorXBase::close(RuntimeState* state) { |
278 | 24.0k | if (_child && !is_source()) { |
279 | 24.0k | RETURN_IF_ERROR(_child->close(state)); |
280 | 24.0k | } |
281 | 24.0k | auto result = state->get_local_state_result(operator_id()); |
282 | 24.0k | if (!result) { |
283 | 0 | return result.error(); |
284 | 0 | } |
285 | 24.0k | return result.value()->close(state); |
286 | 24.0k | } |
287 | | |
288 | 35 | void PipelineXLocalStateBase::clear_origin_block() { |
289 | 35 | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
290 | 35 | } |
291 | | |
292 | 111 | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
293 | 111 | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
294 | | |
295 | 111 | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
296 | 111 | return Status::OK(); |
297 | 111 | } |
298 | | |
299 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
300 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
301 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
302 | 0 | } |
303 | | |
304 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
305 | 35 | Block* output_block) const { |
306 | 35 | auto* local_state = state->get_local_state(operator_id()); |
307 | 35 | SCOPED_TIMER(local_state->exec_time_counter()); |
308 | 35 | SCOPED_TIMER(local_state->_projection_timer); |
309 | 35 | const size_t rows = origin_block->rows(); |
310 | 35 | if (rows == 0) { |
311 | 13 | return Status::OK(); |
312 | 13 | } |
313 | 22 | Block input_block = *origin_block; |
314 | | |
315 | 22 | size_t bytes_usage = 0; |
316 | 22 | ColumnsWithTypeAndName new_columns; |
317 | 22 | for (const auto& projections : local_state->_intermediate_projections) { |
318 | 0 | if (projections.empty()) { |
319 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
320 | 0 | node_id()); |
321 | 0 | } |
322 | 0 | new_columns.resize(projections.size()); |
323 | 0 | for (int i = 0; i < projections.size(); i++) { |
324 | 0 | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
325 | 0 | if (new_columns[i].column->size() != rows) { |
326 | 0 | return Status::InternalError( |
327 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
328 | 0 | "expr: {}", |
329 | 0 | new_columns[i].column->size(), rows, |
330 | 0 | projections[i]->root()->debug_string()); |
331 | 0 | } |
332 | 0 | } |
333 | 0 | Block tmp_block {new_columns}; |
334 | 0 | bytes_usage += tmp_block.allocated_bytes(); |
335 | 0 | input_block.swap(tmp_block); |
336 | 0 | } |
337 | | |
338 | 22 | if (input_block.rows() != rows) { |
339 | 0 | return Status::InternalError( |
340 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
341 | 0 | "input_block: {}", |
342 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
343 | 0 | } |
344 | 72 | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
345 | 72 | if (to->is_nullable() && !from->is_nullable()) { |
346 | 0 | if (_keep_origin || !from->is_exclusive()) { |
347 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
348 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
349 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
350 | 0 | bytes_usage += null_column.allocated_bytes(); |
351 | 0 | } else { |
352 | 0 | to = make_nullable(from, false)->assume_mutable(); |
353 | 0 | } |
354 | 72 | } else { |
355 | 72 | if (_keep_origin || !from->is_exclusive()) { |
356 | 72 | to->insert_range_from(*from, 0, rows); |
357 | 72 | bytes_usage += from->allocated_bytes(); |
358 | 72 | } else { |
359 | 0 | to = from->assume_mutable(); |
360 | 0 | } |
361 | 72 | } |
362 | 72 | }; |
363 | | |
364 | 22 | MutableBlock mutable_block = |
365 | 22 | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
366 | 22 | if (rows != 0) { |
367 | 22 | auto& mutable_columns = mutable_block.mutable_columns(); |
368 | 22 | const size_t origin_columns_count = input_block.columns(); |
369 | 22 | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 94 | for (int i = 0; i < mutable_columns.size(); ++i) { |
371 | 72 | auto result_column_id = -1; |
372 | 72 | ColumnPtr column_ptr; |
373 | 72 | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
374 | 72 | if (column_ptr->size() != rows) { |
375 | 0 | return Status::InternalError( |
376 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
377 | 0 | column_ptr->size(), rows, |
378 | 0 | local_state->_projections[i]->root()->debug_string()); |
379 | 0 | } |
380 | 72 | column_ptr = column_ptr->convert_to_full_column_if_const(); |
381 | 72 | if (result_column_id >= origin_columns_count) { |
382 | 72 | bytes_usage += column_ptr->allocated_bytes(); |
383 | 72 | } |
384 | 72 | insert_column_datas(mutable_columns[i], column_ptr, rows); |
385 | 72 | } |
386 | 22 | DCHECK(mutable_block.rows() == rows); |
387 | 22 | output_block->set_columns(std::move(mutable_columns)); |
388 | 22 | } |
389 | | |
390 | 22 | local_state->_estimate_memory_usage += bytes_usage; |
391 | | |
392 | 22 | return Status::OK(); |
393 | 22 | } |
394 | | |
395 | 930k | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
396 | 930k | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
397 | 930k | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
398 | 930k | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
399 | 930k | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
400 | 930k | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
401 | 930k | if (_debug_point_count++ % 2 == 0) { |
402 | 930k | return Status::OK(); |
403 | 930k | } |
404 | 930k | } |
405 | 930k | }); |
406 | | |
407 | 930k | Status status; |
408 | 930k | auto* local_state = state->get_local_state(operator_id()); |
409 | 930k | Defer defer([&]() { |
410 | 930k | if (status.ok()) { |
411 | 930k | if (auto rows = block->rows()) { |
412 | 34 | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
413 | 34 | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
414 | 34 | } |
415 | 930k | } |
416 | 930k | }); |
417 | 930k | if (_output_row_descriptor) { |
418 | 35 | local_state->clear_origin_block(); |
419 | 35 | status = get_block(state, &local_state->_origin_block, eos); |
420 | 35 | if (UNLIKELY(!status.ok())) { |
421 | 0 | return status; |
422 | 0 | } |
423 | 35 | status = do_projections(state, &local_state->_origin_block, block); |
424 | 35 | return status; |
425 | 35 | } |
426 | 930k | status = get_block(state, block, eos); |
427 | 930k | RETURN_IF_ERROR(block->check_type_and_column()); |
428 | 930k | return status; |
429 | 930k | } |
430 | | |
431 | 194 | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
432 | 194 | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
433 | 0 | block->set_num_rows(_parent->_limit - _num_rows_returned); |
434 | 0 | *eos = true; |
435 | 0 | } |
436 | | |
437 | 194 | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
438 | 194 | auto op_name = to_lower(_parent->_op_name); |
439 | 194 | auto arg_op_name = dp->param<std::string>("op_name"); |
440 | 194 | arg_op_name = to_lower(arg_op_name); |
441 | | |
442 | 194 | if (op_name == arg_op_name) { |
443 | 194 | *eos = true; |
444 | 194 | } |
445 | 194 | }); |
446 | | |
447 | 194 | if (auto rows = block->rows()) { |
448 | 160 | _num_rows_returned += rows; |
449 | 160 | } |
450 | 194 | } |
451 | | |
452 | 24.0k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
453 | 24.0k | auto result = state->get_sink_local_state_result(); |
454 | 24.0k | if (!result) { |
455 | 0 | return result.error(); |
456 | 0 | } |
457 | 24.0k | return result.value()->terminate(state); |
458 | 24.0k | } |
459 | | |
460 | 54.8k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
461 | 54.8k | fmt::memory_buffer debug_string_buffer; |
462 | | |
463 | 54.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
464 | 54.8k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
465 | 54.8k | return fmt::to_string(debug_string_buffer); |
466 | 54.8k | } |
467 | | |
468 | 54.8k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
469 | 54.8k | return state->get_sink_local_state()->debug_string(indentation_level); |
470 | 54.8k | } |
471 | | |
472 | 3 | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
473 | 3 | std::string op_name = "UNKNOWN_SINK"; |
474 | 3 | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
475 | | |
476 | 3 | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
477 | 3 | op_name = it->second; |
478 | 3 | } |
479 | 3 | _name = op_name + "_OPERATOR"; |
480 | 3 | return Status::OK(); |
481 | 3 | } |
482 | | |
483 | 72.1k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
484 | 72.1k | std::string op_name = print_plan_node_type(tnode.node_type); |
485 | 72.1k | _nereids_id = tnode.nereids_id; |
486 | 72.1k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
487 | 72.1k | _name = substr + "_SINK_OPERATOR"; |
488 | 72.1k | return Status::OK(); |
489 | 72.1k | } |
490 | | |
491 | | template <typename LocalStateType> |
492 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
493 | 72.0k | LocalSinkStateInfo& info) { |
494 | 72.0k | auto local_state = LocalStateType::create_unique(this, state); |
495 | 72.0k | RETURN_IF_ERROR(local_state->init(state, info)); |
496 | 72.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
497 | 72.0k | return Status::OK(); |
498 | 72.0k | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 72.0k | LocalSinkStateInfo& info) { | 494 | 72.0k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 72.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 72.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 72.0k | return Status::OK(); | 498 | 72.0k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 8 | LocalSinkStateInfo& info) { | 494 | 8 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 8 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 8 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 8 | return Status::OK(); | 498 | 8 | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 8 | LocalSinkStateInfo& info) { | 494 | 8 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 8 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 8 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 8 | return Status::OK(); | 498 | 8 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 11 | LocalSinkStateInfo& info) { | 494 | 11 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 11 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 11 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 11 | return Status::OK(); | 498 | 11 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 11 | LocalSinkStateInfo& info) { | 494 | 11 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 11 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 11 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 11 | return Status::OK(); | 498 | 11 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 3 | LocalSinkStateInfo& info) { | 494 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 3 | return Status::OK(); | 498 | 3 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 1 | LocalSinkStateInfo& info) { | 494 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 1 | return Status::OK(); | 498 | 1 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_19DummySinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 11 | LocalSinkStateInfo& info) { | 494 | 11 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 11 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 11 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 11 | return Status::OK(); | 498 | 11 | } |
|
499 | | |
500 | | template <typename LocalStateType> |
501 | 72.2k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
503 | 0 | LocalExchangeSharedState>) { |
504 | 0 | return nullptr; |
505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
506 | 0 | MultiCastSharedState>) { |
507 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
508 | 72.2k | } else { |
509 | 72.2k | auto ss = LocalStateType::SharedStateType::create_shared(); |
510 | 72.2k | ss->id = operator_id(); |
511 | 72.2k | for (auto& dest : dests_id()) { |
512 | 72.2k | ss->related_op_ids.insert(dest); |
513 | 72.2k | } |
514 | 72.2k | return ss; |
515 | 72.2k | } |
516 | 72.2k | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 72.0k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 72.0k | } else { | 509 | 72.0k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 72.0k | ss->id = operator_id(); | 511 | 72.0k | for (auto& dest : dests_id()) { | 512 | 72.0k | ss->related_op_ids.insert(dest); | 513 | 72.0k | } | 514 | 72.0k | return ss; | 515 | 72.0k | } | 516 | 72.0k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 9 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 9 | } else { | 509 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 9 | ss->id = operator_id(); | 511 | 9 | for (auto& dest : dests_id()) { | 512 | 9 | ss->related_op_ids.insert(dest); | 513 | 9 | } | 514 | 9 | return ss; | 515 | 9 | } | 516 | 9 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 17 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 17 | } else { | 509 | 17 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 17 | ss->id = operator_id(); | 511 | 17 | for (auto& dest : dests_id()) { | 512 | 17 | ss->related_op_ids.insert(dest); | 513 | 17 | } | 514 | 17 | return ss; | 515 | 17 | } | 516 | 17 | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 10 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 10 | } else { | 509 | 10 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 10 | ss->id = operator_id(); | 511 | 10 | for (auto& dest : dests_id()) { | 512 | 10 | ss->related_op_ids.insert(dest); | 513 | 10 | } | 514 | 10 | return ss; | 515 | 10 | } | 516 | 10 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 38 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 38 | } else { | 509 | 38 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 38 | ss->id = operator_id(); | 511 | 38 | for (auto& dest : dests_id()) { | 512 | 38 | ss->related_op_ids.insert(dest); | 513 | 38 | } | 514 | 38 | return ss; | 515 | 38 | } | 516 | 38 | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 10 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 10 | } else { | 509 | 10 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 10 | ss->id = operator_id(); | 511 | 10 | for (auto& dest : dests_id()) { | 512 | 10 | ss->related_op_ids.insert(dest); | 513 | 10 | } | 514 | 10 | return ss; | 515 | 10 | } | 516 | 10 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 3 | } else { | 509 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 3 | ss->id = operator_id(); | 511 | 3 | for (auto& dest : dests_id()) { | 512 | 3 | ss->related_op_ids.insert(dest); | 513 | 3 | } | 514 | 3 | return ss; | 515 | 3 | } | 516 | 3 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 102 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 102 | } else { | 509 | 102 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 102 | ss->id = operator_id(); | 511 | 102 | for (auto& dest : dests_id()) { | 512 | 102 | ss->related_op_ids.insert(dest); | 513 | 102 | } | 514 | 102 | return ss; | 515 | 102 | } | 516 | 102 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 501 | 6 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 6 | } else { | 509 | 6 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 6 | ss->id = operator_id(); | 511 | 6 | for (auto& dest : dests_id()) { | 512 | 6 | ss->related_op_ids.insert(dest); | 513 | 6 | } | 514 | 6 | return ss; | 515 | 6 | } | 516 | 6 | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 501 | 4 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 4 | } else { | 509 | 4 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 4 | ss->id = operator_id(); | 511 | 4 | for (auto& dest : dests_id()) { | 512 | 4 | ss->related_op_ids.insert(dest); | 513 | 4 | } | 514 | 4 | return ss; | 515 | 4 | } | 516 | 4 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_19DummySinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 13 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 13 | } else { | 509 | 13 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 13 | ss->id = operator_id(); | 511 | 13 | for (auto& dest : dests_id()) { | 512 | 13 | ss->related_op_ids.insert(dest); | 513 | 13 | } | 514 | 13 | return ss; | 515 | 13 | } | 516 | 13 | } |
|
517 | | |
518 | | template <typename LocalStateType> |
519 | 24.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
520 | 24.0k | auto local_state = LocalStateType::create_unique(state, this); |
521 | 24.0k | RETURN_IF_ERROR(local_state->init(state, info)); |
522 | 24.0k | state->emplace_local_state(operator_id(), std::move(local_state)); |
523 | 24.0k | return Status::OK(); |
524 | 24.0k | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 24.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 24.0k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 24.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 24.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 24.0k | return Status::OK(); | 524 | 24.0k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 5 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 5 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 5 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 5 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 5 | return Status::OK(); | 524 | 5 | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 5 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 5 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 5 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 5 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 5 | return Status::OK(); | 524 | 5 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 5 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 5 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 5 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 5 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 5 | return Status::OK(); | 524 | 5 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 5 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 5 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 5 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 5 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 5 | return Status::OK(); | 524 | 5 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2 | return Status::OK(); | 524 | 2 | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 5 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 5 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 5 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 5 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 5 | return Status::OK(); | 524 | 5 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 3 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 3 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 3 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 3 | return Status::OK(); | 524 | 3 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1 | return Status::OK(); | 524 | 1 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 3 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 3 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 3 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 3 | return Status::OK(); | 524 | 3 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_14MockLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_18MockScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_23DummyOperatorLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 11 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 11 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 11 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 11 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 11 | return Status::OK(); | 524 | 11 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE |
525 | | |
526 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
527 | | RuntimeState* state) |
528 | 72.3k | : _parent(parent), _state(state) {} |
529 | | |
530 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
531 | 24.4k | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
532 | | |
533 | | template <typename SharedStateArg> |
534 | 24.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
535 | 24.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
536 | 24.2k | _common_profile.reset(new RuntimeProfile("CommonCounters")); |
537 | 24.2k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); |
538 | 24.2k | _operator_profile->set_metadata(_parent->node_id()); |
539 | | // indent is false so that source operator will have same |
540 | | // indentation_level with its parent operator. |
541 | 24.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
542 | 24.2k | _operator_profile->add_child(_common_profile.get(), true); |
543 | 24.2k | _operator_profile->add_child(_custom_profile.get(), true); |
544 | 24.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
545 | 24.2k | if constexpr (!is_fake_shared) { |
546 | 24.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
548 | 0 | .first.get() |
549 | 0 | ->template cast<SharedStateArg>(); |
550 | |
|
551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
554 | 24.2k | } else if (info.shared_state) { |
555 | 24.2k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
556 | 0 | DCHECK(false); |
557 | 0 | } |
558 | | // For UnionSourceOperator without children, there is no shared state. |
559 | 24.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
560 | | |
561 | 24.2k | _dependency = _shared_state->create_source_dependency( |
562 | 24.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
563 | 24.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
564 | 24.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
565 | 24.2k | } else { |
566 | 1 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
567 | 0 | DCHECK(false); |
568 | 0 | } |
569 | 1 | } |
570 | 24.2k | } |
571 | | |
572 | 24.2k | if (must_set_shared_state() && _shared_state == nullptr) { |
573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
574 | 0 | } |
575 | | |
576 | 24.2k | _rows_returned_counter = |
577 | 24.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); |
578 | 24.2k | _blocks_returned_counter = |
579 | 24.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); |
580 | 24.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); |
581 | 24.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
582 | 24.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
583 | 24.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
584 | 24.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
585 | 24.2k | _memory_used_counter = |
586 | 24.2k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
587 | 24.2k | _common_profile->add_info_string("IsColocate", |
588 | 24.2k | std::to_string(_parent->is_colocated_operator())); |
589 | 24.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
590 | 24.2k | _common_profile->add_info_string("FollowedByShuffledOperator", |
591 | 24.2k | std::to_string(_parent->followed_by_shuffled_operator())); |
592 | 24.2k | return Status::OK(); |
593 | 24.2k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 24.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 24.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 24.0k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 24.0k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 24.0k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 24.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 24.0k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 24.0k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 24.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 24.0k | if constexpr (!is_fake_shared) { | 546 | 24.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 24.0k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 24.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 24.0k | _dependency = _shared_state->create_source_dependency( | 562 | 24.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 24.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 24.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 24.0k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 24.0k | } | 571 | | | 572 | 24.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 24.0k | _rows_returned_counter = | 577 | 24.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 24.0k | _blocks_returned_counter = | 579 | 24.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 24.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 24.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 24.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 24.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 24.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 24.0k | _memory_used_counter = | 586 | 24.0k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 24.0k | _common_profile->add_info_string("IsColocate", | 588 | 24.0k | std::to_string(_parent->is_colocated_operator())); | 589 | 24.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 24.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 24.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 24.0k | return Status::OK(); | 593 | 24.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 1 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 1 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 1 | if constexpr (!is_fake_shared) { | 546 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 1 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 1 | _dependency = _shared_state->create_source_dependency( | 562 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 1 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 1 | } | 571 | | | 572 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 1 | _rows_returned_counter = | 577 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 1 | _blocks_returned_counter = | 579 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 1 | _memory_used_counter = | 586 | 1 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 1 | _common_profile->add_info_string("IsColocate", | 588 | 1 | std::to_string(_parent->is_colocated_operator())); | 589 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 1 | return Status::OK(); | 593 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 17 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 17 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 17 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 17 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 17 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 17 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 17 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 17 | if constexpr (!is_fake_shared) { | 546 | 17 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 17 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 17 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 17 | _dependency = _shared_state->create_source_dependency( | 562 | 17 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 17 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 17 | } | 571 | | | 572 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 17 | _rows_returned_counter = | 577 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 17 | _blocks_returned_counter = | 579 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 17 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 17 | _memory_used_counter = | 586 | 17 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 17 | _common_profile->add_info_string("IsColocate", | 588 | 17 | std::to_string(_parent->is_colocated_operator())); | 589 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 17 | return Status::OK(); | 593 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 5 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 5 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 5 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 5 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 5 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 5 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 5 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 5 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 5 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 5 | if constexpr (!is_fake_shared) { | 546 | 5 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 5 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 5 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 5 | _dependency = _shared_state->create_source_dependency( | 562 | 5 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 5 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 5 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 5 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 5 | } | 571 | | | 572 | 5 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 5 | _rows_returned_counter = | 577 | 5 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 5 | _blocks_returned_counter = | 579 | 5 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 5 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 5 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 5 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 5 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 5 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 5 | _memory_used_counter = | 586 | 5 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 5 | _common_profile->add_info_string("IsColocate", | 588 | 5 | std::to_string(_parent->is_colocated_operator())); | 589 | 5 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 5 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 5 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 5 | return Status::OK(); | 593 | 5 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 9 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 9 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 9 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 9 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 9 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 9 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 9 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 9 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 9 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 9 | if constexpr (!is_fake_shared) { | 546 | 9 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 9 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 9 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 9 | _dependency = _shared_state->create_source_dependency( | 562 | 9 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 9 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 9 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 9 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 9 | } | 571 | | | 572 | 9 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 9 | _rows_returned_counter = | 577 | 9 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 9 | _blocks_returned_counter = | 579 | 9 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 9 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 9 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 9 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 9 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 9 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 9 | _memory_used_counter = | 586 | 9 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 9 | _common_profile->add_info_string("IsColocate", | 588 | 9 | std::to_string(_parent->is_colocated_operator())); | 589 | 9 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 9 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 9 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 9 | return Status::OK(); | 593 | 9 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 32 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 32 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 32 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 32 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 32 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 32 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 32 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 32 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 32 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 32 | if constexpr (!is_fake_shared) { | 546 | 32 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 32 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 32 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 32 | _dependency = _shared_state->create_source_dependency( | 562 | 32 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 32 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 32 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 32 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 32 | } | 571 | | | 572 | 32 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 32 | _rows_returned_counter = | 577 | 32 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 32 | _blocks_returned_counter = | 579 | 32 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 32 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 32 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 32 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 32 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 32 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 32 | _memory_used_counter = | 586 | 32 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 32 | _common_profile->add_info_string("IsColocate", | 588 | 32 | std::to_string(_parent->is_colocated_operator())); | 589 | 32 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 32 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 32 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 32 | return Status::OK(); | 593 | 32 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 5 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 5 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 5 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 5 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 5 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 5 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 5 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 5 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 5 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 5 | if constexpr (!is_fake_shared) { | 546 | 5 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 5 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 5 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 5 | _dependency = _shared_state->create_source_dependency( | 562 | 5 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 5 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 5 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 5 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 5 | } | 571 | | | 572 | 5 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 5 | _rows_returned_counter = | 577 | 5 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 5 | _blocks_returned_counter = | 579 | 5 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 5 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 5 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 5 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 5 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 5 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 5 | _memory_used_counter = | 586 | 5 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 5 | _common_profile->add_info_string("IsColocate", | 588 | 5 | std::to_string(_parent->is_colocated_operator())); | 589 | 5 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 5 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 5 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 5 | return Status::OK(); | 593 | 5 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 44 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 44 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 44 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 44 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 44 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 44 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 44 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 44 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 44 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | | if constexpr (!is_fake_shared) { | 546 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | | .first.get() | 549 | | ->template cast<SharedStateArg>(); | 550 | | | 551 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | | _dependency = _shared_state->create_source_dependency( | 562 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | | } | 570 | | } | 571 | | | 572 | 44 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 44 | _rows_returned_counter = | 577 | 44 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 44 | _blocks_returned_counter = | 579 | 44 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 44 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 44 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 44 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 44 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 44 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 44 | _memory_used_counter = | 586 | 44 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 44 | _common_profile->add_info_string("IsColocate", | 588 | 44 | std::to_string(_parent->is_colocated_operator())); | 589 | 44 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 44 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 44 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 44 | return Status::OK(); | 593 | 44 | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 2 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 2 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 2 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 2 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 2 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 2 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 2 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 2 | if constexpr (!is_fake_shared) { | 546 | 2 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 2 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 1 | _dependency = _shared_state->create_source_dependency( | 562 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 1 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1 | } | 570 | 2 | } | 571 | | | 572 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 2 | _rows_returned_counter = | 577 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 2 | _blocks_returned_counter = | 579 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 2 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 2 | _memory_used_counter = | 586 | 2 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 2 | _common_profile->add_info_string("IsColocate", | 588 | 2 | std::to_string(_parent->is_colocated_operator())); | 589 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 2 | return Status::OK(); | 593 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 3 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 3 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 3 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 3 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 3 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 3 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 3 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 3 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 3 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 3 | if constexpr (!is_fake_shared) { | 546 | 3 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 3 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 3 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 3 | _dependency = _shared_state->create_source_dependency( | 562 | 3 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 3 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 3 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 3 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 3 | } | 571 | | | 572 | 3 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 3 | _rows_returned_counter = | 577 | 3 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 3 | _blocks_returned_counter = | 579 | 3 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 3 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 3 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 3 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 3 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 3 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 3 | _memory_used_counter = | 586 | 3 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 3 | _common_profile->add_info_string("IsColocate", | 588 | 3 | std::to_string(_parent->is_colocated_operator())); | 589 | 3 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 3 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 3 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 3 | return Status::OK(); | 593 | 3 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 102 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 102 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 102 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 102 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 102 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 102 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 102 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 102 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 102 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 102 | if constexpr (!is_fake_shared) { | 546 | 102 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 102 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 102 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 102 | _dependency = _shared_state->create_source_dependency( | 562 | 102 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 102 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 102 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 102 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 102 | } | 571 | | | 572 | 102 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 102 | _rows_returned_counter = | 577 | 102 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 102 | _blocks_returned_counter = | 579 | 102 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 102 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 102 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 102 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 102 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 102 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 102 | _memory_used_counter = | 586 | 102 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 102 | _common_profile->add_info_string("IsColocate", | 588 | 102 | std::to_string(_parent->is_colocated_operator())); | 589 | 102 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 102 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 102 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 102 | return Status::OK(); | 593 | 102 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 10 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 10 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 10 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 10 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 10 | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 10 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 10 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 10 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 10 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 10 | if constexpr (!is_fake_shared) { | 546 | 10 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 10 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 10 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 10 | _dependency = _shared_state->create_source_dependency( | 562 | 10 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 10 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 10 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 10 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 10 | } | 571 | | | 572 | 10 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 10 | _rows_returned_counter = | 577 | 10 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 10 | _blocks_returned_counter = | 579 | 10 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 10 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 10 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 10 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 10 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 10 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 10 | _memory_used_counter = | 586 | 10 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 10 | _common_profile->add_info_string("IsColocate", | 588 | 10 | std::to_string(_parent->is_colocated_operator())); | 589 | 10 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 10 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 10 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 10 | return Status::OK(); | 593 | 10 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE |
594 | | |
595 | | template <typename SharedStateArg> |
596 | 24.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
597 | 24.2k | _conjuncts.resize(_parent->_conjuncts.size()); |
598 | 24.2k | _projections.resize(_parent->_projections.size()); |
599 | 24.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { |
600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
601 | 0 | } |
602 | 90.2k | for (size_t i = 0; i < _projections.size(); i++) { |
603 | 65.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
604 | 65.9k | } |
605 | 24.2k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
606 | 24.2k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
610 | 0 | state, _intermediate_projections[i][j])); |
611 | 0 | } |
612 | 0 | } |
613 | 24.2k | return Status::OK(); |
614 | 24.2k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 24.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 24.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 24.0k | _projections.resize(_parent->_projections.size()); | 599 | 24.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 89.9k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 65.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 65.9k | } | 605 | 24.0k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 24.0k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 24.0k | return Status::OK(); | 614 | 24.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 1 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 1 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 1 | _projections.resize(_parent->_projections.size()); | 599 | 1 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 1 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 1 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 1 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 1 | return Status::OK(); | 614 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 14 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 14 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 14 | _projections.resize(_parent->_projections.size()); | 599 | 14 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 14 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 14 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 14 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 14 | return Status::OK(); | 614 | 14 | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 5 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 5 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 5 | _projections.resize(_parent->_projections.size()); | 599 | 5 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 5 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 5 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 5 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 5 | return Status::OK(); | 614 | 5 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 9 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 9 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 9 | _projections.resize(_parent->_projections.size()); | 599 | 9 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 9 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 9 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 9 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 9 | return Status::OK(); | 614 | 9 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 32 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 32 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 32 | _projections.resize(_parent->_projections.size()); | 599 | 32 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 32 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 32 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 32 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 32 | return Status::OK(); | 614 | 32 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 9 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 9 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 9 | _projections.resize(_parent->_projections.size()); | 599 | 9 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 9 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 9 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 9 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 9 | return Status::OK(); | 614 | 9 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 31 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 31 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 31 | _projections.resize(_parent->_projections.size()); | 599 | 31 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 31 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 31 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 31 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 31 | return Status::OK(); | 614 | 31 | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 2 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 2 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 2 | _projections.resize(_parent->_projections.size()); | 599 | 2 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 2 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 2 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 2 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 2 | return Status::OK(); | 614 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 3 | _projections.resize(_parent->_projections.size()); | 599 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 3 | return Status::OK(); | 614 | 3 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 102 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 102 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 102 | _projections.resize(_parent->_projections.size()); | 599 | 102 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 102 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 102 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 102 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 102 | return Status::OK(); | 614 | 102 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 10 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 10 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 10 | _projections.resize(_parent->_projections.size()); | 599 | 10 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 10 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 10 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 10 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 10 | return Status::OK(); | 614 | 10 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE |
615 | | |
616 | | template <typename SharedStateArg> |
617 | 0 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
618 | 0 | if (_terminated) { |
619 | 0 | return Status::OK(); |
620 | 0 | } |
621 | 0 | _terminated = true; |
622 | 0 | return Status::OK(); |
623 | 0 | } Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE |
624 | | |
625 | | template <typename SharedStateArg> |
626 | 24.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
627 | 24.0k | if (_closed) { |
628 | 1 | return Status::OK(); |
629 | 1 | } |
630 | 24.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
631 | 24.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
632 | 24.0k | } |
633 | 24.0k | _closed = true; |
634 | 24.0k | return Status::OK(); |
635 | 24.0k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 24.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 24.0k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 24.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 24.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 24.0k | } | 633 | 24.0k | _closed = true; | 634 | 24.0k | return Status::OK(); | 635 | 24.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 1 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 1 | } | 633 | 1 | _closed = true; | 634 | 1 | return Status::OK(); | 635 | 1 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 5 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 5 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 5 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 5 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 5 | } | 633 | 5 | _closed = true; | 634 | 5 | return Status::OK(); | 635 | 5 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 1 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 1 | } | 633 | 1 | _closed = true; | 634 | 1 | return Status::OK(); | 635 | 1 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 4 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 4 | } | 633 | 4 | _closed = true; | 634 | 4 | return Status::OK(); | 635 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 20 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 20 | if (_closed) { | 628 | 1 | return Status::OK(); | 629 | 1 | } | 630 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | | } | 633 | 19 | _closed = true; | 634 | 19 | return Status::OK(); | 635 | 20 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE |
636 | | |
637 | | template <typename SharedState> |
638 | 72.2k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
639 | | // create profile |
640 | 72.2k | _operator_profile = |
641 | 72.2k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
642 | 72.2k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); |
643 | 72.2k | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); |
644 | | |
645 | | // indentation is true |
646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
647 | | // So we should set the indentation to true. |
648 | 72.2k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
649 | 72.2k | _operator_profile->add_child(_common_profile, true); |
650 | 72.2k | _operator_profile->add_child(_custom_profile, true); |
651 | | |
652 | 72.2k | _operator_profile->set_metadata(_parent->node_id()); |
653 | 72.2k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); |
654 | 72.2k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
655 | 72.2k | if constexpr (!is_fake_shared) { |
656 | 72.2k | if (info.shared_state_map.find(_parent->dests_id().front()) != |
657 | 72.2k | info.shared_state_map.end()) { |
658 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
659 | 0 | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
660 | 0 | } |
661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
663 | 0 | ? 0 |
664 | 0 | : info.task_idx] |
665 | 0 | .get(); |
666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
667 | 72.2k | } else { |
668 | 72.2k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
669 | 0 | DCHECK(false); |
670 | 0 | } |
671 | 72.2k | _shared_state = info.shared_state->template cast<SharedState>(); |
672 | 72.2k | _dependency = _shared_state->create_sink_dependency( |
673 | 72.2k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
674 | 72.2k | } |
675 | 72.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
676 | 72.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
677 | 72.2k | } |
678 | | |
679 | 72.2k | if (must_set_shared_state() && _shared_state == nullptr) { |
680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
681 | 0 | } |
682 | | |
683 | 72.2k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); |
684 | 72.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
685 | 72.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
686 | 72.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
687 | 72.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
688 | 72.2k | _memory_used_counter = |
689 | 72.2k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
690 | 72.2k | _common_profile->add_info_string("IsColocate", |
691 | 72.2k | std::to_string(_parent->is_colocated_operator())); |
692 | 72.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
693 | 72.2k | _common_profile->add_info_string("FollowedByShuffledOperator", |
694 | 72.2k | std::to_string(_parent->followed_by_shuffled_operator())); |
695 | 72.2k | return Status::OK(); |
696 | 72.2k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 72.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 72.0k | _operator_profile = | 641 | 72.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 72.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 72.0k | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 72.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 72.0k | _operator_profile->add_child(_common_profile, true); | 650 | 72.0k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 72.0k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 72.0k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 72.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 72.0k | if constexpr (!is_fake_shared) { | 656 | 72.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 72.0k | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 72.0k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 72.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 72.0k | _dependency = _shared_state->create_sink_dependency( | 673 | 72.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 72.0k | } | 675 | 72.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 72.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 72.0k | } | 678 | | | 679 | 72.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 72.0k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 72.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 72.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 72.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 72.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 72.0k | _memory_used_counter = | 689 | 72.0k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 72.0k | _common_profile->add_info_string("IsColocate", | 691 | 72.0k | std::to_string(_parent->is_colocated_operator())); | 692 | 72.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 72.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 72.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 72.0k | return Status::OK(); | 696 | 72.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 2 | _operator_profile = | 641 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 2 | _operator_profile->add_child(_common_profile, true); | 650 | 2 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 2 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 2 | if constexpr (!is_fake_shared) { | 656 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 2 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 2 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 2 | _dependency = _shared_state->create_sink_dependency( | 673 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 2 | } | 675 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 2 | } | 678 | | | 679 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 2 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 2 | _memory_used_counter = | 689 | 2 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 2 | _common_profile->add_info_string("IsColocate", | 691 | 2 | std::to_string(_parent->is_colocated_operator())); | 692 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 2 | return Status::OK(); | 696 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 17 | _operator_profile = | 641 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 17 | _operator_profile->add_child(_common_profile, true); | 650 | 17 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 17 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 17 | if constexpr (!is_fake_shared) { | 656 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 17 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 17 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 17 | _dependency = _shared_state->create_sink_dependency( | 673 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 17 | } | 675 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 17 | } | 678 | | | 679 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 17 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 17 | _memory_used_counter = | 689 | 17 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 17 | _common_profile->add_info_string("IsColocate", | 691 | 17 | std::to_string(_parent->is_colocated_operator())); | 692 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 17 | return Status::OK(); | 696 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 8 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 8 | _operator_profile = | 641 | 8 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 8 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 8 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 8 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 8 | _operator_profile->add_child(_common_profile, true); | 650 | 8 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 8 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 8 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 8 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 8 | if constexpr (!is_fake_shared) { | 656 | 8 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 8 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 8 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 8 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 8 | _dependency = _shared_state->create_sink_dependency( | 673 | 8 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 8 | } | 675 | 8 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 8 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 8 | } | 678 | | | 679 | 8 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 8 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 8 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 8 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 8 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 8 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 8 | _memory_used_counter = | 689 | 8 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 8 | _common_profile->add_info_string("IsColocate", | 691 | 8 | std::to_string(_parent->is_colocated_operator())); | 692 | 8 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 8 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 8 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 8 | return Status::OK(); | 696 | 8 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 9 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 9 | _operator_profile = | 641 | 9 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 9 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 9 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 9 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 9 | _operator_profile->add_child(_common_profile, true); | 650 | 9 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 9 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 9 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 9 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 9 | if constexpr (!is_fake_shared) { | 656 | 9 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 9 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 9 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 9 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 9 | _dependency = _shared_state->create_sink_dependency( | 673 | 9 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 9 | } | 675 | 9 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 9 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 9 | } | 678 | | | 679 | 9 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 9 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 9 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 9 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 9 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 9 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 9 | _memory_used_counter = | 689 | 9 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 9 | _common_profile->add_info_string("IsColocate", | 691 | 9 | std::to_string(_parent->is_colocated_operator())); | 692 | 9 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 9 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 9 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 9 | return Status::OK(); | 696 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 38 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 38 | _operator_profile = | 641 | 38 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 38 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 38 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 38 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 38 | _operator_profile->add_child(_common_profile, true); | 650 | 38 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 38 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 38 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 38 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 38 | if constexpr (!is_fake_shared) { | 656 | 38 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 38 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 38 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 38 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 38 | _dependency = _shared_state->create_sink_dependency( | 673 | 38 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 38 | } | 675 | 38 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 38 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 38 | } | 678 | | | 679 | 38 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 38 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 38 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 38 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 38 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 38 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 38 | _memory_used_counter = | 689 | 38 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 38 | _common_profile->add_info_string("IsColocate", | 691 | 38 | std::to_string(_parent->is_colocated_operator())); | 692 | 38 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 38 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 38 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 38 | return Status::OK(); | 696 | 38 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 11 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 11 | _operator_profile = | 641 | 11 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 11 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 11 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 11 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 11 | _operator_profile->add_child(_common_profile, true); | 650 | 11 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 11 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 11 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 11 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 11 | if constexpr (!is_fake_shared) { | 656 | 11 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 11 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 11 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 11 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 11 | _dependency = _shared_state->create_sink_dependency( | 673 | 11 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 11 | } | 675 | 11 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 11 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 11 | } | 678 | | | 679 | 11 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 11 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 11 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 11 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 11 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 11 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 11 | _memory_used_counter = | 689 | 11 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 11 | _common_profile->add_info_string("IsColocate", | 691 | 11 | std::to_string(_parent->is_colocated_operator())); | 692 | 11 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 11 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 11 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 11 | return Status::OK(); | 696 | 11 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 7 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 7 | _operator_profile = | 641 | 7 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 7 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 7 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 7 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 7 | _operator_profile->add_child(_common_profile, true); | 650 | 7 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 7 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 7 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 7 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | | if constexpr (!is_fake_shared) { | 656 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | | ? 0 | 664 | | : info.task_idx] | 665 | | .get(); | 666 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | | _dependency = _shared_state->create_sink_dependency( | 673 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | | } | 675 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | | } | 678 | | | 679 | 7 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 7 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 7 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 7 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 7 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 7 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 7 | _memory_used_counter = | 689 | 7 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 7 | _common_profile->add_info_string("IsColocate", | 691 | 7 | std::to_string(_parent->is_colocated_operator())); | 692 | 7 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 7 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 7 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 7 | return Status::OK(); | 696 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 3 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 3 | _operator_profile = | 641 | 3 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 3 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 3 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 3 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 3 | _operator_profile->add_child(_common_profile, true); | 650 | 3 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 3 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 3 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 3 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 3 | if constexpr (!is_fake_shared) { | 656 | 3 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 3 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 3 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 3 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 3 | _dependency = _shared_state->create_sink_dependency( | 673 | 3 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 3 | } | 675 | 3 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 3 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 3 | } | 678 | | | 679 | 3 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 3 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 3 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 3 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 3 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 3 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 3 | _memory_used_counter = | 689 | 3 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 3 | _common_profile->add_info_string("IsColocate", | 691 | 3 | std::to_string(_parent->is_colocated_operator())); | 692 | 3 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 3 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 3 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 3 | return Status::OK(); | 696 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 102 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 102 | _operator_profile = | 641 | 102 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 102 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 102 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 102 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 102 | _operator_profile->add_child(_common_profile, true); | 650 | 102 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 102 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 102 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 102 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 102 | if constexpr (!is_fake_shared) { | 656 | 102 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 102 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 102 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 102 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 102 | _dependency = _shared_state->create_sink_dependency( | 673 | 102 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 102 | } | 675 | 102 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 102 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 102 | } | 678 | | | 679 | 102 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 102 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 102 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 102 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 102 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 102 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 102 | _memory_used_counter = | 689 | 102 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 102 | _common_profile->add_info_string("IsColocate", | 691 | 102 | std::to_string(_parent->is_colocated_operator())); | 692 | 102 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 102 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 102 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 102 | return Status::OK(); | 696 | 102 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 23 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 23 | _operator_profile = | 641 | 23 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 23 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 23 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 23 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 23 | _operator_profile->add_child(_common_profile, true); | 650 | 23 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 23 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 23 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 23 | if constexpr (!is_fake_shared) { | 656 | 23 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 23 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 23 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 23 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 23 | _dependency = _shared_state->create_sink_dependency( | 673 | 23 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 23 | } | 675 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 23 | } | 678 | | | 679 | 23 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 23 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 23 | _memory_used_counter = | 689 | 23 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 23 | _common_profile->add_info_string("IsColocate", | 691 | 23 | std::to_string(_parent->is_colocated_operator())); | 692 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 23 | return Status::OK(); | 696 | 23 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 11 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 11 | _operator_profile = | 641 | 11 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 11 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 11 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 11 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 11 | _operator_profile->add_child(_common_profile, true); | 650 | 11 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 11 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 11 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 11 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 11 | if constexpr (!is_fake_shared) { | 656 | 11 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 11 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 11 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 11 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 11 | _dependency = _shared_state->create_sink_dependency( | 673 | 11 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 11 | } | 675 | 11 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 11 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 11 | } | 678 | | | 679 | 11 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 11 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 11 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 11 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 11 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 11 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 11 | _memory_used_counter = | 689 | 11 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 11 | _common_profile->add_info_string("IsColocate", | 691 | 11 | std::to_string(_parent->is_colocated_operator())); | 692 | 11 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 11 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 11 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 11 | return Status::OK(); | 696 | 11 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 3 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 3 | _operator_profile = | 641 | 3 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 3 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 3 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 3 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 3 | _operator_profile->add_child(_common_profile, true); | 650 | 3 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 3 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 3 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 3 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 3 | if constexpr (!is_fake_shared) { | 656 | 3 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 3 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 3 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 3 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 3 | _dependency = _shared_state->create_sink_dependency( | 673 | 3 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 3 | } | 675 | 3 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 3 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 3 | } | 678 | | | 679 | 3 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 3 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 3 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 3 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 3 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 3 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 3 | _memory_used_counter = | 689 | 3 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 3 | _common_profile->add_info_string("IsColocate", | 691 | 3 | std::to_string(_parent->is_colocated_operator())); | 692 | 3 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 3 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 3 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 3 | return Status::OK(); | 696 | 3 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
697 | | |
698 | | template <typename SharedState> |
699 | 72.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
700 | 72.0k | if (_closed) { |
701 | 2 | return Status::OK(); |
702 | 2 | } |
703 | 72.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
704 | 72.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
705 | 72.0k | } |
706 | 72.0k | _closed = true; |
707 | 72.0k | return Status::OK(); |
708 | 72.0k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 72.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 72.0k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 72.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 72.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 72.0k | } | 706 | 72.0k | _closed = true; | 707 | 72.0k | return Status::OK(); | 708 | 72.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 1 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 1 | } | 706 | 1 | _closed = true; | 707 | 1 | return Status::OK(); | 708 | 1 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 4 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 4 | if (_closed) { | 701 | 2 | return Status::OK(); | 702 | 2 | } | 703 | 2 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 2 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 2 | } | 706 | 2 | _closed = true; | 707 | 2 | return Status::OK(); | 708 | 4 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 1 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 1 | } | 706 | 1 | _closed = true; | 707 | 1 | return Status::OK(); | 708 | 1 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 6 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 6 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 6 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 6 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 6 | } | 706 | 6 | _closed = true; | 707 | 6 | return Status::OK(); | 708 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 3 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 3 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | | } | 706 | 3 | _closed = true; | 707 | 3 | return Status::OK(); | 708 | 3 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 1 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 1 | } | 706 | 1 | _closed = true; | 707 | 1 | return Status::OK(); | 708 | 1 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE |
709 | | |
710 | | template <typename LocalStateType> |
711 | 4 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
712 | 4 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
713 | 4 | return pull(state, block, eos); |
714 | 4 | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 4 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 4 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 4 | return pull(state, block, eos); | 714 | 4 | } |
Unexecuted instantiation: _ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb |
715 | | |
716 | | template <typename LocalStateType> |
717 | 62 | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
718 | 62 | auto& local_state = get_local_state(state); |
719 | 62 | if (need_more_input_data(state)) { |
720 | 56 | local_state._child_block->clear_column_data( |
721 | 56 | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
722 | 56 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
723 | 56 | state, local_state._child_block.get(), &local_state._child_eos)); |
724 | 56 | *eos = local_state._child_eos; |
725 | 56 | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 54 | { |
729 | 54 | SCOPED_TIMER(local_state.exec_time_counter()); |
730 | 54 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
731 | 54 | } |
732 | 54 | } |
733 | | |
734 | 60 | if (!need_more_input_data(state)) { |
735 | 60 | SCOPED_TIMER(local_state.exec_time_counter()); |
736 | 60 | bool new_eos = false; |
737 | 60 | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
738 | 60 | if (new_eos) { |
739 | 35 | *eos = true; |
740 | 35 | } else if (!need_more_input_data(state)) { |
741 | 0 | *eos = false; |
742 | 0 | } |
743 | 60 | } |
744 | 60 | return Status::OK(); |
745 | 60 | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 60 | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 60 | auto& local_state = get_local_state(state); | 719 | 60 | if (need_more_input_data(state)) { | 720 | 54 | local_state._child_block->clear_column_data( | 721 | 54 | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 54 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 54 | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 54 | *eos = local_state._child_eos; | 725 | 54 | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 52 | { | 729 | 52 | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 52 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 52 | } | 732 | 52 | } | 733 | | | 734 | 58 | if (!need_more_input_data(state)) { | 735 | 58 | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 58 | bool new_eos = false; | 737 | 58 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 58 | if (new_eos) { | 739 | 33 | *eos = true; | 740 | 33 | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 58 | } | 744 | 58 | return Status::OK(); | 745 | 58 | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 2 | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 2 | auto& local_state = get_local_state(state); | 719 | 2 | if (need_more_input_data(state)) { | 720 | 2 | local_state._child_block->clear_column_data( | 721 | 2 | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 2 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 2 | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 2 | *eos = local_state._child_eos; | 725 | 2 | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2 | { | 729 | 2 | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 2 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 2 | } | 732 | 2 | } | 733 | | | 734 | 2 | if (!need_more_input_data(state)) { | 735 | 2 | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 2 | bool new_eos = false; | 737 | 2 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 2 | if (new_eos) { | 739 | 2 | *eos = true; | 740 | 2 | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 2 | } | 744 | 2 | return Status::OK(); | 745 | 2 | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb |
746 | | |
747 | | template <typename Writer, typename Parent> |
748 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
749 | 0 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
750 | 0 | RETURN_IF_ERROR(Base::init(state, info)); |
751 | 0 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
752 | 0 | "AsyncWriterDependency", true); |
753 | 0 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
754 | 0 | _finish_dependency)); |
755 | |
|
756 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
757 | 0 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
758 | 0 | return Status::OK(); |
759 | 0 | } Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
760 | | |
761 | | template <typename Writer, typename Parent> |
762 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
763 | 0 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
764 | 0 | RETURN_IF_ERROR(Base::open(state)); |
765 | 0 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
766 | 0 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
767 | 0 | RETURN_IF_ERROR( |
768 | 0 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
769 | 0 | } |
770 | 0 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
771 | 0 | return Status::OK(); |
772 | 0 | } Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
773 | | |
774 | | template <typename Writer, typename Parent> |
775 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
776 | 0 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
777 | 0 | return _writer->sink(block, eos); |
778 | 0 | } Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
779 | | |
780 | | template <typename Writer, typename Parent> |
781 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
782 | 0 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
783 | 0 | if (_closed) { |
784 | 0 | return Status::OK(); |
785 | 0 | } |
786 | 0 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
787 | 0 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
788 | | // if the init failed, the _writer may be nullptr. so here need check |
789 | 0 | if (_writer) { |
790 | 0 | Status st = _writer->get_writer_status(); |
791 | 0 | if (exec_status.ok()) { |
792 | 0 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
793 | 0 | : Status::Cancelled("force close")); |
794 | 0 | } else { |
795 | 0 | _writer->force_close(exec_status); |
796 | 0 | } |
797 | | // If there is an error in process_block thread, then we should get the writer |
798 | | // status before call force_close. For example, the thread may failed in commit |
799 | | // transaction. |
800 | 0 | RETURN_IF_ERROR(st); |
801 | 0 | } |
802 | 0 | return Base::close(state, exec_status); |
803 | 0 | } Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
804 | | |
805 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
806 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
807 | | DECLARE_OPERATOR(ResultSinkLocalState) |
808 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
809 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
810 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
811 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
812 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
813 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
814 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
815 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
816 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
817 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
818 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
819 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
820 | | DECLARE_OPERATOR(SortSinkLocalState) |
821 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
822 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
823 | | DECLARE_OPERATOR(AggSinkLocalState) |
824 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
825 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
826 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
827 | | DECLARE_OPERATOR(UnionSinkLocalState) |
828 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
829 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
830 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
831 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
832 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
833 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
834 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
835 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
836 | | DECLARE_OPERATOR(CacheSinkLocalState) |
837 | | DECLARE_OPERATOR(DictSinkLocalState) |
838 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
839 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
840 | | |
841 | | #undef DECLARE_OPERATOR |
842 | | |
843 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
844 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
845 | | DECLARE_OPERATOR(OlapScanLocalState) |
846 | | DECLARE_OPERATOR(GroupCommitLocalState) |
847 | | DECLARE_OPERATOR(JDBCScanLocalState) |
848 | | DECLARE_OPERATOR(FileScanLocalState) |
849 | | DECLARE_OPERATOR(EsScanLocalState) |
850 | | DECLARE_OPERATOR(AnalyticLocalState) |
851 | | DECLARE_OPERATOR(SortLocalState) |
852 | | DECLARE_OPERATOR(SpillSortLocalState) |
853 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
854 | | DECLARE_OPERATOR(AggLocalState) |
855 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
856 | | DECLARE_OPERATOR(TableFunctionLocalState) |
857 | | DECLARE_OPERATOR(ExchangeLocalState) |
858 | | DECLARE_OPERATOR(RepeatLocalState) |
859 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
860 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
861 | | DECLARE_OPERATOR(EmptySetLocalState) |
862 | | DECLARE_OPERATOR(UnionSourceLocalState) |
863 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
864 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
865 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
866 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
867 | | DECLARE_OPERATOR(DataGenLocalState) |
868 | | DECLARE_OPERATOR(SchemaScanLocalState) |
869 | | DECLARE_OPERATOR(MetaScanLocalState) |
870 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
871 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
872 | | DECLARE_OPERATOR(CacheSourceLocalState) |
873 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
874 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
875 | | |
876 | | #ifdef BE_TEST |
877 | | DECLARE_OPERATOR(MockLocalState) |
878 | | DECLARE_OPERATOR(MockScanLocalState) |
879 | | #endif |
880 | | #undef DECLARE_OPERATOR |
881 | | |
882 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
883 | | template class StreamingOperatorX<SelectLocalState>; |
884 | | |
885 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
886 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
887 | | template class StatefulOperatorX<RepeatLocalState>; |
888 | | template class StatefulOperatorX<MaterializationLocalState>; |
889 | | template class StatefulOperatorX<StreamingAggLocalState>; |
890 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
891 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
892 | | template class StatefulOperatorX<TableFunctionLocalState>; |
893 | | |
894 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
895 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
896 | | template class PipelineXSinkLocalState<SortSharedState>; |
897 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
898 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
899 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
900 | | template class PipelineXSinkLocalState<AggSharedState>; |
901 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
902 | | template class PipelineXSinkLocalState<FakeSharedState>; |
903 | | template class PipelineXSinkLocalState<UnionSharedState>; |
904 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
905 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
906 | | template class PipelineXSinkLocalState<SetSharedState>; |
907 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
908 | | template class PipelineXSinkLocalState<BasicSharedState>; |
909 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
910 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
911 | | |
912 | | template class PipelineXLocalState<HashJoinSharedState>; |
913 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
914 | | template class PipelineXLocalState<SortSharedState>; |
915 | | template class PipelineXLocalState<SpillSortSharedState>; |
916 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
917 | | template class PipelineXLocalState<AnalyticSharedState>; |
918 | | template class PipelineXLocalState<AggSharedState>; |
919 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
920 | | template class PipelineXLocalState<FakeSharedState>; |
921 | | template class PipelineXLocalState<UnionSharedState>; |
922 | | template class PipelineXLocalState<DataQueueSharedState>; |
923 | | template class PipelineXLocalState<MultiCastSharedState>; |
924 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
925 | | template class PipelineXLocalState<SetSharedState>; |
926 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
927 | | template class PipelineXLocalState<BasicSharedState>; |
928 | | template class PipelineXLocalState<RecCTESharedState>; |
929 | | |
930 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
931 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
932 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
933 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
934 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
935 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
936 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
937 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
938 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
939 | | |
940 | | #ifdef BE_TEST |
941 | | template class OperatorX<DummyOperatorLocalState>; |
942 | | template class DataSinkOperatorX<DummySinkLocalState>; |
943 | | #endif |
944 | | |
945 | | #include "common/compile_check_end.h" |
946 | | } // namespace doris |