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 | 2.20M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
116 | 2.20M | if (_parent->nereids_id() == -1) { |
117 | 1.15M | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
118 | 1.15M | } else { |
119 | 1.04M | return fmt::format("(nereids_id={})" + operator_name_suffix, |
120 | 1.04M | std::to_string(_parent->nereids_id()), |
121 | 1.04M | std::to_string(_parent->node_id())); |
122 | 1.04M | } |
123 | 2.20M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 136k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 136k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 136k | } else { | 119 | 136k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 136k | std::to_string(_parent->nereids_id()), | 121 | 136k | std::to_string(_parent->node_id())); | 122 | 136k | } | 123 | 136k | } |
_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 | 196k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 196k | if (_parent->nereids_id() == -1) { | 117 | 12 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 196k | } else { | 119 | 196k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 196k | std::to_string(_parent->nereids_id()), | 121 | 196k | std::to_string(_parent->node_id())); | 122 | 196k | } | 123 | 196k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 19 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 19 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 19 | } else { | 119 | 19 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 19 | std::to_string(_parent->nereids_id()), | 121 | 19 | std::to_string(_parent->node_id())); | 122 | 19 | } | 123 | 19 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 6.22k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 6.22k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 6.22k | } else { | 119 | 6.22k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 6.22k | std::to_string(_parent->nereids_id()), | 121 | 6.22k | std::to_string(_parent->node_id())); | 122 | 6.22k | } | 123 | 6.22k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 9.85k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 9.85k | if (_parent->nereids_id() == -1) { | 117 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 9.84k | } else { | 119 | 9.84k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 9.84k | std::to_string(_parent->nereids_id()), | 121 | 9.84k | std::to_string(_parent->node_id())); | 122 | 9.84k | } | 123 | 9.85k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 121k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 121k | if (_parent->nereids_id() == -1) { | 117 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 121k | } else { | 119 | 121k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 121k | std::to_string(_parent->nereids_id()), | 121 | 121k | std::to_string(_parent->node_id())); | 122 | 121k | } | 123 | 121k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 270 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 270 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 270 | } else { | 119 | 270 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 270 | std::to_string(_parent->nereids_id()), | 121 | 270 | std::to_string(_parent->node_id())); | 122 | 270 | } | 123 | 270 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 962k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 962k | if (_parent->nereids_id() == -1) { | 117 | 429k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 532k | } else { | 119 | 532k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 532k | std::to_string(_parent->nereids_id()), | 121 | 532k | std::to_string(_parent->node_id())); | 122 | 532k | } | 123 | 962k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 39.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 39.8k | if (_parent->nereids_id() == -1) { | 117 | 2 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 39.8k | } else { | 119 | 39.8k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 39.8k | std::to_string(_parent->nereids_id()), | 121 | 39.8k | std::to_string(_parent->node_id())); | 122 | 39.8k | } | 123 | 39.8k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 369 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 369 | if (_parent->nereids_id() == -1) { | 117 | 369 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 369 | } 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 | 369 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 7.03k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 7.03k | if (_parent->nereids_id() == -1) { | 117 | 7.03k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 7.03k | } 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 | 7.03k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 377 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 377 | if (_parent->nereids_id() == -1) { | 117 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 275 | } else { | 119 | 275 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 275 | std::to_string(_parent->nereids_id()), | 121 | 275 | std::to_string(_parent->node_id())); | 122 | 275 | } | 123 | 377 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 4.67k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 4.67k | if (_parent->nereids_id() == -1) { | 117 | 10 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 4.66k | } else { | 119 | 4.66k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 4.66k | std::to_string(_parent->nereids_id()), | 121 | 4.66k | std::to_string(_parent->node_id())); | 122 | 4.66k | } | 123 | 4.67k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 714k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 715k | if (_parent->nereids_id() == -1) { | 117 | 715k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 18.4E | } else { | 119 | 18.4E | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 18.4E | std::to_string(_parent->nereids_id()), | 121 | 18.4E | std::to_string(_parent->node_id())); | 122 | 18.4E | } | 123 | 714k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 150 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 150 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 150 | } else { | 119 | 150 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 150 | std::to_string(_parent->nereids_id()), | 121 | 150 | std::to_string(_parent->node_id())); | 122 | 150 | } | 123 | 150 | } |
|
124 | | |
125 | | template <typename SharedStateArg> |
126 | 1.32M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
127 | 1.32M | if (_parent->nereids_id() == -1) { |
128 | 796k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
129 | 796k | } else { |
130 | 529k | return fmt::format("(nereids_id={})" + operator_name_suffix, |
131 | 529k | std::to_string(_parent->nereids_id()), |
132 | 529k | std::to_string(_parent->node_id())); |
133 | 529k | } |
134 | 1.32M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 184k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 184k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 184k | } else { | 130 | 184k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 184k | std::to_string(_parent->nereids_id()), | 132 | 184k | std::to_string(_parent->node_id())); | 133 | 184k | } | 134 | 184k | } |
_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 | 197k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 197k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 197k | } else { | 130 | 197k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 197k | std::to_string(_parent->nereids_id()), | 132 | 197k | std::to_string(_parent->node_id())); | 133 | 197k | } | 134 | 197k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 22 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 22 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 22 | } else { | 130 | 22 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 22 | std::to_string(_parent->nereids_id()), | 132 | 22 | std::to_string(_parent->node_id())); | 133 | 22 | } | 134 | 22 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 6.25k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 6.25k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 6.25k | } else { | 130 | 6.25k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 6.25k | std::to_string(_parent->nereids_id()), | 132 | 6.25k | std::to_string(_parent->node_id())); | 133 | 6.25k | } | 134 | 6.25k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 9.91k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 9.91k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 9.90k | } else { | 130 | 9.90k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 9.90k | std::to_string(_parent->nereids_id()), | 132 | 9.90k | std::to_string(_parent->node_id())); | 133 | 9.90k | } | 134 | 9.91k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 121k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 121k | if (_parent->nereids_id() == -1) { | 128 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 121k | } else { | 130 | 121k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 121k | std::to_string(_parent->nereids_id()), | 132 | 121k | std::to_string(_parent->node_id())); | 133 | 121k | } | 134 | 121k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 276 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 276 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 276 | } else { | 130 | 276 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 276 | std::to_string(_parent->nereids_id()), | 132 | 276 | std::to_string(_parent->node_id())); | 133 | 276 | } | 134 | 276 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 12 | if (_parent->nereids_id() == -1) { | 128 | 12 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 12 | } 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 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 8.56k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 8.56k | if (_parent->nereids_id() == -1) { | 128 | 3 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 8.56k | } else { | 130 | 8.56k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 8.56k | std::to_string(_parent->nereids_id()), | 132 | 8.56k | std::to_string(_parent->node_id())); | 133 | 8.56k | } | 134 | 8.56k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 377 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 377 | if (_parent->nereids_id() == -1) { | 128 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 275 | } else { | 130 | 275 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 275 | std::to_string(_parent->nereids_id()), | 132 | 275 | std::to_string(_parent->node_id())); | 133 | 275 | } | 134 | 377 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 11.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 11.9k | if (_parent->nereids_id() == -1) { | 128 | 11.9k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 11.9k | } else { | 130 | 5 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 5 | std::to_string(_parent->nereids_id()), | 132 | 5 | std::to_string(_parent->node_id())); | 133 | 5 | } | 134 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 345k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 345k | if (_parent->nereids_id() == -1) { | 128 | 345k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 18.4E | } else { | 130 | 18.4E | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 18.4E | std::to_string(_parent->nereids_id()), | 132 | 18.4E | std::to_string(_parent->node_id())); | 133 | 18.4E | } | 134 | 345k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 438k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 438k | if (_parent->nereids_id() == -1) { | 128 | 438k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 18.4E | } else { | 130 | 18.4E | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 18.4E | std::to_string(_parent->nereids_id()), | 132 | 18.4E | std::to_string(_parent->node_id())); | 133 | 18.4E | } | 134 | 438k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 368 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 368 | if (_parent->nereids_id() == -1) { | 128 | 367 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 367 | } 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 | 368 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 300 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 300 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 300 | } else { | 130 | 300 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 300 | std::to_string(_parent->nereids_id()), | 132 | 300 | std::to_string(_parent->node_id())); | 133 | 300 | } | 134 | 300 | } |
|
135 | | |
136 | | template <typename SharedStateArg> |
137 | 30.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
138 | 30.0k | if (_terminated) { |
139 | 0 | return Status::OK(); |
140 | 0 | } |
141 | 30.0k | _terminated = true; |
142 | 30.0k | return Status::OK(); |
143 | 30.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 _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 799 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 799 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 799 | _terminated = true; | 142 | 799 | return Status::OK(); | 143 | 799 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2 | _terminated = true; | 142 | 2 | return Status::OK(); | 143 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 7 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 7 | _terminated = true; | 142 | 7 | return Status::OK(); | 143 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 3 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 3 | _terminated = true; | 142 | 3 | return Status::OK(); | 143 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2.93k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2.93k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2.93k | _terminated = true; | 142 | 2.93k | return Status::OK(); | 143 | 2.93k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 1.88k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 1.88k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 1.88k | _terminated = true; | 142 | 1.88k | return Status::OK(); | 143 | 1.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 6 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 6 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 6 | _terminated = true; | 142 | 6 | return Status::OK(); | 143 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2 | _terminated = true; | 142 | 2 | return Status::OK(); | 143 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 42 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 42 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 42 | _terminated = true; | 142 | 42 | return Status::OK(); | 143 | 42 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2 | _terminated = true; | 142 | 2 | return Status::OK(); | 143 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 241 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 241 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 241 | _terminated = true; | 142 | 241 | return Status::OK(); | 143 | 241 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 134 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 134 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 134 | _terminated = true; | 142 | 134 | return Status::OK(); | 143 | 134 | } |
|
144 | | |
145 | 574k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
146 | 574k | return _child && _child->is_serial_operator() && !is_source() |
147 | 574k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
148 | 574k | : DataDistribution(ExchangeType::NOOP); |
149 | 574k | } |
150 | | |
151 | 81.0k | const RowDescriptor& OperatorBase::row_desc() const { |
152 | 81.0k | return _child->row_desc(); |
153 | 81.0k | } |
154 | | |
155 | | template <typename SharedStateArg> |
156 | 54.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
157 | 54.3k | fmt::memory_buffer debug_string_buffer; |
158 | 54.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
159 | 54.3k | return fmt::to_string(debug_string_buffer); |
160 | 54.3k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 24 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 24 | fmt::memory_buffer debug_string_buffer; | 158 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 24 | return fmt::to_string(debug_string_buffer); | 160 | 24 | } |
_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 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 6 | fmt::memory_buffer debug_string_buffer; | 158 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 6 | return fmt::to_string(debug_string_buffer); | 160 | 6 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 6 | fmt::memory_buffer debug_string_buffer; | 158 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 6 | return fmt::to_string(debug_string_buffer); | 160 | 6 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 54.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 54.3k | fmt::memory_buffer debug_string_buffer; | 158 | 54.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 54.3k | return fmt::to_string(debug_string_buffer); | 160 | 54.3k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 1 | fmt::memory_buffer debug_string_buffer; | 158 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 1 | return fmt::to_string(debug_string_buffer); | 160 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 12 | fmt::memory_buffer debug_string_buffer; | 158 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 12 | return fmt::to_string(debug_string_buffer); | 160 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
161 | | |
162 | | template <typename SharedStateArg> |
163 | 54.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
164 | 54.3k | fmt::memory_buffer debug_string_buffer; |
165 | 54.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
166 | 54.3k | return fmt::to_string(debug_string_buffer); |
167 | 54.3k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 6 | fmt::memory_buffer debug_string_buffer; | 165 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 6 | return fmt::to_string(debug_string_buffer); | 167 | 6 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 6 | fmt::memory_buffer debug_string_buffer; | 165 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 6 | return fmt::to_string(debug_string_buffer); | 167 | 6 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 12 | fmt::memory_buffer debug_string_buffer; | 165 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 12 | return fmt::to_string(debug_string_buffer); | 167 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 7 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 7 | fmt::memory_buffer debug_string_buffer; | 165 | 7 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 7 | return fmt::to_string(debug_string_buffer); | 167 | 7 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 54.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 54.3k | fmt::memory_buffer debug_string_buffer; | 165 | 54.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 54.3k | return fmt::to_string(debug_string_buffer); | 167 | 54.3k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
168 | | |
169 | 54.5k | std::string OperatorXBase::debug_string(int indentation_level) const { |
170 | 54.5k | fmt::memory_buffer debug_string_buffer; |
171 | 54.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
172 | 54.5k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
173 | 54.5k | _is_serial_operator); |
174 | 54.5k | return fmt::to_string(debug_string_buffer); |
175 | 54.5k | } |
176 | | |
177 | 54.3k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
178 | 54.3k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
179 | 54.3k | } |
180 | | |
181 | 568k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
182 | 568k | std::string node_name = print_plan_node_type(tnode.node_type); |
183 | 568k | _nereids_id = tnode.nereids_id; |
184 | 568k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
185 | 2.89k | if (!tnode.__isset.output_tuple_id) { |
186 | 0 | return Status::InternalError("no final output tuple id"); |
187 | 0 | } |
188 | 2.89k | if (tnode.intermediate_output_tuple_id_list.size() != |
189 | 2.89k | 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 | 2.89k | } |
197 | 568k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
198 | 568k | _op_name = substr + "_OPERATOR"; |
199 | | |
200 | 568k | if (tnode.__isset.vconjunct) { |
201 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
202 | 568k | } else if (tnode.__isset.conjuncts) { |
203 | 258k | for (const auto& conjunct : tnode.conjuncts) { |
204 | 258k | VExprContextSPtr context; |
205 | 258k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
206 | 258k | _conjuncts.emplace_back(context); |
207 | 258k | } |
208 | 87.8k | } |
209 | | |
210 | | // create the projections expr |
211 | 568k | if (tnode.__isset.projections) { |
212 | 244k | DCHECK(tnode.__isset.output_tuple_id); |
213 | 244k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
214 | 244k | } |
215 | 568k | if (!tnode.intermediate_projections_list.empty()) { |
216 | 2.89k | DCHECK(tnode.__isset.projections) << "no final projections"; |
217 | 2.89k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
218 | 3.79k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
219 | 3.79k | VExprContextSPtrs projections; |
220 | 3.79k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
221 | 3.79k | _intermediate_projections.push_back(projections); |
222 | 3.79k | } |
223 | 2.89k | } |
224 | 568k | return Status::OK(); |
225 | 568k | } |
226 | | |
227 | 595k | Status OperatorXBase::prepare(RuntimeState* state) { |
228 | 595k | for (auto& conjunct : _conjuncts) { |
229 | 258k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
230 | 258k | } |
231 | 595k | if (state->enable_adjust_conjunct_order_by_cost()) { |
232 | 545k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
233 | 341k | return a->execute_cost() < b->execute_cost(); |
234 | 341k | }); |
235 | 545k | }; |
236 | | |
237 | 598k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
238 | 3.79k | RETURN_IF_ERROR( |
239 | 3.79k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
240 | 3.79k | } |
241 | 595k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
242 | | |
243 | 595k | if (has_output_row_desc()) { |
244 | 244k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
245 | 244k | } |
246 | | |
247 | 595k | for (auto& conjunct : _conjuncts) { |
248 | 258k | RETURN_IF_ERROR(conjunct->open(state)); |
249 | 258k | } |
250 | 595k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
251 | 594k | for (auto& projections : _intermediate_projections) { |
252 | 3.79k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
253 | 3.79k | } |
254 | 594k | if (_child && !is_source()) { |
255 | 137k | RETURN_IF_ERROR(_child->prepare(state)); |
256 | 137k | } |
257 | | |
258 | 594k | if (VExpr::contains_blockable_function(_conjuncts) || |
259 | 594k | VExpr::contains_blockable_function(_projections)) { |
260 | 0 | _blockable = true; |
261 | 0 | } |
262 | | |
263 | 594k | return Status::OK(); |
264 | 594k | } |
265 | | |
266 | 8.30k | Status OperatorXBase::terminate(RuntimeState* state) { |
267 | 8.30k | if (_child && !is_source()) { |
268 | 2.23k | RETURN_IF_ERROR(_child->terminate(state)); |
269 | 2.23k | } |
270 | 8.30k | auto result = state->get_local_state_result(operator_id()); |
271 | 8.30k | if (!result) { |
272 | 0 | return result.error(); |
273 | 0 | } |
274 | 8.30k | return result.value()->terminate(state); |
275 | 8.30k | } |
276 | | |
277 | 6.38M | Status OperatorXBase::close(RuntimeState* state) { |
278 | 6.38M | if (_child && !is_source()) { |
279 | 1.38M | RETURN_IF_ERROR(_child->close(state)); |
280 | 1.38M | } |
281 | 6.38M | auto result = state->get_local_state_result(operator_id()); |
282 | 6.38M | if (!result) { |
283 | 0 | return result.error(); |
284 | 0 | } |
285 | 6.38M | return result.value()->close(state); |
286 | 6.38M | } |
287 | | |
288 | 347k | void PipelineXLocalStateBase::clear_origin_block() { |
289 | 347k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
290 | 347k | } |
291 | | |
292 | 627k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
293 | 627k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
294 | | |
295 | 627k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
296 | 627k | return Status::OK(); |
297 | 627k | } |
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 | 347k | Block* output_block) const { |
306 | 347k | auto* local_state = state->get_local_state(operator_id()); |
307 | 347k | SCOPED_TIMER(local_state->exec_time_counter()); |
308 | 347k | SCOPED_TIMER(local_state->_projection_timer); |
309 | 347k | const size_t rows = origin_block->rows(); |
310 | 347k | if (rows == 0) { |
311 | 223k | return Status::OK(); |
312 | 223k | } |
313 | 124k | Block input_block = *origin_block; |
314 | | |
315 | 124k | size_t bytes_usage = 0; |
316 | 124k | ColumnsWithTypeAndName new_columns; |
317 | 124k | for (const auto& projections : local_state->_intermediate_projections) { |
318 | 1.04k | if (projections.empty()) { |
319 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
320 | 0 | node_id()); |
321 | 0 | } |
322 | 1.04k | new_columns.resize(projections.size()); |
323 | 7.11k | for (int i = 0; i < projections.size(); i++) { |
324 | 6.06k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
325 | 6.06k | 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 | 6.06k | } |
333 | 1.04k | Block tmp_block {new_columns}; |
334 | 1.04k | bytes_usage += tmp_block.allocated_bytes(); |
335 | 1.04k | input_block.swap(tmp_block); |
336 | 1.04k | } |
337 | | |
338 | 124k | 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 | 600k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
345 | 600k | 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 | 600k | } else { |
355 | 600k | if (_keep_origin || !from->is_exclusive()) { |
356 | 591k | to->insert_range_from(*from, 0, rows); |
357 | 591k | bytes_usage += from->allocated_bytes(); |
358 | 591k | } else { |
359 | 9.10k | to = from->assume_mutable(); |
360 | 9.10k | } |
361 | 600k | } |
362 | 600k | }; |
363 | | |
364 | 124k | MutableBlock mutable_block = |
365 | 124k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
366 | 124k | if (rows != 0) { |
367 | 124k | auto& mutable_columns = mutable_block.mutable_columns(); |
368 | 124k | const size_t origin_columns_count = input_block.columns(); |
369 | 124k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 724k | for (int i = 0; i < mutable_columns.size(); ++i) { |
371 | 600k | auto result_column_id = -1; |
372 | 600k | ColumnPtr column_ptr; |
373 | 600k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
374 | 600k | 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 | 600k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
381 | 600k | if (result_column_id >= origin_columns_count) { |
382 | 600k | bytes_usage += column_ptr->allocated_bytes(); |
383 | 600k | } |
384 | 600k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
385 | 600k | } |
386 | 124k | DCHECK(mutable_block.rows() == rows); |
387 | 124k | output_block->set_columns(std::move(mutable_columns)); |
388 | 124k | } |
389 | | |
390 | 124k | local_state->_estimate_memory_usage += bytes_usage; |
391 | | |
392 | 124k | return Status::OK(); |
393 | 124k | } |
394 | | |
395 | 3.94M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
396 | 3.94M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
397 | 3.94M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
398 | 3.94M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
399 | 3.94M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
400 | 3.94M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
401 | 3.94M | if (_debug_point_count++ % 2 == 0) { |
402 | 3.94M | return Status::OK(); |
403 | 3.94M | } |
404 | 3.94M | } |
405 | 3.94M | }); |
406 | | |
407 | 3.94M | Status status; |
408 | 3.94M | auto* local_state = state->get_local_state(operator_id()); |
409 | 3.94M | Defer defer([&]() { |
410 | 3.94M | if (status.ok()) { |
411 | 3.94M | if (auto rows = block->rows()) { |
412 | 731k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
413 | 731k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
414 | 731k | } |
415 | 3.94M | } |
416 | 3.94M | }); |
417 | 3.94M | if (_output_row_descriptor) { |
418 | 347k | local_state->clear_origin_block(); |
419 | 347k | status = get_block(state, &local_state->_origin_block, eos); |
420 | 347k | if (UNLIKELY(!status.ok())) { |
421 | 15 | return status; |
422 | 15 | } |
423 | 347k | status = do_projections(state, &local_state->_origin_block, block); |
424 | 347k | return status; |
425 | 347k | } |
426 | 3.60M | status = get_block(state, block, eos); |
427 | 3.60M | RETURN_IF_ERROR(block->check_type_and_column()); |
428 | 3.60M | return status; |
429 | 3.60M | } |
430 | | |
431 | 2.49M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
432 | 2.49M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
433 | 1.72k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
434 | 1.72k | *eos = true; |
435 | 1.72k | } |
436 | | |
437 | 2.49M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
438 | 2.49M | auto op_name = to_lower(_parent->_op_name); |
439 | 2.49M | auto arg_op_name = dp->param<std::string>("op_name"); |
440 | 2.49M | arg_op_name = to_lower(arg_op_name); |
441 | | |
442 | 2.49M | if (op_name == arg_op_name) { |
443 | 2.49M | *eos = true; |
444 | 2.49M | } |
445 | 2.49M | }); |
446 | | |
447 | 2.49M | if (auto rows = block->rows()) { |
448 | 648k | _num_rows_returned += rows; |
449 | 648k | } |
450 | 2.49M | } |
451 | | |
452 | 30.0k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
453 | 30.0k | auto result = state->get_sink_local_state_result(); |
454 | 30.0k | if (!result) { |
455 | 0 | return result.error(); |
456 | 0 | } |
457 | 30.0k | return result.value()->terminate(state); |
458 | 30.0k | } |
459 | | |
460 | 54.4k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
461 | 54.4k | fmt::memory_buffer debug_string_buffer; |
462 | | |
463 | 54.4k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
464 | 54.4k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
465 | 54.4k | return fmt::to_string(debug_string_buffer); |
466 | 54.4k | } |
467 | | |
468 | 54.3k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
469 | 54.3k | return state->get_sink_local_state()->debug_string(indentation_level); |
470 | 54.3k | } |
471 | | |
472 | 334k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
473 | 334k | std::string op_name = "UNKNOWN_SINK"; |
474 | 334k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
475 | | |
476 | 334k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
477 | 334k | op_name = it->second; |
478 | 334k | } |
479 | 334k | _name = op_name + "_OPERATOR"; |
480 | 334k | return Status::OK(); |
481 | 334k | } |
482 | | |
483 | 168k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
484 | 168k | std::string op_name = print_plan_node_type(tnode.node_type); |
485 | 168k | _nereids_id = tnode.nereids_id; |
486 | 168k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
487 | 168k | _name = substr + "_SINK_OPERATOR"; |
488 | 168k | return Status::OK(); |
489 | 168k | } |
490 | | |
491 | | template <typename LocalStateType> |
492 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
493 | 1.92M | LocalSinkStateInfo& info) { |
494 | 1.92M | auto local_state = LocalStateType::create_unique(this, state); |
495 | 1.92M | RETURN_IF_ERROR(local_state->init(state, info)); |
496 | 1.92M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
497 | 1.92M | return Status::OK(); |
498 | 1.92M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 184k | LocalSinkStateInfo& info) { | 494 | 184k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 184k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 184k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 184k | return Status::OK(); | 498 | 184k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 371k | LocalSinkStateInfo& info) { | 494 | 371k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 371k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 371k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 371k | return Status::OK(); | 498 | 371k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_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 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 341 | LocalSinkStateInfo& info) { | 494 | 341 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 341 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 341 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 341 | return Status::OK(); | 498 | 341 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 66.0k | LocalSinkStateInfo& info) { | 494 | 66.0k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 66.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 66.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 66.0k | return Status::OK(); | 498 | 66.0k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 4 | LocalSinkStateInfo& info) { | 494 | 4 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 4 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 4 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 4 | return Status::OK(); | 498 | 4 | } |
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 _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 9.91k | LocalSinkStateInfo& info) { | 494 | 9.91k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 9.91k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 9.91k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 9.91k | return Status::OK(); | 498 | 9.91k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 9 | LocalSinkStateInfo& info) { | 494 | 9 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 9 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 9 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 9 | return Status::OK(); | 498 | 9 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 198k | LocalSinkStateInfo& info) { | 494 | 198k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 198k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 198k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 198k | return Status::OK(); | 498 | 198k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 22 | LocalSinkStateInfo& info) { | 494 | 22 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 22 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 22 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 22 | return Status::OK(); | 498 | 22 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 344k | LocalSinkStateInfo& info) { | 494 | 344k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 344k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 344k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 344k | return Status::OK(); | 498 | 344k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 121k | LocalSinkStateInfo& info) { | 494 | 121k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 121k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 121k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 121k | return Status::OK(); | 498 | 121k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 276 | LocalSinkStateInfo& info) { | 494 | 276 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 276 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 276 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 276 | return Status::OK(); | 498 | 276 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 601k | LocalSinkStateInfo& info) { | 494 | 601k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 601k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 601k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 601k | return Status::OK(); | 498 | 601k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 6.25k | LocalSinkStateInfo& info) { | 494 | 6.25k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 6.25k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 6.25k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 6.25k | return Status::OK(); | 498 | 6.25k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 8.55k | LocalSinkStateInfo& info) { | 494 | 8.55k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 8.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 8.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 8.55k | return Status::OK(); | 498 | 8.55k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.63k | LocalSinkStateInfo& info) { | 494 | 2.63k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.63k | return Status::OK(); | 498 | 2.63k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 275 | LocalSinkStateInfo& info) { | 494 | 275 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 275 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 275 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 275 | return Status::OK(); | 498 | 275 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 4.62k | LocalSinkStateInfo& info) { | 494 | 4.62k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 4.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 4.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 4.62k | return Status::OK(); | 498 | 4.62k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.46k | LocalSinkStateInfo& info) { | 494 | 2.46k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.46k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.46k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.46k | return Status::OK(); | 498 | 2.46k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.37k | LocalSinkStateInfo& info) { | 494 | 2.37k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.37k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.37k | return Status::OK(); | 498 | 2.37k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.38k | LocalSinkStateInfo& info) { | 494 | 2.38k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.38k | return Status::OK(); | 498 | 2.38k | } |
_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 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 163 | LocalSinkStateInfo& info) { | 494 | 163 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 163 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 163 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 163 | return Status::OK(); | 498 | 163 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 366 | LocalSinkStateInfo& info) { | 494 | 366 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 366 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 366 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 366 | return Status::OK(); | 498 | 366 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 105 | LocalSinkStateInfo& info) { | 494 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 105 | return Status::OK(); | 498 | 105 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 150 | LocalSinkStateInfo& info) { | 494 | 150 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 150 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 150 | return Status::OK(); | 498 | 150 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 150 | LocalSinkStateInfo& info) { | 494 | 150 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 150 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 150 | return Status::OK(); | 498 | 150 | } |
|
499 | | |
500 | | template <typename LocalStateType> |
501 | 1.55M | 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 | 1.55M | } else { |
509 | 1.55M | auto ss = LocalStateType::SharedStateType::create_shared(); |
510 | 1.55M | ss->id = operator_id(); |
511 | 1.55M | for (auto& dest : dests_id()) { |
512 | 1.55M | ss->related_op_ids.insert(dest); |
513 | 1.55M | } |
514 | 1.55M | return ss; |
515 | 1.55M | } |
516 | 1.55M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 173k | 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 | 173k | } else { | 509 | 173k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 173k | ss->id = operator_id(); | 511 | 173k | for (auto& dest : dests_id()) { | 512 | 172k | ss->related_op_ids.insert(dest); | 513 | 172k | } | 514 | 173k | return ss; | 515 | 173k | } | 516 | 173k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 372k | 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 | 372k | } else { | 509 | 372k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 372k | ss->id = operator_id(); | 511 | 372k | for (auto& dest : dests_id()) { | 512 | 371k | ss->related_op_ids.insert(dest); | 513 | 371k | } | 514 | 372k | return ss; | 515 | 372k | } | 516 | 372k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_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 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 341 | 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 | 341 | } else { | 509 | 341 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 341 | ss->id = operator_id(); | 511 | 341 | for (auto& dest : dests_id()) { | 512 | 341 | ss->related_op_ids.insert(dest); | 513 | 341 | } | 514 | 341 | return ss; | 515 | 341 | } | 516 | 341 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 65.1k | 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 | 65.1k | } else { | 509 | 65.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 65.1k | ss->id = operator_id(); | 511 | 65.1k | for (auto& dest : dests_id()) { | 512 | 64.9k | ss->related_op_ids.insert(dest); | 513 | 64.9k | } | 514 | 65.1k | return ss; | 515 | 65.1k | } | 516 | 65.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_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_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.93k | 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.93k | } else { | 509 | 9.93k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 9.93k | ss->id = operator_id(); | 511 | 9.93k | for (auto& dest : dests_id()) { | 512 | 9.92k | ss->related_op_ids.insert(dest); | 513 | 9.92k | } | 514 | 9.93k | return ss; | 515 | 9.93k | } | 516 | 9.93k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_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 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 198k | 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 | 198k | } else { | 509 | 198k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 198k | ss->id = operator_id(); | 511 | 198k | for (auto& dest : dests_id()) { | 512 | 197k | ss->related_op_ids.insert(dest); | 513 | 197k | } | 514 | 198k | return ss; | 515 | 198k | } | 516 | 198k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 24 | 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 | 24 | } else { | 509 | 24 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 24 | ss->id = operator_id(); | 511 | 24 | for (auto& dest : dests_id()) { | 512 | 24 | ss->related_op_ids.insert(dest); | 513 | 24 | } | 514 | 24 | return ss; | 515 | 24 | } | 516 | 24 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 122k | 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 | 122k | } else { | 509 | 122k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 122k | ss->id = operator_id(); | 511 | 122k | for (auto& dest : dests_id()) { | 512 | 121k | ss->related_op_ids.insert(dest); | 513 | 121k | } | 514 | 122k | return ss; | 515 | 122k | } | 516 | 122k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 275 | 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 | 275 | } else { | 509 | 275 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 275 | ss->id = operator_id(); | 511 | 275 | for (auto& dest : dests_id()) { | 512 | 275 | ss->related_op_ids.insert(dest); | 513 | 275 | } | 514 | 275 | return ss; | 515 | 275 | } | 516 | 275 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 603k | 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 | 603k | } else { | 509 | 603k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 603k | ss->id = operator_id(); | 511 | 603k | for (auto& dest : dests_id()) { | 512 | 601k | ss->related_op_ids.insert(dest); | 513 | 601k | } | 514 | 603k | return ss; | 515 | 603k | } | 516 | 603k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 6.26k | 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.26k | } else { | 509 | 6.26k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 6.26k | ss->id = operator_id(); | 511 | 6.26k | for (auto& dest : dests_id()) { | 512 | 6.25k | ss->related_op_ids.insert(dest); | 513 | 6.25k | } | 514 | 6.26k | return ss; | 515 | 6.26k | } | 516 | 6.26k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 377 | 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 | 377 | } else { | 509 | 377 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 377 | ss->id = operator_id(); | 511 | 377 | for (auto& dest : dests_id()) { | 512 | 377 | ss->related_op_ids.insert(dest); | 513 | 377 | } | 514 | 377 | return ss; | 515 | 377 | } | 516 | 377 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.38k | 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 | 2.38k | } else { | 509 | 2.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.38k | ss->id = operator_id(); | 511 | 2.38k | for (auto& dest : dests_id()) { | 512 | 2.38k | ss->related_op_ids.insert(dest); | 513 | 2.38k | } | 514 | 2.38k | return ss; | 515 | 2.38k | } | 516 | 2.38k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.38k | 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 | 2.38k | } else { | 509 | 2.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.38k | ss->id = operator_id(); | 511 | 2.39k | for (auto& dest : dests_id()) { | 512 | 2.39k | ss->related_op_ids.insert(dest); | 513 | 2.39k | } | 514 | 2.38k | return ss; | 515 | 2.38k | } | 516 | 2.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 163 | 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 | 163 | } else { | 509 | 163 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 163 | ss->id = operator_id(); | 511 | 163 | for (auto& dest : dests_id()) { | 512 | 163 | ss->related_op_ids.insert(dest); | 513 | 163 | } | 514 | 163 | return ss; | 515 | 163 | } | 516 | 163 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 105 | 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 | 105 | } else { | 509 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 105 | ss->id = operator_id(); | 511 | 105 | for (auto& dest : dests_id()) { | 512 | 105 | ss->related_op_ids.insert(dest); | 513 | 105 | } | 514 | 105 | return ss; | 515 | 105 | } | 516 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
517 | | |
518 | | template <typename LocalStateType> |
519 | 2.52M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
520 | 2.52M | auto local_state = LocalStateType::create_unique(state, this); |
521 | 2.52M | RETURN_IF_ERROR(local_state->init(state, info)); |
522 | 2.52M | state->emplace_local_state(operator_id(), std::move(local_state)); |
523 | 2.52M | return Status::OK(); |
524 | 2.52M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 136k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 136k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 136k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 136k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 136k | return Status::OK(); | 524 | 136k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 316k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 316k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 316k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 316k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 316k | return Status::OK(); | 524 | 316k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 71 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 71 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 71 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 71 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 71 | return Status::OK(); | 524 | 71 | } |
_ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 4 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 4 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 4 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 4 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 4 | return Status::OK(); | 524 | 4 | } |
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.66k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.66k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.66k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.66k | return Status::OK(); | 524 | 2.66k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 9.85k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 9.85k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 9.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 9.85k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 9.85k | return Status::OK(); | 524 | 9.85k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 11.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 11.7k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 11.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 11.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 11.7k | return Status::OK(); | 524 | 11.7k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 19 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 19 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 19 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 19 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 19 | return Status::OK(); | 524 | 19 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 185k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 185k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 185k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 185k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 185k | return Status::OK(); | 524 | 185k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 121k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 121k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 121k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 121k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 121k | return Status::OK(); | 524 | 121k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 270 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 270 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 270 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 270 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 270 | return Status::OK(); | 524 | 270 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 4.48k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 4.48k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 4.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 4.48k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 4.48k | return Status::OK(); | 524 | 4.48k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 429k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 429k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 429k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 429k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 429k | return Status::OK(); | 524 | 429k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.08k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.08k | return Status::OK(); | 524 | 1.08k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 6.24k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 6.24k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 6.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 6.24k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 6.24k | return Status::OK(); | 524 | 6.24k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 21 | return Status::OK(); | 524 | 21 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.55k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.55k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.55k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.55k | return Status::OK(); | 524 | 1.55k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 39.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 39.9k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 39.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 39.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 39.9k | return Status::OK(); | 524 | 39.9k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 7.03k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 7.03k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 7.03k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 7.03k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 7.03k | return Status::OK(); | 524 | 7.03k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 275 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 275 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 275 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 275 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 275 | return Status::OK(); | 524 | 275 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.31k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.31k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.31k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.31k | return Status::OK(); | 524 | 2.31k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.30k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.30k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.30k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.30k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.30k | return Status::OK(); | 524 | 2.30k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 267 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 267 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 267 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 267 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 267 | return Status::OK(); | 524 | 267 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.54k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.54k | return Status::OK(); | 524 | 1.54k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 4.94k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 4.94k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 4.94k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 4.94k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 4.94k | return Status::OK(); | 524 | 4.94k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 716k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 716k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 716k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 716k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 716k | return Status::OK(); | 524 | 716k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 366 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 366 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 366 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 366 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 366 | return Status::OK(); | 524 | 366 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 150 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 150 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 150 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 150 | return Status::OK(); | 524 | 150 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.84k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.84k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.84k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.84k | return Status::OK(); | 524 | 1.84k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 667 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 667 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 667 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 667 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 667 | return Status::OK(); | 524 | 667 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 861 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 861 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 861 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 861 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 861 | return Status::OK(); | 524 | 861 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 6.85k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 6.85k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 6.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 6.85k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 6.85k | return Status::OK(); | 524 | 6.85k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 511k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 511k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 511k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 511k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 511k | return Status::OK(); | 524 | 511k | } |
|
525 | | |
526 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
527 | | RuntimeState* state) |
528 | 1.93M | : _parent(parent), _state(state) {} |
529 | | |
530 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
531 | 2.52M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
532 | | |
533 | | template <typename SharedStateArg> |
534 | 2.52M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
535 | 2.52M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
536 | 2.52M | _common_profile.reset(new RuntimeProfile("CommonCounters")); |
537 | 2.52M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); |
538 | 2.52M | _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.52M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
542 | 2.52M | _operator_profile->add_child(_common_profile.get(), true); |
543 | 2.52M | _operator_profile->add_child(_custom_profile.get(), true); |
544 | 2.52M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
545 | 2.52M | if constexpr (!is_fake_shared) { |
546 | 1.24M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
547 | 727k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
548 | 727k | .first.get() |
549 | 727k | ->template cast<SharedStateArg>(); |
550 | | |
551 | 727k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
552 | 727k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
553 | 727k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
554 | 727k | } else if (info.shared_state) { |
555 | 470k | 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 | 470k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
560 | | |
561 | 470k | _dependency = _shared_state->create_source_dependency( |
562 | 470k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
563 | 470k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
564 | 470k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
565 | 470k | } else { |
566 | 44.1k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
567 | 1.45k | DCHECK(false); |
568 | 1.45k | } |
569 | 44.1k | } |
570 | 1.24M | } |
571 | | |
572 | 2.52M | 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.52M | _rows_returned_counter = |
577 | 2.52M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); |
578 | 2.52M | _blocks_returned_counter = |
579 | 2.52M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); |
580 | 2.52M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); |
581 | 2.52M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
582 | 2.52M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
583 | 2.52M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
584 | 2.52M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
585 | 2.52M | _memory_used_counter = |
586 | 2.52M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
587 | 2.52M | _common_profile->add_info_string("IsColocate", |
588 | 2.52M | std::to_string(_parent->is_colocated_operator())); |
589 | 2.52M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
590 | 2.52M | _common_profile->add_info_string("FollowedByShuffledOperator", |
591 | 2.52M | std::to_string(_parent->followed_by_shuffled_operator())); |
592 | 2.52M | return Status::OK(); |
593 | 2.52M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 136k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 136k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 136k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 136k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 136k | _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 | 136k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 136k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 136k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 136k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 136k | if constexpr (!is_fake_shared) { | 546 | 136k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 11.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 11.4k | .first.get() | 549 | 11.4k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 11.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 11.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 11.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 125k | } 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 | 124k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 124k | _dependency = _shared_state->create_source_dependency( | 562 | 124k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 124k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 124k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 124k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1.08k | } | 570 | 136k | } | 571 | | | 572 | 136k | 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 | 136k | _rows_returned_counter = | 577 | 136k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 136k | _blocks_returned_counter = | 579 | 136k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 136k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 136k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 136k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 136k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 136k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 136k | _memory_used_counter = | 586 | 136k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 136k | _common_profile->add_info_string("IsColocate", | 588 | 136k | std::to_string(_parent->is_colocated_operator())); | 589 | 136k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 136k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 136k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 136k | return Status::OK(); | 593 | 136k | } |
_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 | 197k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 197k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 197k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 197k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 197k | _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 | 197k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 197k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 197k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 197k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 197k | if constexpr (!is_fake_shared) { | 546 | 197k | 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 | 197k | } 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 | 192k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 192k | _dependency = _shared_state->create_source_dependency( | 562 | 192k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 192k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 192k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 192k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 4.45k | } | 570 | 197k | } | 571 | | | 572 | 197k | 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 | 197k | _rows_returned_counter = | 577 | 197k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 197k | _blocks_returned_counter = | 579 | 197k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 197k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 197k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 197k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 197k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 197k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 197k | _memory_used_counter = | 586 | 197k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 197k | _common_profile->add_info_string("IsColocate", | 588 | 197k | std::to_string(_parent->is_colocated_operator())); | 589 | 197k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 197k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 197k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 197k | return Status::OK(); | 593 | 197k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 19 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 19 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 19 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 19 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 19 | _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 | 19 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 19 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 19 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 19 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 19 | if constexpr (!is_fake_shared) { | 546 | 19 | 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 | 19 | } 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 | 19 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 19 | _dependency = _shared_state->create_source_dependency( | 562 | 19 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 19 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 19 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 19 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 19 | } | 571 | | | 572 | 19 | 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 | 19 | _rows_returned_counter = | 577 | 19 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 19 | _blocks_returned_counter = | 579 | 19 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 19 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 19 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 19 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 19 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 19 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 19 | _memory_used_counter = | 586 | 19 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 19 | _common_profile->add_info_string("IsColocate", | 588 | 19 | std::to_string(_parent->is_colocated_operator())); | 589 | 19 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 19 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 19 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 19 | return Status::OK(); | 593 | 19 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 6.22k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 6.22k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 6.22k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 6.22k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 6.22k | _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 | 6.22k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 6.22k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 6.22k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 6.22k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 6.22k | if constexpr (!is_fake_shared) { | 546 | 6.22k | 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 | 6.22k | } 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 | 6.22k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 6.22k | _dependency = _shared_state->create_source_dependency( | 562 | 6.22k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 6.22k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 6.22k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 6.22k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 2 | } | 570 | 6.22k | } | 571 | | | 572 | 6.22k | 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 | 6.22k | _rows_returned_counter = | 577 | 6.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 6.22k | _blocks_returned_counter = | 579 | 6.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 6.22k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 6.22k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 6.22k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 6.22k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 6.22k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 6.22k | _memory_used_counter = | 586 | 6.22k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 6.22k | _common_profile->add_info_string("IsColocate", | 588 | 6.22k | std::to_string(_parent->is_colocated_operator())); | 589 | 6.22k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 6.22k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 6.22k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 6.22k | return Status::OK(); | 593 | 6.22k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 9.87k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 9.87k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 9.87k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 9.87k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 9.87k | _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.87k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 9.87k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 9.87k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 9.87k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 9.87k | if constexpr (!is_fake_shared) { | 546 | 9.87k | 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.87k | } 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.81k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 9.81k | _dependency = _shared_state->create_source_dependency( | 562 | 9.81k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 9.81k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 9.81k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 9.81k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 58 | } | 570 | 9.87k | } | 571 | | | 572 | 9.87k | 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.87k | _rows_returned_counter = | 577 | 9.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 9.87k | _blocks_returned_counter = | 579 | 9.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 9.87k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 9.87k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 9.87k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 9.87k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 9.87k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 9.87k | _memory_used_counter = | 586 | 9.87k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 9.87k | _common_profile->add_info_string("IsColocate", | 588 | 9.87k | std::to_string(_parent->is_colocated_operator())); | 589 | 9.87k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 9.87k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 9.87k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 9.87k | return Status::OK(); | 593 | 9.87k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 121k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 121k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 121k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 121k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 121k | _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 | 121k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 121k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 121k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 121k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 121k | if constexpr (!is_fake_shared) { | 546 | 121k | 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 | 121k | } 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 | 120k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 120k | _dependency = _shared_state->create_source_dependency( | 562 | 120k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 120k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 120k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 120k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 858 | } | 570 | 121k | } | 571 | | | 572 | 121k | 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 | 121k | _rows_returned_counter = | 577 | 121k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 121k | _blocks_returned_counter = | 579 | 121k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 121k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 121k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 121k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 121k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 121k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 121k | _memory_used_counter = | 586 | 121k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 121k | _common_profile->add_info_string("IsColocate", | 588 | 121k | std::to_string(_parent->is_colocated_operator())); | 589 | 121k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 121k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 121k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 121k | return Status::OK(); | 593 | 121k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 270 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 270 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 270 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 270 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 270 | _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 | 270 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 270 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 270 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 270 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 270 | if constexpr (!is_fake_shared) { | 546 | 270 | 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 | 270 | } 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 | 270 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 270 | _dependency = _shared_state->create_source_dependency( | 562 | 270 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 270 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 270 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 270 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 270 | } | 571 | | | 572 | 270 | 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 | 270 | _rows_returned_counter = | 577 | 270 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 270 | _blocks_returned_counter = | 579 | 270 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 270 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 270 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 270 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 270 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 270 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 270 | _memory_used_counter = | 586 | 270 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 270 | _common_profile->add_info_string("IsColocate", | 588 | 270 | std::to_string(_parent->is_colocated_operator())); | 589 | 270 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 270 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 270 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 270 | return Status::OK(); | 593 | 270 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 1.28M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 1.28M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 1.28M | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 1.28M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 1.28M | _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.28M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 1.28M | _operator_profile->add_child(_common_profile.get(), true); | 543 | 1.28M | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 1.28M | 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 | 1.28M | 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.28M | _rows_returned_counter = | 577 | 1.28M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 1.28M | _blocks_returned_counter = | 579 | 1.28M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 1.28M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 1.28M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 1.28M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 1.28M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 1.28M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 1.28M | _memory_used_counter = | 586 | 1.28M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 1.28M | _common_profile->add_info_string("IsColocate", | 588 | 1.28M | std::to_string(_parent->is_colocated_operator())); | 589 | 1.28M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 1.28M | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 1.28M | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 1.28M | return Status::OK(); | 593 | 1.28M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 39.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 39.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 39.8k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 39.8k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 39.8k | _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 | 39.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 39.8k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 39.8k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 39.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 39.8k | if constexpr (!is_fake_shared) { | 546 | 39.8k | 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 | 39.8k | } 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.75k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 3.75k | _dependency = _shared_state->create_source_dependency( | 562 | 3.75k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 3.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 3.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 36.0k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 36.0k | } | 570 | 39.8k | } | 571 | | | 572 | 39.8k | 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 | 39.8k | _rows_returned_counter = | 577 | 39.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 39.8k | _blocks_returned_counter = | 579 | 39.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 39.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 39.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 39.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 39.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 39.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 39.8k | _memory_used_counter = | 586 | 39.8k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 39.8k | _common_profile->add_info_string("IsColocate", | 588 | 39.8k | std::to_string(_parent->is_colocated_operator())); | 589 | 39.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 39.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 39.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 39.8k | return Status::OK(); | 593 | 39.8k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 369 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 369 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 369 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 369 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 369 | _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 | 369 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 369 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 369 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 369 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 369 | if constexpr (!is_fake_shared) { | 546 | 369 | 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 | 369 | } 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 | 368 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 368 | _dependency = _shared_state->create_source_dependency( | 562 | 368 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 368 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 368 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 368 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1 | } | 570 | 369 | } | 571 | | | 572 | 369 | 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 | 369 | _rows_returned_counter = | 577 | 369 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 369 | _blocks_returned_counter = | 579 | 369 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 369 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 369 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 369 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 369 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 369 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 369 | _memory_used_counter = | 586 | 369 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 369 | _common_profile->add_info_string("IsColocate", | 588 | 369 | std::to_string(_parent->is_colocated_operator())); | 589 | 369 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 369 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 369 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 369 | return Status::OK(); | 593 | 369 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 7.03k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 7.03k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 7.03k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 7.03k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 7.03k | _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 | 7.03k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 7.03k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 7.03k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 7.03k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 7.03k | if constexpr (!is_fake_shared) { | 546 | 7.03k | 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 | 7.03k | } 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 | 7.03k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 7.03k | _dependency = _shared_state->create_source_dependency( | 562 | 7.03k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 7.03k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 7.03k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 7.03k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 7.03k | } | 571 | | | 572 | 7.03k | 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 | 7.03k | _rows_returned_counter = | 577 | 7.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 7.03k | _blocks_returned_counter = | 579 | 7.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 7.03k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 7.03k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 7.03k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 7.03k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 7.03k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 7.03k | _memory_used_counter = | 586 | 7.03k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 7.03k | _common_profile->add_info_string("IsColocate", | 588 | 7.03k | std::to_string(_parent->is_colocated_operator())); | 589 | 7.03k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 7.03k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 7.03k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 7.03k | return Status::OK(); | 593 | 7.03k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 377 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 377 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 377 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 377 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 377 | _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 | 377 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 377 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 377 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 377 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 377 | if constexpr (!is_fake_shared) { | 546 | 377 | 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 | 377 | } 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 | 377 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 377 | _dependency = _shared_state->create_source_dependency( | 562 | 377 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 377 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 377 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 377 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 377 | } | 571 | | | 572 | 377 | 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 | 377 | _rows_returned_counter = | 577 | 377 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 377 | _blocks_returned_counter = | 579 | 377 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 377 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 377 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 377 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 377 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 377 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 377 | _memory_used_counter = | 586 | 377 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 377 | _common_profile->add_info_string("IsColocate", | 588 | 377 | std::to_string(_parent->is_colocated_operator())); | 589 | 377 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 377 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 377 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 377 | return Status::OK(); | 593 | 377 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 4.74k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 4.74k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 4.74k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 4.74k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 4.74k | _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 | 4.74k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 4.74k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 4.74k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 4.74k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 4.74k | if constexpr (!is_fake_shared) { | 546 | 4.74k | 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 | 4.74k | } 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 | 4.60k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 4.60k | _dependency = _shared_state->create_source_dependency( | 562 | 4.60k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 4.60k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 4.60k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 4.60k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 139 | } | 570 | 4.74k | } | 571 | | | 572 | 4.74k | 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 | 4.74k | _rows_returned_counter = | 577 | 4.74k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 4.74k | _blocks_returned_counter = | 579 | 4.74k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 4.74k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 4.74k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 4.74k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 4.74k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 4.74k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 4.74k | _memory_used_counter = | 586 | 4.74k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 4.74k | _common_profile->add_info_string("IsColocate", | 588 | 4.74k | std::to_string(_parent->is_colocated_operator())); | 589 | 4.74k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 4.74k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 4.74k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 4.74k | return Status::OK(); | 593 | 4.74k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 717k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 717k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 717k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 717k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 717k | _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 | 717k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 717k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 717k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 717k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 717k | if constexpr (!is_fake_shared) { | 546 | 717k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 716k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 716k | .first.get() | 549 | 716k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 716k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 716k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 716k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 716k | } else if (info.shared_state) { | 555 | 0 | 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 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->create_source_dependency( | 562 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 1.45k | } else { | 566 | 1.45k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | 1.45k | DCHECK(false); | 568 | 1.45k | } | 569 | 1.45k | } | 570 | 717k | } | 571 | | | 572 | 717k | 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 | 717k | _rows_returned_counter = | 577 | 717k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 717k | _blocks_returned_counter = | 579 | 717k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 717k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 717k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 717k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 717k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 717k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 717k | _memory_used_counter = | 586 | 717k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 717k | _common_profile->add_info_string("IsColocate", | 588 | 717k | std::to_string(_parent->is_colocated_operator())); | 589 | 717k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 717k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 717k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 717k | return Status::OK(); | 593 | 717k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 150 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 150 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 150 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 150 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 150 | _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 | 150 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 150 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 150 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 150 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 150 | if constexpr (!is_fake_shared) { | 546 | 150 | 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 | 150 | } 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 | 150 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 150 | _dependency = _shared_state->create_source_dependency( | 562 | 150 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 150 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 150 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 150 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 150 | } | 571 | | | 572 | 150 | 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 | 150 | _rows_returned_counter = | 577 | 150 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 150 | _blocks_returned_counter = | 579 | 150 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 150 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 150 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 150 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 150 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 150 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 150 | _memory_used_counter = | 586 | 150 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 150 | _common_profile->add_info_string("IsColocate", | 588 | 150 | std::to_string(_parent->is_colocated_operator())); | 589 | 150 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 150 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 150 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 150 | return Status::OK(); | 593 | 150 | } |
|
594 | | |
595 | | template <typename SharedStateArg> |
596 | 2.53M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
597 | 2.53M | _conjuncts.resize(_parent->_conjuncts.size()); |
598 | 2.53M | _projections.resize(_parent->_projections.size()); |
599 | 2.86M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
600 | 328k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
601 | 328k | } |
602 | 5.06M | for (size_t i = 0; i < _projections.size(); i++) { |
603 | 2.52M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
604 | 2.52M | } |
605 | 2.53M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
606 | 2.54M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
607 | 6.06k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
608 | 39.0k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
609 | 33.0k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
610 | 33.0k | state, _intermediate_projections[i][j])); |
611 | 33.0k | } |
612 | 6.06k | } |
613 | 2.53M | return Status::OK(); |
614 | 2.53M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 136k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 136k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 136k | _projections.resize(_parent->_projections.size()); | 599 | 138k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.30k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.30k | } | 602 | 707k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 570k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 570k | } | 605 | 136k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 137k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 709 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 6.34k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 5.63k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 5.63k | state, _intermediate_projections[i][j])); | 611 | 5.63k | } | 612 | 709 | } | 613 | 136k | return Status::OK(); | 614 | 136k | } |
_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 | 198k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 198k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 198k | _projections.resize(_parent->_projections.size()); | 599 | 198k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 216k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 18.3k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 18.3k | } | 605 | 198k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 198k | 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 | 198k | return Status::OK(); | 614 | 198k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 19 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 19 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 19 | _projections.resize(_parent->_projections.size()); | 599 | 19 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 19 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 19 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 19 | 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 | 19 | return Status::OK(); | 614 | 19 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 6.25k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 6.25k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 6.25k | _projections.resize(_parent->_projections.size()); | 599 | 6.39k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 142 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 142 | } | 602 | 29.2k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 22.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 22.9k | } | 605 | 6.25k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 6.29k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 44 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 316 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 272 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 272 | state, _intermediate_projections[i][j])); | 611 | 272 | } | 612 | 44 | } | 613 | 6.25k | return Status::OK(); | 614 | 6.25k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 9.94k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 9.94k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 9.94k | _projections.resize(_parent->_projections.size()); | 599 | 10.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 911 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 911 | } | 602 | 26.4k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 16.5k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 16.5k | } | 605 | 9.94k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 10.1k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 173 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 1.30k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 1.13k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 1.13k | state, _intermediate_projections[i][j])); | 611 | 1.13k | } | 612 | 173 | } | 613 | 9.94k | return Status::OK(); | 614 | 9.94k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 122k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 122k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 122k | _projections.resize(_parent->_projections.size()); | 599 | 123k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.95k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.95k | } | 602 | 433k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 311k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 311k | } | 605 | 122k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 122k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 99 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 720 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 621 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 621 | state, _intermediate_projections[i][j])); | 611 | 621 | } | 612 | 99 | } | 613 | 122k | return Status::OK(); | 614 | 122k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 274 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 274 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 274 | _projections.resize(_parent->_projections.size()); | 599 | 274 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 674 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 400 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 400 | } | 605 | 274 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 274 | 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 | 274 | return Status::OK(); | 614 | 274 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 1.28M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 1.28M | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 1.28M | _projections.resize(_parent->_projections.size()); | 599 | 1.61M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 323k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 323k | } | 602 | 2.78M | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 1.49M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 1.49M | } | 605 | 1.28M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 1.29M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 5.03k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 30.4k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 25.3k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 25.3k | state, _intermediate_projections[i][j])); | 611 | 25.3k | } | 612 | 5.03k | } | 613 | 1.28M | return Status::OK(); | 614 | 1.28M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 40.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 40.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 40.0k | _projections.resize(_parent->_projections.size()); | 599 | 40.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 | 133k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 93.1k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 93.1k | } | 605 | 40.0k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 40.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 | 40.0k | return Status::OK(); | 614 | 40.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 369 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 369 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 369 | _projections.resize(_parent->_projections.size()); | 599 | 369 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 369 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 369 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 369 | 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 | 369 | return Status::OK(); | 614 | 369 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 7.02k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 7.02k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 7.02k | _projections.resize(_parent->_projections.size()); | 599 | 7.87k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 850 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 850 | } | 602 | 7.02k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 7.02k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 7.02k | 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 | 7.02k | return Status::OK(); | 614 | 7.02k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 377 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 377 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 377 | _projections.resize(_parent->_projections.size()); | 599 | 377 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 377 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 377 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 377 | 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 | 377 | return Status::OK(); | 614 | 377 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 4.81k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 4.81k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 4.81k | _projections.resize(_parent->_projections.size()); | 599 | 4.81k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 4.81k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 4.81k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 4.81k | 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 | 4.81k | return Status::OK(); | 614 | 4.81k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 721k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 721k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 721k | _projections.resize(_parent->_projections.size()); | 599 | 721k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 721k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 721k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 721k | 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 | 721k | return Status::OK(); | 614 | 721k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 150 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 150 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 150 | _projections.resize(_parent->_projections.size()); | 599 | 157 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 7 | } | 602 | 443 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 293 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 293 | } | 605 | 150 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 151 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 2 | state, _intermediate_projections[i][j])); | 611 | 2 | } | 612 | 1 | } | 613 | 150 | return Status::OK(); | 614 | 150 | } |
|
615 | | |
616 | | template <typename SharedStateArg> |
617 | 8.30k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
618 | 8.30k | if (_terminated) { |
619 | 0 | return Status::OK(); |
620 | 0 | } |
621 | 8.30k | _terminated = true; |
622 | 8.30k | return Status::OK(); |
623 | 8.30k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 1.52k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 1.52k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 1.52k | _terminated = true; | 622 | 1.52k | return Status::OK(); | 623 | 1.52k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 148 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 148 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 148 | _terminated = true; | 622 | 148 | return Status::OK(); | 623 | 148 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 195 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 195 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 195 | _terminated = true; | 622 | 195 | return Status::OK(); | 623 | 195 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 5 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 5 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 5 | _terminated = true; | 622 | 5 | return Status::OK(); | 623 | 5 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 614 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 614 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 614 | _terminated = true; | 622 | 614 | return Status::OK(); | 623 | 614 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 4.88k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 4.88k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 4.88k | _terminated = true; | 622 | 4.88k | return Status::OK(); | 623 | 4.88k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 5 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 5 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 5 | _terminated = true; | 622 | 5 | return Status::OK(); | 623 | 5 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 133 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 133 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 133 | _terminated = true; | 622 | 133 | return Status::OK(); | 623 | 133 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 122 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 122 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 122 | _terminated = true; | 622 | 122 | return Status::OK(); | 623 | 122 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 669 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 669 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 669 | _terminated = true; | 622 | 669 | return Status::OK(); | 623 | 669 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 15 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 15 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 15 | _terminated = true; | 622 | 15 | return Status::OK(); | 623 | 15 | } |
|
624 | | |
625 | | template <typename SharedStateArg> |
626 | 2.76M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
627 | 2.76M | if (_closed) { |
628 | 227k | return Status::OK(); |
629 | 227k | } |
630 | 2.53M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
631 | 1.24M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
632 | 1.24M | } |
633 | 2.53M | _closed = true; |
634 | 2.53M | return Status::OK(); |
635 | 2.76M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 136k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 136k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 136k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 136k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 136k | } | 633 | 136k | _closed = true; | 634 | 136k | return Status::OK(); | 635 | 136k | } |
_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 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 394k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 394k | if (_closed) { | 628 | 197k | return Status::OK(); | 629 | 197k | } | 630 | 197k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 197k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 197k | } | 633 | 197k | _closed = true; | 634 | 197k | return Status::OK(); | 635 | 394k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 19 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 19 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 19 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 19 | } | 633 | 19 | _closed = true; | 634 | 19 | return Status::OK(); | 635 | 19 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 6.25k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 6.25k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 6.25k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 6.25k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 6.25k | } | 633 | 6.25k | _closed = true; | 634 | 6.25k | return Status::OK(); | 635 | 6.25k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 19.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 19.9k | if (_closed) { | 628 | 10.0k | return Status::OK(); | 629 | 10.0k | } | 630 | 9.92k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 9.92k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 9.92k | } | 633 | 9.92k | _closed = true; | 634 | 9.92k | return Status::OK(); | 635 | 19.9k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 121k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 121k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 121k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 121k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 121k | } | 633 | 121k | _closed = true; | 634 | 121k | return Status::OK(); | 635 | 121k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 267 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 267 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 267 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 267 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 267 | } | 633 | 267 | _closed = true; | 634 | 267 | return Status::OK(); | 635 | 267 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1.30M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1.30M | if (_closed) { | 628 | 13.9k | return Status::OK(); | 629 | 13.9k | } | 630 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | | } | 633 | 1.28M | _closed = true; | 634 | 1.28M | return Status::OK(); | 635 | 1.30M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 40.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 40.0k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 40.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 40.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 40.0k | } | 633 | 40.0k | _closed = true; | 634 | 40.0k | return Status::OK(); | 635 | 40.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 732 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 732 | if (_closed) { | 628 | 366 | return Status::OK(); | 629 | 366 | } | 630 | 366 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 366 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 366 | } | 633 | 366 | _closed = true; | 634 | 366 | return Status::OK(); | 635 | 732 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 6.97k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 6.97k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 6.97k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 6.97k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 6.97k | } | 633 | 6.97k | _closed = true; | 634 | 6.97k | return Status::OK(); | 635 | 6.97k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 549 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 549 | if (_closed) { | 628 | 274 | return Status::OK(); | 629 | 274 | } | 630 | 275 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 275 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 275 | } | 633 | 275 | _closed = true; | 634 | 275 | return Status::OK(); | 635 | 549 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 9.63k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 9.63k | if (_closed) { | 628 | 4.82k | return Status::OK(); | 629 | 4.82k | } | 630 | 4.80k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 4.80k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 4.80k | } | 633 | 4.80k | _closed = true; | 634 | 4.80k | return Status::OK(); | 635 | 9.63k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 723k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 723k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 723k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 723k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 723k | } | 633 | 723k | _closed = true; | 634 | 723k | return Status::OK(); | 635 | 723k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 303 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 303 | if (_closed) { | 628 | 154 | return Status::OK(); | 629 | 154 | } | 630 | 149 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 149 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 149 | } | 633 | 149 | _closed = true; | 634 | 149 | return Status::OK(); | 635 | 303 | } |
|
636 | | |
637 | | template <typename SharedState> |
638 | 1.93M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
639 | | // create profile |
640 | 1.93M | _operator_profile = |
641 | 1.93M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
642 | 1.93M | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); |
643 | 1.93M | _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 | 1.93M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
649 | 1.93M | _operator_profile->add_child(_common_profile, true); |
650 | 1.93M | _operator_profile->add_child(_custom_profile, true); |
651 | | |
652 | 1.93M | _operator_profile->set_metadata(_parent->node_id()); |
653 | 1.93M | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); |
654 | 1.93M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
655 | 1.93M | if constexpr (!is_fake_shared) { |
656 | 1.32M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
657 | 1.32M | info.shared_state_map.end()) { |
658 | 357k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
659 | 345k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
660 | 345k | } |
661 | 357k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
662 | 357k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
663 | 357k | ? 0 |
664 | 357k | : info.task_idx] |
665 | 357k | .get(); |
666 | 357k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
667 | 971k | } else { |
668 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
669 | 18.4E | DCHECK(false); |
670 | 18.4E | } |
671 | 971k | _shared_state = info.shared_state->template cast<SharedState>(); |
672 | 971k | _dependency = _shared_state->create_sink_dependency( |
673 | 971k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
674 | 971k | } |
675 | 1.32M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
676 | 1.32M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
677 | 1.32M | } |
678 | | |
679 | 1.93M | 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 | 1.93M | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); |
684 | 1.93M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
685 | 1.93M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
686 | 1.93M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
687 | 1.93M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
688 | 1.93M | _memory_used_counter = |
689 | 1.93M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
690 | 1.93M | _common_profile->add_info_string("IsColocate", |
691 | 1.93M | std::to_string(_parent->is_colocated_operator())); |
692 | 1.93M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
693 | 1.93M | _common_profile->add_info_string("FollowedByShuffledOperator", |
694 | 1.93M | std::to_string(_parent->followed_by_shuffled_operator())); |
695 | 1.93M | return Status::OK(); |
696 | 1.93M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 184k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 184k | _operator_profile = | 641 | 184k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 184k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 184k | _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 | 184k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 184k | _operator_profile->add_child(_common_profile, true); | 650 | 184k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 184k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 184k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 184k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 184k | if constexpr (!is_fake_shared) { | 656 | 184k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 184k | 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 | 11.5k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 11.5k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 11.5k | ? 0 | 664 | 11.5k | : info.task_idx] | 665 | 11.5k | .get(); | 666 | 11.5k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 173k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 173k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 173k | _dependency = _shared_state->create_sink_dependency( | 673 | 173k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 173k | } | 675 | 184k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 184k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 184k | } | 678 | | | 679 | 184k | 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 | 184k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 184k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 184k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 184k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 184k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 184k | _memory_used_counter = | 689 | 184k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 184k | _common_profile->add_info_string("IsColocate", | 691 | 184k | std::to_string(_parent->is_colocated_operator())); | 692 | 184k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 184k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 184k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 184k | return Status::OK(); | 696 | 184k | } |
_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 | 198k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 198k | _operator_profile = | 641 | 198k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 198k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 198k | _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 | 198k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 198k | _operator_profile->add_child(_common_profile, true); | 650 | 198k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 198k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 198k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 198k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 198k | if constexpr (!is_fake_shared) { | 656 | 198k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 198k | 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 | 198k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 198k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 198k | _dependency = _shared_state->create_sink_dependency( | 673 | 198k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 198k | } | 675 | 198k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 198k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 198k | } | 678 | | | 679 | 198k | 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 | 198k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 198k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 198k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 198k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 198k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 198k | _memory_used_counter = | 689 | 198k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 198k | _common_profile->add_info_string("IsColocate", | 691 | 198k | std::to_string(_parent->is_colocated_operator())); | 692 | 198k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 198k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 198k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 198k | return Status::OK(); | 696 | 198k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 22 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 22 | _operator_profile = | 641 | 22 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 22 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 22 | _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 | 22 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 22 | _operator_profile->add_child(_common_profile, true); | 650 | 22 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 22 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 22 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 22 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 22 | if constexpr (!is_fake_shared) { | 656 | 22 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 22 | 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 | 22 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 22 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 22 | _dependency = _shared_state->create_sink_dependency( | 673 | 22 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 22 | } | 675 | 22 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 22 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 22 | } | 678 | | | 679 | 22 | 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 | 22 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 22 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 22 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 22 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 22 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 22 | _memory_used_counter = | 689 | 22 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 22 | _common_profile->add_info_string("IsColocate", | 691 | 22 | std::to_string(_parent->is_colocated_operator())); | 692 | 22 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 22 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 22 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 22 | return Status::OK(); | 696 | 22 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 6.25k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 6.25k | _operator_profile = | 641 | 6.25k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 6.25k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 6.25k | _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 | 6.25k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 6.25k | _operator_profile->add_child(_common_profile, true); | 650 | 6.25k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 6.25k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 6.25k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 6.25k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 6.25k | if constexpr (!is_fake_shared) { | 656 | 6.25k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 6.25k | 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 | 6.25k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 6.25k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 6.25k | _dependency = _shared_state->create_sink_dependency( | 673 | 6.25k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 6.25k | } | 675 | 6.25k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 6.25k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 6.25k | } | 678 | | | 679 | 6.25k | 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 | 6.25k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 6.25k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 6.25k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 6.25k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 6.25k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 6.25k | _memory_used_counter = | 689 | 6.25k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 6.25k | _common_profile->add_info_string("IsColocate", | 691 | 6.25k | std::to_string(_parent->is_colocated_operator())); | 692 | 6.25k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 6.25k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 6.25k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 6.25k | return Status::OK(); | 696 | 6.25k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 9.93k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 9.93k | _operator_profile = | 641 | 9.93k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 9.93k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 9.93k | _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.93k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 9.93k | _operator_profile->add_child(_common_profile, true); | 650 | 9.93k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 9.93k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 9.93k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 9.93k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 9.93k | if constexpr (!is_fake_shared) { | 656 | 9.93k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 9.93k | 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.93k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 9.93k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 9.93k | _dependency = _shared_state->create_sink_dependency( | 673 | 9.93k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 9.93k | } | 675 | 9.93k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 9.93k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 9.93k | } | 678 | | | 679 | 9.93k | 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.93k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 9.93k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 9.93k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 9.93k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 9.93k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 9.93k | _memory_used_counter = | 689 | 9.93k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 9.93k | _common_profile->add_info_string("IsColocate", | 691 | 9.93k | std::to_string(_parent->is_colocated_operator())); | 692 | 9.93k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 9.93k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 9.93k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 9.93k | return Status::OK(); | 696 | 9.93k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 121k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 121k | _operator_profile = | 641 | 121k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 121k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 121k | _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 | 121k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 121k | _operator_profile->add_child(_common_profile, true); | 650 | 121k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 121k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 121k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 121k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 121k | if constexpr (!is_fake_shared) { | 656 | 121k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 121k | 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 | 121k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 121k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 121k | _dependency = _shared_state->create_sink_dependency( | 673 | 121k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 121k | } | 675 | 121k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 121k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 121k | } | 678 | | | 679 | 121k | 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 | 121k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 121k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 121k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 121k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 121k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 121k | _memory_used_counter = | 689 | 121k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 121k | _common_profile->add_info_string("IsColocate", | 691 | 121k | std::to_string(_parent->is_colocated_operator())); | 692 | 121k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 121k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 121k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 121k | return Status::OK(); | 696 | 121k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 276 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 276 | _operator_profile = | 641 | 276 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 276 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 276 | _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 | 276 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 276 | _operator_profile->add_child(_common_profile, true); | 650 | 276 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 276 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 276 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 276 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 276 | if constexpr (!is_fake_shared) { | 656 | 276 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 276 | 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 | 276 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 276 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 276 | _dependency = _shared_state->create_sink_dependency( | 673 | 276 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 276 | } | 675 | 276 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 276 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 276 | } | 678 | | | 679 | 276 | 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 | 276 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 276 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 276 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 276 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 276 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 276 | _memory_used_counter = | 689 | 276 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 276 | _common_profile->add_info_string("IsColocate", | 691 | 276 | std::to_string(_parent->is_colocated_operator())); | 692 | 276 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 276 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 276 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 276 | return Status::OK(); | 696 | 276 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 604k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 604k | _operator_profile = | 641 | 604k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 604k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 604k | _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 | 604k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 604k | _operator_profile->add_child(_common_profile, true); | 650 | 604k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 604k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 604k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 604k | 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 | 604k | 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 | 604k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 604k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 604k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 604k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 604k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 604k | _memory_used_counter = | 689 | 604k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 604k | _common_profile->add_info_string("IsColocate", | 691 | 604k | std::to_string(_parent->is_colocated_operator())); | 692 | 604k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 604k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 604k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 604k | return Status::OK(); | 696 | 604k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 8.56k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 8.56k | _operator_profile = | 641 | 8.56k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 8.56k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 8.56k | _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.56k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 8.56k | _operator_profile->add_child(_common_profile, true); | 650 | 8.56k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 8.56k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 8.56k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 8.56k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 8.56k | if constexpr (!is_fake_shared) { | 656 | 8.56k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 8.56k | 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.56k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 8.56k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 8.56k | _dependency = _shared_state->create_sink_dependency( | 673 | 8.56k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 8.56k | } | 675 | 8.56k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 8.56k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 8.56k | } | 678 | | | 679 | 8.56k | 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.56k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 8.56k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 8.56k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 8.56k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 8.56k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 8.56k | _memory_used_counter = | 689 | 8.56k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 8.56k | _common_profile->add_info_string("IsColocate", | 691 | 8.56k | std::to_string(_parent->is_colocated_operator())); | 692 | 8.56k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 8.56k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 8.56k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 8.56k | return Status::OK(); | 696 | 8.56k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 377 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 377 | _operator_profile = | 641 | 377 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 377 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 377 | _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 | 377 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 377 | _operator_profile->add_child(_common_profile, true); | 650 | 377 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 377 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 377 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 377 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 377 | if constexpr (!is_fake_shared) { | 656 | 377 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 377 | 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 | 377 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 377 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 377 | _dependency = _shared_state->create_sink_dependency( | 673 | 377 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 377 | } | 675 | 377 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 377 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 377 | } | 678 | | | 679 | 377 | 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 | 377 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 377 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 377 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 377 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 377 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 377 | _memory_used_counter = | 689 | 377 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 377 | _common_profile->add_info_string("IsColocate", | 691 | 377 | std::to_string(_parent->is_colocated_operator())); | 692 | 377 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 377 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 377 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 377 | return Status::OK(); | 696 | 377 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 2.63k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 2.63k | _operator_profile = | 641 | 2.63k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 2.63k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 2.63k | _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.63k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 2.63k | _operator_profile->add_child(_common_profile, true); | 650 | 2.63k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 2.63k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 2.63k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 2.63k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 2.63k | if constexpr (!is_fake_shared) { | 656 | 2.63k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 2.63k | 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.63k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 2.63k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 2.63k | _dependency = _shared_state->create_sink_dependency( | 673 | 2.63k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 2.63k | } | 675 | 2.63k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 2.63k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 2.63k | } | 678 | | | 679 | 2.63k | 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.63k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 2.63k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 2.63k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 2.63k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 2.63k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 2.63k | _memory_used_counter = | 689 | 2.63k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 2.63k | _common_profile->add_info_string("IsColocate", | 691 | 2.63k | std::to_string(_parent->is_colocated_operator())); | 692 | 2.63k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 2.63k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 2.63k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 2.63k | return Status::OK(); | 696 | 2.63k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 11.9k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 11.9k | _operator_profile = | 641 | 11.9k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 11.9k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 11.9k | _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.9k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 11.9k | _operator_profile->add_child(_common_profile, true); | 650 | 11.9k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 11.9k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 11.9k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 11.9k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 11.9k | if constexpr (!is_fake_shared) { | 656 | 11.9k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 11.9k | 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.9k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 11.9k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 11.9k | _dependency = _shared_state->create_sink_dependency( | 673 | 11.9k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 11.9k | } | 675 | 11.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 11.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 11.9k | } | 678 | | | 679 | 11.9k | 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.9k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 11.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 11.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 11.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 11.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 11.9k | _memory_used_counter = | 689 | 11.9k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 11.9k | _common_profile->add_info_string("IsColocate", | 691 | 11.9k | std::to_string(_parent->is_colocated_operator())); | 692 | 11.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 11.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 11.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 11.9k | return Status::OK(); | 696 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 345k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 345k | _operator_profile = | 641 | 345k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 345k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 345k | _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 | 345k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 345k | _operator_profile->add_child(_common_profile, true); | 650 | 345k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 345k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 345k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 345k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 345k | if constexpr (!is_fake_shared) { | 656 | 345k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 345k | info.shared_state_map.end()) { | 658 | 345k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | 345k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | 345k | } | 661 | 345k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 345k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 345k | ? 0 | 664 | 345k | : info.task_idx] | 665 | 345k | .get(); | 666 | 345k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 18.4E | } else { | 668 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | 18.4E | DCHECK(false); | 670 | 18.4E | } | 671 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 673 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 18.4E | } | 675 | 345k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 345k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 345k | } | 678 | | | 679 | 345k | 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 | 345k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 345k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 345k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 345k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 345k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 345k | _memory_used_counter = | 689 | 345k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 345k | _common_profile->add_info_string("IsColocate", | 691 | 345k | std::to_string(_parent->is_colocated_operator())); | 692 | 345k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 345k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 345k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 345k | return Status::OK(); | 696 | 345k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 438k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 438k | _operator_profile = | 641 | 438k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 438k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 438k | _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 | 438k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 438k | _operator_profile->add_child(_common_profile, true); | 650 | 438k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 438k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 438k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 438k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 438k | if constexpr (!is_fake_shared) { | 656 | 438k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 438k | 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 | 1.01k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 1.01k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 1.01k | ? 0 | 664 | 1.01k | : info.task_idx] | 665 | 1.01k | .get(); | 666 | 1.01k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 437k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 437k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 437k | _dependency = _shared_state->create_sink_dependency( | 673 | 437k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 437k | } | 675 | 438k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 438k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 438k | } | 678 | | | 679 | 438k | 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 | 438k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 438k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 438k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 438k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 438k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 438k | _memory_used_counter = | 689 | 438k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 438k | _common_profile->add_info_string("IsColocate", | 691 | 438k | std::to_string(_parent->is_colocated_operator())); | 692 | 438k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 438k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 438k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 438k | return Status::OK(); | 696 | 438k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 369 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 369 | _operator_profile = | 641 | 369 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 369 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 369 | _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 | 369 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 369 | _operator_profile->add_child(_common_profile, true); | 650 | 369 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 369 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 369 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 369 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 369 | if constexpr (!is_fake_shared) { | 656 | 369 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 369 | 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 | 369 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 369 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 369 | _dependency = _shared_state->create_sink_dependency( | 673 | 369 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 369 | } | 675 | 369 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 369 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 369 | } | 678 | | | 679 | 369 | 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 | 369 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 369 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 369 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 369 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 369 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 369 | _memory_used_counter = | 689 | 369 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 369 | _common_profile->add_info_string("IsColocate", | 691 | 369 | std::to_string(_parent->is_colocated_operator())); | 692 | 369 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 369 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 369 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 369 | return Status::OK(); | 696 | 369 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 300 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 300 | _operator_profile = | 641 | 300 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 300 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 300 | _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 | 300 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 300 | _operator_profile->add_child(_common_profile, true); | 650 | 300 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 300 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 300 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 300 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 300 | if constexpr (!is_fake_shared) { | 656 | 300 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 300 | 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 | 300 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 300 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 300 | _dependency = _shared_state->create_sink_dependency( | 673 | 300 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 300 | } | 675 | 300 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 300 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 300 | } | 678 | | | 679 | 300 | 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 | 300 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 300 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 300 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 300 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 300 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 300 | _memory_used_counter = | 689 | 300 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 300 | _common_profile->add_info_string("IsColocate", | 691 | 300 | std::to_string(_parent->is_colocated_operator())); | 692 | 300 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 300 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 300 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 300 | return Status::OK(); | 696 | 300 | } |
|
697 | | |
698 | | template <typename SharedState> |
699 | 1.93M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
700 | 1.93M | if (_closed) { |
701 | 2 | return Status::OK(); |
702 | 2 | } |
703 | 1.93M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
704 | 1.33M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
705 | 1.33M | } |
706 | 1.93M | _closed = true; |
707 | 1.93M | return Status::OK(); |
708 | 1.93M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 184k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 184k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 184k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 184k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 184k | } | 706 | 184k | _closed = true; | 707 | 184k | return Status::OK(); | 708 | 184k | } |
_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 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 197k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 197k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 197k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 197k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 197k | } | 706 | 197k | _closed = true; | 707 | 197k | return Status::OK(); | 708 | 197k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 18 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 18 | if (_closed) { | 701 | 2 | return Status::OK(); | 702 | 2 | } | 703 | 16 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 16 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 16 | } | 706 | 16 | _closed = true; | 707 | 16 | return Status::OK(); | 708 | 18 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 6.22k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 6.22k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 6.22k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 6.22k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 6.22k | } | 706 | 6.22k | _closed = true; | 707 | 6.22k | return Status::OK(); | 708 | 6.22k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 9.90k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 9.90k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 9.90k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 9.90k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 9.90k | } | 706 | 9.90k | _closed = true; | 707 | 9.90k | return Status::OK(); | 708 | 9.90k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 121k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 121k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 121k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 121k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 121k | } | 706 | 121k | _closed = true; | 707 | 121k | return Status::OK(); | 708 | 121k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 269 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 269 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 269 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 269 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 269 | } | 706 | 269 | _closed = true; | 707 | 269 | return Status::OK(); | 708 | 269 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 604k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 604k | 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 | 604k | _closed = true; | 707 | 604k | return Status::OK(); | 708 | 604k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 8.55k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 8.55k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 8.55k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 8.55k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 8.55k | } | 706 | 8.55k | _closed = true; | 707 | 8.55k | return Status::OK(); | 708 | 8.55k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 275 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 275 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 275 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 275 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 275 | } | 706 | 275 | _closed = true; | 707 | 275 | return Status::OK(); | 708 | 275 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 2.63k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 2.63k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 2.63k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 2.63k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 2.63k | } | 706 | 2.63k | _closed = true; | 707 | 2.63k | return Status::OK(); | 708 | 2.63k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 11.8k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 11.8k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 11.8k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 11.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 11.8k | } | 706 | 11.8k | _closed = true; | 707 | 11.8k | return Status::OK(); | 708 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 346k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 346k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 346k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 346k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 346k | } | 706 | 346k | _closed = true; | 707 | 346k | return Status::OK(); | 708 | 346k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 440k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 440k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 440k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 440k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 440k | } | 706 | 440k | _closed = true; | 707 | 440k | return Status::OK(); | 708 | 440k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 366 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 366 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 366 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 366 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 366 | } | 706 | 366 | _closed = true; | 707 | 366 | return Status::OK(); | 708 | 366 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 300 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 300 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 300 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 300 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 300 | } | 706 | 300 | _closed = true; | 707 | 300 | return Status::OK(); | 708 | 300 | } |
|
709 | | |
710 | | template <typename LocalStateType> |
711 | 4.75k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
712 | 4.75k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
713 | 4.74k | return pull(state, block, eos); |
714 | 4.75k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 31 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 31 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 31 | return pull(state, block, eos); | 714 | 31 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 4.71k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 4.71k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 4.71k | return pull(state, block, eos); | 714 | 4.71k | } |
|
715 | | |
716 | | template <typename LocalStateType> |
717 | 826k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
718 | 826k | auto& local_state = get_local_state(state); |
719 | 826k | if (need_more_input_data(state)) { |
720 | 751k | local_state._child_block->clear_column_data( |
721 | 751k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
722 | 751k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
723 | 751k | state, local_state._child_block.get(), &local_state._child_eos)); |
724 | 751k | *eos = local_state._child_eos; |
725 | 751k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
726 | 71.7k | return Status::OK(); |
727 | 71.7k | } |
728 | 679k | { |
729 | 679k | SCOPED_TIMER(local_state.exec_time_counter()); |
730 | 679k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
731 | 679k | } |
732 | 679k | } |
733 | | |
734 | 754k | if (!need_more_input_data(state)) { |
735 | 715k | SCOPED_TIMER(local_state.exec_time_counter()); |
736 | 715k | bool new_eos = false; |
737 | 715k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
738 | 715k | if (new_eos) { |
739 | 641k | *eos = true; |
740 | 641k | } else if (!need_more_input_data(state)) { |
741 | 26.9k | *eos = false; |
742 | 26.9k | } |
743 | 715k | } |
744 | 754k | return Status::OK(); |
745 | 754k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 192k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 192k | auto& local_state = get_local_state(state); | 719 | 192k | if (need_more_input_data(state)) { | 720 | 131k | local_state._child_block->clear_column_data( | 721 | 131k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 131k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 131k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 131k | *eos = local_state._child_eos; | 725 | 131k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 30.1k | return Status::OK(); | 727 | 30.1k | } | 728 | 101k | { | 729 | 101k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 101k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 101k | } | 732 | 101k | } | 733 | | | 734 | 162k | if (!need_more_input_data(state)) { | 735 | 162k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 162k | bool new_eos = false; | 737 | 162k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 162k | if (new_eos) { | 739 | 112k | *eos = true; | 740 | 112k | } else if (!need_more_input_data(state)) { | 741 | 12.3k | *eos = false; | 742 | 12.3k | } | 743 | 162k | } | 744 | 162k | return Status::OK(); | 745 | 162k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 3.28k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 3.28k | auto& local_state = get_local_state(state); | 719 | 3.28k | if (need_more_input_data(state)) { | 720 | 2.00k | local_state._child_block->clear_column_data( | 721 | 2.00k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 2.00k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 2.00k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 2.00k | *eos = local_state._child_eos; | 725 | 2.00k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 509 | return Status::OK(); | 727 | 509 | } | 728 | 1.49k | { | 729 | 1.49k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 1.49k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 1.49k | } | 732 | 1.49k | } | 733 | | | 734 | 2.77k | if (!need_more_input_data(state)) { | 735 | 2.77k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 2.77k | bool new_eos = false; | 737 | 2.77k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 2.77k | if (new_eos) { | 739 | 1.08k | *eos = true; | 740 | 1.68k | } else if (!need_more_input_data(state)) { | 741 | 1.27k | *eos = false; | 742 | 1.27k | } | 743 | 2.77k | } | 744 | 2.77k | return Status::OK(); | 745 | 2.77k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 1.54k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 1.54k | auto& local_state = get_local_state(state); | 719 | 1.54k | if (need_more_input_data(state)) { | 720 | 1.54k | local_state._child_block->clear_column_data( | 721 | 1.54k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 1.54k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 1.54k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 1.54k | *eos = local_state._child_eos; | 725 | 1.54k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 627 | return Status::OK(); | 727 | 627 | } | 728 | 919 | { | 729 | 919 | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 919 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 919 | } | 732 | 919 | } | 733 | | | 734 | 919 | if (!need_more_input_data(state)) { | 735 | 919 | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 919 | bool new_eos = false; | 737 | 919 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 919 | if (new_eos) { | 739 | 662 | *eos = true; | 740 | 662 | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 919 | } | 744 | 919 | return Status::OK(); | 745 | 919 | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 18.6k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 18.6k | auto& local_state = get_local_state(state); | 719 | 18.6k | if (need_more_input_data(state)) { | 720 | 18.5k | local_state._child_block->clear_column_data( | 721 | 18.5k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 18.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 18.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 18.5k | *eos = local_state._child_eos; | 725 | 18.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 6.05k | return Status::OK(); | 727 | 6.05k | } | 728 | 12.5k | { | 729 | 12.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 12.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 12.5k | } | 732 | 12.5k | } | 733 | | | 734 | 12.5k | if (!need_more_input_data(state)) { | 735 | 6.89k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 6.89k | bool new_eos = false; | 737 | 6.89k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 6.89k | if (new_eos) { | 739 | 6.78k | *eos = true; | 740 | 6.78k | } else if (!need_more_input_data(state)) { | 741 | 22 | *eos = false; | 742 | 22 | } | 743 | 6.89k | } | 744 | 12.5k | return Status::OK(); | 745 | 12.5k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 576k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 576k | auto& local_state = get_local_state(state); | 719 | 577k | if (need_more_input_data(state)) { | 720 | 577k | local_state._child_block->clear_column_data( | 721 | 577k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 577k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 577k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 577k | *eos = local_state._child_eos; | 725 | 577k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 32.2k | return Status::OK(); | 727 | 32.2k | } | 728 | 544k | { | 729 | 544k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 544k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 544k | } | 732 | 544k | } | 733 | | | 734 | 544k | if (!need_more_input_data(state)) { | 735 | 511k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 511k | bool new_eos = false; | 737 | 511k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 511k | if (new_eos) { | 739 | 509k | *eos = true; | 740 | 509k | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 511k | } | 744 | 544k | return Status::OK(); | 745 | 544k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 26.9k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 26.9k | auto& local_state = get_local_state(state); | 719 | 26.9k | if (need_more_input_data(state)) { | 720 | 14.0k | local_state._child_block->clear_column_data( | 721 | 14.0k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 14.0k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 14.0k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 14.0k | *eos = local_state._child_eos; | 725 | 14.0k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 1.62k | return Status::OK(); | 727 | 1.62k | } | 728 | 12.3k | { | 729 | 12.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 12.3k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 12.3k | } | 732 | 12.3k | } | 733 | | | 734 | 25.2k | if (!need_more_input_data(state)) { | 735 | 24.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 24.5k | bool new_eos = false; | 737 | 24.5k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 24.5k | if (new_eos) { | 739 | 6.23k | *eos = true; | 740 | 18.3k | } else if (!need_more_input_data(state)) { | 741 | 12.8k | *eos = false; | 742 | 12.8k | } | 743 | 24.5k | } | 744 | 25.2k | return Status::OK(); | 745 | 25.2k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 6.92k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 6.92k | auto& local_state = get_local_state(state); | 719 | 6.92k | if (need_more_input_data(state)) { | 720 | 6.55k | local_state._child_block->clear_column_data( | 721 | 6.55k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 6.55k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 6.55k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 6.55k | *eos = local_state._child_eos; | 725 | 6.55k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 574 | return Status::OK(); | 727 | 574 | } | 728 | 5.98k | { | 729 | 5.98k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 5.98k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 5.98k | } | 732 | 5.98k | } | 733 | | | 734 | 6.35k | if (!need_more_input_data(state)) { | 735 | 6.35k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 6.35k | bool new_eos = false; | 737 | 6.35k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 6.35k | if (new_eos) { | 739 | 4.46k | *eos = true; | 740 | 4.46k | } else if (!need_more_input_data(state)) { | 741 | 374 | *eos = false; | 742 | 374 | } | 743 | 6.35k | } | 744 | 6.35k | return Status::OK(); | 745 | 6.35k | } |
|
746 | | |
747 | | template <typename Writer, typename Parent> |
748 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
749 | 66.2k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
750 | 66.2k | RETURN_IF_ERROR(Base::init(state, info)); |
751 | 66.2k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
752 | 66.2k | "AsyncWriterDependency", true); |
753 | 66.2k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
754 | 66.2k | _finish_dependency)); |
755 | | |
756 | 66.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
757 | 66.2k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
758 | 66.2k | return Status::OK(); |
759 | 66.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 341 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 341 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 341 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 341 | "AsyncWriterDependency", true); | 753 | 341 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 341 | _finish_dependency)); | 755 | | | 756 | 341 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 341 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 341 | return Status::OK(); | 759 | 341 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 65.8k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 65.8k | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 65.8k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 65.8k | "AsyncWriterDependency", true); | 753 | 65.8k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 65.8k | _finish_dependency)); | 755 | | | 756 | 65.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 65.8k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 65.8k | return Status::OK(); | 759 | 65.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 4 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 4 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 4 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 4 | "AsyncWriterDependency", true); | 753 | 4 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 4 | _finish_dependency)); | 755 | | | 756 | 4 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 4 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 4 | return Status::OK(); | 759 | 4 | } |
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 | 66.7k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
764 | 66.7k | RETURN_IF_ERROR(Base::open(state)); |
765 | 66.7k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
766 | 457k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
767 | 391k | RETURN_IF_ERROR( |
768 | 391k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
769 | 391k | } |
770 | 66.7k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
771 | 66.7k | return Status::OK(); |
772 | 66.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 341 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 341 | RETURN_IF_ERROR(Base::open(state)); | 765 | 341 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 1.78k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 1.44k | RETURN_IF_ERROR( | 768 | 1.44k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 1.44k | } | 770 | 341 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 341 | return Status::OK(); | 772 | 341 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 66.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 66.3k | RETURN_IF_ERROR(Base::open(state)); | 765 | 66.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 456k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 389k | RETURN_IF_ERROR( | 768 | 389k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 389k | } | 770 | 66.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 66.3k | return Status::OK(); | 772 | 66.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 4 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 4 | RETURN_IF_ERROR(Base::open(state)); | 765 | 4 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 72 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 68 | RETURN_IF_ERROR( | 768 | 68 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 68 | } | 770 | 4 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 4 | return Status::OK(); | 772 | 4 | } |
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 | 78.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
777 | 78.8k | return _writer->sink(block, eos); |
778 | 78.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 1.17k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 1.17k | return _writer->sink(block, eos); | 778 | 1.17k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 77.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 77.6k | return _writer->sink(block, eos); | 778 | 77.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 4 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 4 | return _writer->sink(block, eos); | 778 | 4 | } |
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 | 66.8k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
783 | 66.8k | if (_closed) { |
784 | 0 | return Status::OK(); |
785 | 0 | } |
786 | 66.8k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
787 | 66.8k | 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 | 66.8k | if (_writer) { |
790 | 66.8k | Status st = _writer->get_writer_status(); |
791 | 66.8k | if (exec_status.ok()) { |
792 | 66.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
793 | 66.7k | : Status::Cancelled("force close")); |
794 | 66.7k | } else { |
795 | 130 | _writer->force_close(exec_status); |
796 | 130 | } |
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 | 66.8k | RETURN_IF_ERROR(st); |
801 | 66.8k | } |
802 | 66.7k | return Base::close(state, exec_status); |
803 | 66.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 329 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 329 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 329 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 329 | 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 | 329 | if (_writer) { | 790 | 329 | Status st = _writer->get_writer_status(); | 791 | 329 | if (exec_status.ok()) { | 792 | 329 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 329 | : Status::Cancelled("force close")); | 794 | 329 | } 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 | 329 | RETURN_IF_ERROR(st); | 801 | 329 | } | 802 | 329 | return Base::close(state, exec_status); | 803 | 329 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 66.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 66.4k | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 66.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 66.4k | 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 | 66.5k | if (_writer) { | 790 | 66.5k | Status st = _writer->get_writer_status(); | 791 | 66.5k | if (exec_status.ok()) { | 792 | 66.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 66.3k | : Status::Cancelled("force close")); | 794 | 66.3k | } else { | 795 | 130 | _writer->force_close(exec_status); | 796 | 130 | } | 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 | 66.5k | RETURN_IF_ERROR(st); | 801 | 66.5k | } | 802 | 66.4k | return Base::close(state, exec_status); | 803 | 66.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 4 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 4 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 4 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 4 | 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 | 4 | if (_writer) { | 790 | 4 | Status st = _writer->get_writer_status(); | 791 | 4 | if (exec_status.ok()) { | 792 | 4 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 4 | : Status::Cancelled("force close")); | 794 | 4 | } 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 | 4 | RETURN_IF_ERROR(st); | 801 | 4 | } | 802 | 4 | return Base::close(state, exec_status); | 803 | 4 | } |
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 |