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.51M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
116 | 2.51M | if (_parent->nereids_id() == -1) { |
117 | 1.30M | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
118 | 1.30M | } else { |
119 | 1.20M | return fmt::format("(nereids_id={})" + operator_name_suffix, |
120 | 1.20M | std::to_string(_parent->nereids_id()), |
121 | 1.20M | std::to_string(_parent->node_id())); |
122 | 1.20M | } |
123 | 2.51M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 142k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 142k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 142k | } else { | 119 | 142k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 142k | std::to_string(_parent->nereids_id()), | 121 | 142k | std::to_string(_parent->node_id())); | 122 | 142k | } | 123 | 142k | } |
_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 | 262k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 262k | if (_parent->nereids_id() == -1) { | 117 | 12 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 262k | } else { | 119 | 262k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 262k | std::to_string(_parent->nereids_id()), | 121 | 262k | std::to_string(_parent->node_id())); | 122 | 262k | } | 123 | 262k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 20 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 20 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 20 | } else { | 119 | 20 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 20 | std::to_string(_parent->nereids_id()), | 121 | 20 | std::to_string(_parent->node_id())); | 122 | 20 | } | 123 | 20 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 10.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 10.6k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 10.6k | } else { | 119 | 10.6k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 10.6k | std::to_string(_parent->nereids_id()), | 121 | 10.6k | std::to_string(_parent->node_id())); | 122 | 10.6k | } | 123 | 10.6k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 8.81k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 8.81k | if (_parent->nereids_id() == -1) { | 117 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 8.80k | } else { | 119 | 8.80k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 8.80k | std::to_string(_parent->nereids_id()), | 121 | 8.80k | std::to_string(_parent->node_id())); | 122 | 8.80k | } | 123 | 8.81k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 164k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 164k | if (_parent->nereids_id() == -1) { | 117 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 164k | } else { | 119 | 164k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 164k | std::to_string(_parent->nereids_id()), | 121 | 164k | std::to_string(_parent->node_id())); | 122 | 164k | } | 123 | 164k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 1.48k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 1.48k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 1.48k | } else { | 119 | 1.48k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 1.48k | std::to_string(_parent->nereids_id()), | 121 | 1.48k | std::to_string(_parent->node_id())); | 122 | 1.48k | } | 123 | 1.48k | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 1.05M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 1.05M | if (_parent->nereids_id() == -1) { | 117 | 502k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 553k | } else { | 119 | 553k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 553k | std::to_string(_parent->nereids_id()), | 121 | 553k | std::to_string(_parent->node_id())); | 122 | 553k | } | 123 | 1.05M | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 55.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 55.8k | if (_parent->nereids_id() == -1) { | 117 | 2 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 55.8k | } else { | 119 | 55.8k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 55.8k | std::to_string(_parent->nereids_id()), | 121 | 55.8k | std::to_string(_parent->node_id())); | 122 | 55.8k | } | 123 | 55.8k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 127 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 127 | if (_parent->nereids_id() == -1) { | 117 | 127 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 127 | } 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 | 127 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 12.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 12.8k | if (_parent->nereids_id() == -1) { | 117 | 12.8k | 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 | 12.8k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 495 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 495 | if (_parent->nereids_id() == -1) { | 117 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 393 | } else { | 119 | 393 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 393 | std::to_string(_parent->nereids_id()), | 121 | 393 | std::to_string(_parent->node_id())); | 122 | 393 | } | 123 | 495 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 5.42k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 5.42k | if (_parent->nereids_id() == -1) { | 117 | 10 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 5.41k | } else { | 119 | 5.41k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 5.41k | std::to_string(_parent->nereids_id()), | 121 | 5.41k | std::to_string(_parent->node_id())); | 122 | 5.41k | } | 123 | 5.42k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 789k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 790k | if (_parent->nereids_id() == -1) { | 117 | 790k | 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 | 789k | } |
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.56M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
127 | 1.56M | if (_parent->nereids_id() == -1) { |
128 | 912k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
129 | 912k | } else { |
130 | 651k | return fmt::format("(nereids_id={})" + operator_name_suffix, |
131 | 651k | std::to_string(_parent->nereids_id()), |
132 | 651k | std::to_string(_parent->node_id())); |
133 | 651k | } |
134 | 1.56M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 190k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 190k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 190k | } else { | 130 | 190k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 190k | std::to_string(_parent->nereids_id()), | 132 | 190k | std::to_string(_parent->node_id())); | 133 | 190k | } | 134 | 190k | } |
_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 | 263k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 263k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 263k | } else { | 130 | 263k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 263k | std::to_string(_parent->nereids_id()), | 132 | 263k | std::to_string(_parent->node_id())); | 133 | 263k | } | 134 | 263k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 26 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 26 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 26 | } else { | 130 | 26 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 26 | std::to_string(_parent->nereids_id()), | 132 | 26 | std::to_string(_parent->node_id())); | 133 | 26 | } | 134 | 26 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 10.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 10.7k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 10.7k | } else { | 130 | 10.7k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 10.7k | std::to_string(_parent->nereids_id()), | 132 | 10.7k | std::to_string(_parent->node_id())); | 133 | 10.7k | } | 134 | 10.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 8.83k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 8.83k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 8.82k | } else { | 130 | 8.82k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 8.82k | std::to_string(_parent->nereids_id()), | 132 | 8.82k | std::to_string(_parent->node_id())); | 133 | 8.82k | } | 134 | 8.83k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 165k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 165k | if (_parent->nereids_id() == -1) { | 128 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 165k | } else { | 130 | 165k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 165k | std::to_string(_parent->nereids_id()), | 132 | 165k | std::to_string(_parent->node_id())); | 133 | 165k | } | 134 | 165k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 1.49k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 1.49k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 1.49k | } else { | 130 | 1.49k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 1.49k | std::to_string(_parent->nereids_id()), | 132 | 1.49k | std::to_string(_parent->node_id())); | 133 | 1.49k | } | 134 | 1.49k | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 101 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 101 | if (_parent->nereids_id() == -1) { | 128 | 101 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 101 | } 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 | 101 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 9.66k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 9.66k | if (_parent->nereids_id() == -1) { | 128 | 3 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 9.66k | } else { | 130 | 9.66k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 9.66k | std::to_string(_parent->nereids_id()), | 132 | 9.66k | std::to_string(_parent->node_id())); | 133 | 9.66k | } | 134 | 9.66k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 495 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 495 | if (_parent->nereids_id() == -1) { | 128 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 393 | } else { | 130 | 393 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 393 | std::to_string(_parent->nereids_id()), | 132 | 393 | std::to_string(_parent->node_id())); | 133 | 393 | } | 134 | 495 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 13.1k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 13.1k | if (_parent->nereids_id() == -1) { | 128 | 13.1k | 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 | 13.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 361k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 362k | if (_parent->nereids_id() == -1) { | 128 | 362k | 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 | 361k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 536k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 536k | if (_parent->nereids_id() == -1) { | 128 | 536k | 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 | 536k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 128 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 128 | if (_parent->nereids_id() == -1) { | 128 | 128 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 128 | } 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 | 128 | } |
_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 | 32.5k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
138 | 32.5k | if (_terminated) { |
139 | 0 | return Status::OK(); |
140 | 0 | } |
141 | 32.5k | _terminated = true; |
142 | 32.5k | return Status::OK(); |
143 | 32.5k | } _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 | 1.38k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 1.38k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 1.38k | _terminated = true; | 142 | 1.38k | return Status::OK(); | 143 | 1.38k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 12 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 12 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 12 | _terminated = true; | 142 | 12 | return Status::OK(); | 143 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 1 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 1 | _terminated = true; | 142 | 1 | return Status::OK(); | 143 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 3.99k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 3.99k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 3.99k | _terminated = true; | 142 | 3.99k | return Status::OK(); | 143 | 3.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_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_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2.64k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2.64k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2.64k | _terminated = true; | 142 | 2.64k | return Status::OK(); | 143 | 2.64k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 20 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 20 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 20 | _terminated = true; | 142 | 20 | return Status::OK(); | 143 | 20 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 1 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 1 | _terminated = true; | 142 | 1 | return Status::OK(); | 143 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 119 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 119 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 119 | _terminated = true; | 142 | 119 | return Status::OK(); | 143 | 119 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 1 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 1 | _terminated = true; | 142 | 1 | return Status::OK(); | 143 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 237 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 237 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 237 | _terminated = true; | 142 | 237 | return Status::OK(); | 143 | 237 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 137 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 137 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 137 | _terminated = true; | 142 | 137 | return Status::OK(); | 143 | 137 | } |
|
144 | | |
145 | 851k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
146 | 851k | return _child && _child->is_serial_operator() && !is_source() |
147 | 851k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
148 | 851k | : DataDistribution(ExchangeType::NOOP); |
149 | 851k | } |
150 | | |
151 | 80.1k | const RowDescriptor& OperatorBase::row_desc() const { |
152 | 80.1k | return _child->row_desc(); |
153 | 80.1k | } |
154 | | |
155 | | template <typename SharedStateArg> |
156 | 56.5k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
157 | 56.5k | fmt::memory_buffer debug_string_buffer; |
158 | 56.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
159 | 56.5k | return fmt::to_string(debug_string_buffer); |
160 | 56.5k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 3 | fmt::memory_buffer debug_string_buffer; | 158 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 3 | return fmt::to_string(debug_string_buffer); | 160 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 15 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 15 | fmt::memory_buffer debug_string_buffer; | 158 | 15 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 15 | return fmt::to_string(debug_string_buffer); | 160 | 15 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 31 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 31 | fmt::memory_buffer debug_string_buffer; | 158 | 31 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 31 | return fmt::to_string(debug_string_buffer); | 160 | 31 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 56.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 56.0k | fmt::memory_buffer debug_string_buffer; | 158 | 56.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 56.0k | return fmt::to_string(debug_string_buffer); | 160 | 56.0k | } |
_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 | 496 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 496 | fmt::memory_buffer debug_string_buffer; | 158 | 496 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 496 | return fmt::to_string(debug_string_buffer); | 160 | 496 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
161 | | |
162 | | template <typename SharedStateArg> |
163 | 56.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
164 | 56.5k | fmt::memory_buffer debug_string_buffer; |
165 | 56.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
166 | 56.5k | return fmt::to_string(debug_string_buffer); |
167 | 56.5k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 30 | fmt::memory_buffer debug_string_buffer; | 165 | 30 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 30 | return fmt::to_string(debug_string_buffer); | 167 | 30 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 511 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 511 | fmt::memory_buffer debug_string_buffer; | 165 | 511 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 511 | return fmt::to_string(debug_string_buffer); | 167 | 511 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 56.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 56.0k | fmt::memory_buffer debug_string_buffer; | 165 | 56.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 56.0k | return fmt::to_string(debug_string_buffer); | 167 | 56.0k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
168 | | |
169 | 57.0k | std::string OperatorXBase::debug_string(int indentation_level) const { |
170 | 57.0k | fmt::memory_buffer debug_string_buffer; |
171 | 57.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
172 | 57.0k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
173 | 57.0k | _is_serial_operator); |
174 | 57.0k | return fmt::to_string(debug_string_buffer); |
175 | 57.0k | } |
176 | | |
177 | 56.5k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
178 | 56.5k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
179 | 56.5k | } |
180 | | |
181 | 742k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
182 | 742k | std::string node_name = print_plan_node_type(tnode.node_type); |
183 | 742k | _nereids_id = tnode.nereids_id; |
184 | 742k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
185 | 3.03k | if (!tnode.__isset.output_tuple_id) { |
186 | 0 | return Status::InternalError("no final output tuple id"); |
187 | 0 | } |
188 | 3.03k | if (tnode.intermediate_output_tuple_id_list.size() != |
189 | 3.03k | 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 | 3.03k | } |
197 | 742k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
198 | 742k | _op_name = substr + "_OPERATOR"; |
199 | | |
200 | 742k | if (tnode.__isset.vconjunct) { |
201 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
202 | 742k | } else if (tnode.__isset.conjuncts) { |
203 | 443k | for (const auto& conjunct : tnode.conjuncts) { |
204 | 443k | VExprContextSPtr context; |
205 | 443k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
206 | 443k | _conjuncts.emplace_back(context); |
207 | 443k | } |
208 | 141k | } |
209 | | |
210 | | // create the projections expr |
211 | 742k | if (tnode.__isset.projections) { |
212 | 319k | DCHECK(tnode.__isset.output_tuple_id); |
213 | 319k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
214 | 319k | } |
215 | 742k | if (!tnode.intermediate_projections_list.empty()) { |
216 | 3.03k | DCHECK(tnode.__isset.projections) << "no final projections"; |
217 | 3.03k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
218 | 4.13k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
219 | 4.13k | VExprContextSPtrs projections; |
220 | 4.13k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
221 | 4.13k | _intermediate_projections.push_back(projections); |
222 | 4.13k | } |
223 | 3.03k | } |
224 | 742k | return Status::OK(); |
225 | 742k | } |
226 | | |
227 | 775k | Status OperatorXBase::prepare(RuntimeState* state) { |
228 | 775k | for (auto& conjunct : _conjuncts) { |
229 | 443k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
230 | 443k | } |
231 | 775k | if (state->enable_adjust_conjunct_order_by_cost()) { |
232 | 725k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
233 | 602k | return a->execute_cost() < b->execute_cost(); |
234 | 602k | }); |
235 | 725k | }; |
236 | | |
237 | 779k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
238 | 4.13k | RETURN_IF_ERROR( |
239 | 4.13k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
240 | 4.13k | } |
241 | 775k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
242 | | |
243 | 775k | if (has_output_row_desc()) { |
244 | 319k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
245 | 319k | } |
246 | | |
247 | 775k | for (auto& conjunct : _conjuncts) { |
248 | 443k | RETURN_IF_ERROR(conjunct->open(state)); |
249 | 443k | } |
250 | 775k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
251 | 775k | for (auto& projections : _intermediate_projections) { |
252 | 4.13k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
253 | 4.13k | } |
254 | 775k | if (_child && !is_source()) { |
255 | 145k | RETURN_IF_ERROR(_child->prepare(state)); |
256 | 145k | } |
257 | | |
258 | 775k | if (VExpr::contains_blockable_function(_conjuncts) || |
259 | 775k | VExpr::contains_blockable_function(_projections)) { |
260 | 0 | _blockable = true; |
261 | 0 | } |
262 | | |
263 | 775k | return Status::OK(); |
264 | 775k | } |
265 | | |
266 | 9.92k | Status OperatorXBase::terminate(RuntimeState* state) { |
267 | 9.92k | if (_child && !is_source()) { |
268 | 1.33k | RETURN_IF_ERROR(_child->terminate(state)); |
269 | 1.33k | } |
270 | 9.92k | auto result = state->get_local_state_result(operator_id()); |
271 | 9.92k | if (!result) { |
272 | 0 | return result.error(); |
273 | 0 | } |
274 | 9.92k | return result.value()->terminate(state); |
275 | 9.92k | } |
276 | | |
277 | 7.26M | Status OperatorXBase::close(RuntimeState* state) { |
278 | 7.26M | if (_child && !is_source()) { |
279 | 1.45M | RETURN_IF_ERROR(_child->close(state)); |
280 | 1.45M | } |
281 | 7.26M | auto result = state->get_local_state_result(operator_id()); |
282 | 7.26M | if (!result) { |
283 | 0 | return result.error(); |
284 | 0 | } |
285 | 7.26M | return result.value()->close(state); |
286 | 7.26M | } |
287 | | |
288 | 29.9M | void PipelineXLocalStateBase::clear_origin_block() { |
289 | 29.9M | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
290 | 29.9M | } |
291 | | |
292 | 30.2M | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
293 | 30.2M | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
294 | | |
295 | 30.2M | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
296 | 30.2M | return Status::OK(); |
297 | 30.2M | } |
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 | 29.9M | Block* output_block) const { |
306 | 29.9M | auto* local_state = state->get_local_state(operator_id()); |
307 | 29.9M | SCOPED_TIMER(local_state->exec_time_counter()); |
308 | 29.9M | SCOPED_TIMER(local_state->_projection_timer); |
309 | 29.9M | const size_t rows = origin_block->rows(); |
310 | 29.9M | if (rows == 0) { |
311 | 29.8M | return Status::OK(); |
312 | 29.8M | } |
313 | 133k | Block input_block = *origin_block; |
314 | | |
315 | 133k | size_t bytes_usage = 0; |
316 | 133k | ColumnsWithTypeAndName new_columns; |
317 | 133k | for (const auto& projections : local_state->_intermediate_projections) { |
318 | 1.20k | if (projections.empty()) { |
319 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
320 | 0 | node_id()); |
321 | 0 | } |
322 | 1.20k | new_columns.resize(projections.size()); |
323 | 8.32k | for (int i = 0; i < projections.size(); i++) { |
324 | 7.12k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
325 | 7.12k | 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 | 7.12k | } |
333 | 1.20k | Block tmp_block {new_columns}; |
334 | 1.20k | bytes_usage += tmp_block.allocated_bytes(); |
335 | 1.20k | input_block.swap(tmp_block); |
336 | 1.20k | } |
337 | | |
338 | 133k | 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 | 722k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
345 | 722k | 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 | 722k | } else { |
355 | 722k | if (_keep_origin || !from->is_exclusive()) { |
356 | 714k | to->insert_range_from(*from, 0, rows); |
357 | 714k | bytes_usage += from->allocated_bytes(); |
358 | 714k | } else { |
359 | 7.89k | to = from->assume_mutable(); |
360 | 7.89k | } |
361 | 722k | } |
362 | 722k | }; |
363 | | |
364 | 133k | MutableBlock mutable_block = |
365 | 133k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
366 | 133k | if (rows != 0) { |
367 | 133k | auto& mutable_columns = mutable_block.mutable_columns(); |
368 | 133k | const size_t origin_columns_count = input_block.columns(); |
369 | 133k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 856k | for (int i = 0; i < mutable_columns.size(); ++i) { |
371 | 722k | auto result_column_id = -1; |
372 | 722k | ColumnPtr column_ptr; |
373 | 722k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
374 | 722k | 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 | 722k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
381 | 722k | if (result_column_id >= origin_columns_count) { |
382 | 722k | bytes_usage += column_ptr->allocated_bytes(); |
383 | 722k | } |
384 | 722k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
385 | 722k | } |
386 | 133k | DCHECK(mutable_block.rows() == rows); |
387 | 133k | output_block->set_columns(std::move(mutable_columns)); |
388 | 133k | } |
389 | | |
390 | 133k | local_state->_estimate_memory_usage += bytes_usage; |
391 | | |
392 | 133k | return Status::OK(); |
393 | 133k | } |
394 | | |
395 | 33.9M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
396 | 33.9M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
397 | 33.9M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
398 | 33.9M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
399 | 33.9M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
400 | 33.9M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
401 | 33.9M | if (_debug_point_count++ % 2 == 0) { |
402 | 33.9M | return Status::OK(); |
403 | 33.9M | } |
404 | 33.9M | } |
405 | 33.9M | }); |
406 | | |
407 | 33.9M | Status status; |
408 | 33.9M | auto* local_state = state->get_local_state(operator_id()); |
409 | 33.9M | Defer defer([&]() { |
410 | 33.9M | if (status.ok()) { |
411 | 33.9M | if (auto rows = block->rows()) { |
412 | 916k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
413 | 916k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
414 | 916k | } |
415 | 33.9M | } |
416 | 33.9M | }); |
417 | 33.9M | if (_output_row_descriptor) { |
418 | 29.9M | local_state->clear_origin_block(); |
419 | 29.9M | status = get_block(state, &local_state->_origin_block, eos); |
420 | 29.9M | if (UNLIKELY(!status.ok())) { |
421 | 14 | return status; |
422 | 14 | } |
423 | 29.9M | status = do_projections(state, &local_state->_origin_block, block); |
424 | 29.9M | return status; |
425 | 29.9M | } |
426 | 4.01M | status = get_block(state, block, eos); |
427 | 4.01M | RETURN_IF_ERROR(block->check_type_and_column()); |
428 | 4.01M | return status; |
429 | 4.01M | } |
430 | | |
431 | 32.7M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
432 | 32.7M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
433 | 5.02k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
434 | 5.02k | *eos = true; |
435 | 5.02k | } |
436 | | |
437 | 32.7M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
438 | 32.7M | auto op_name = to_lower(_parent->_op_name); |
439 | 32.7M | auto arg_op_name = dp->param<std::string>("op_name"); |
440 | 32.7M | arg_op_name = to_lower(arg_op_name); |
441 | | |
442 | 32.7M | if (op_name == arg_op_name) { |
443 | 32.7M | *eos = true; |
444 | 32.7M | } |
445 | 32.7M | }); |
446 | | |
447 | 32.7M | if (auto rows = block->rows()) { |
448 | 830k | _num_rows_returned += rows; |
449 | 830k | } |
450 | 32.7M | } |
451 | | |
452 | 32.5k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
453 | 32.5k | auto result = state->get_sink_local_state_result(); |
454 | 32.5k | if (!result) { |
455 | 0 | return result.error(); |
456 | 0 | } |
457 | 32.5k | return result.value()->terminate(state); |
458 | 32.5k | } |
459 | | |
460 | 57.0k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
461 | 57.0k | fmt::memory_buffer debug_string_buffer; |
462 | | |
463 | 57.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
464 | 57.0k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
465 | 57.0k | return fmt::to_string(debug_string_buffer); |
466 | 57.0k | } |
467 | | |
468 | 56.5k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
469 | 56.5k | return state->get_sink_local_state()->debug_string(indentation_level); |
470 | 56.5k | } |
471 | | |
472 | 464k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
473 | 464k | std::string op_name = "UNKNOWN_SINK"; |
474 | 464k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
475 | | |
476 | 464k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
477 | 463k | op_name = it->second; |
478 | 463k | } |
479 | 464k | _name = op_name + "_OPERATOR"; |
480 | 464k | return Status::OK(); |
481 | 464k | } |
482 | | |
483 | 211k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
484 | 211k | std::string op_name = print_plan_node_type(tnode.node_type); |
485 | 211k | _nereids_id = tnode.nereids_id; |
486 | 211k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
487 | 211k | _name = substr + "_SINK_OPERATOR"; |
488 | 211k | return Status::OK(); |
489 | 211k | } |
490 | | |
491 | | template <typename LocalStateType> |
492 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
493 | 2.30M | LocalSinkStateInfo& info) { |
494 | 2.30M | auto local_state = LocalStateType::create_unique(this, state); |
495 | 2.30M | RETURN_IF_ERROR(local_state->init(state, info)); |
496 | 2.30M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
497 | 2.30M | return Status::OK(); |
498 | 2.30M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 190k | LocalSinkStateInfo& info) { | 494 | 190k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 190k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 190k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 190k | return Status::OK(); | 498 | 190k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 457k | LocalSinkStateInfo& info) { | 494 | 457k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 457k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 457k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 457k | return Status::OK(); | 498 | 457k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 80 | LocalSinkStateInfo& info) { | 494 | 80 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 80 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 80 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 80 | return Status::OK(); | 498 | 80 | } |
_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 | 494 | LocalSinkStateInfo& info) { | 494 | 494 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 494 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 494 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 494 | return Status::OK(); | 498 | 494 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 65.7k | LocalSinkStateInfo& info) { | 494 | 65.7k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 65.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 65.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 65.7k | return Status::OK(); | 498 | 65.7k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 5.74k | LocalSinkStateInfo& info) { | 494 | 5.74k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 5.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 5.74k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 5.74k | return Status::OK(); | 498 | 5.74k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 5.22k | LocalSinkStateInfo& info) { | 494 | 5.22k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 5.22k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 5.22k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 5.22k | return Status::OK(); | 498 | 5.22k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 156 | LocalSinkStateInfo& info) { | 494 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 156 | return Status::OK(); | 498 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 3.22k | LocalSinkStateInfo& info) { | 494 | 3.22k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 3.22k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 3.22k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 3.22k | return Status::OK(); | 498 | 3.22k | } |
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 | 8.83k | LocalSinkStateInfo& info) { | 494 | 8.83k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 8.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 8.83k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 8.83k | return Status::OK(); | 498 | 8.83k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 98 | LocalSinkStateInfo& info) { | 494 | 98 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 98 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 98 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 98 | return Status::OK(); | 498 | 98 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 264k | LocalSinkStateInfo& info) { | 494 | 264k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 264k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 264k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 264k | return Status::OK(); | 498 | 264k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 26 | LocalSinkStateInfo& info) { | 494 | 26 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 26 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 26 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 26 | return Status::OK(); | 498 | 26 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 362k | LocalSinkStateInfo& info) { | 494 | 362k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 362k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 362k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 362k | return Status::OK(); | 498 | 362k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 165k | LocalSinkStateInfo& info) { | 494 | 165k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 165k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 165k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 165k | return Status::OK(); | 498 | 165k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 1.49k | LocalSinkStateInfo& info) { | 494 | 1.49k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 1.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 1.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 1.49k | return Status::OK(); | 498 | 1.49k | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 733k | LocalSinkStateInfo& info) { | 494 | 733k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 733k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 733k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 733k | return Status::OK(); | 498 | 733k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 10.7k | LocalSinkStateInfo& info) { | 494 | 10.7k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 10.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 10.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 10.7k | return Status::OK(); | 498 | 10.7k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 9.66k | LocalSinkStateInfo& info) { | 494 | 9.66k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 9.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 9.66k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 9.66k | return Status::OK(); | 498 | 9.66k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 4.52k | LocalSinkStateInfo& info) { | 494 | 4.52k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 4.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 4.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 4.52k | return Status::OK(); | 498 | 4.52k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 393 | LocalSinkStateInfo& info) { | 494 | 393 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 393 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 393 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 393 | return Status::OK(); | 498 | 393 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 5.00k | LocalSinkStateInfo& info) { | 494 | 5.00k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 5.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 5.00k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 5.00k | return Status::OK(); | 498 | 5.00k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.68k | LocalSinkStateInfo& info) { | 494 | 2.68k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.68k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.68k | return Status::OK(); | 498 | 2.68k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.79k | LocalSinkStateInfo& info) { | 494 | 2.79k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.79k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.79k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.79k | return Status::OK(); | 498 | 2.79k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.61k | LocalSinkStateInfo& info) { | 494 | 2.61k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.61k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.61k | return Status::OK(); | 498 | 2.61k | } |
_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 | 165 | LocalSinkStateInfo& info) { | 494 | 165 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 165 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 165 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 165 | return Status::OK(); | 498 | 165 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 124 | LocalSinkStateInfo& info) { | 494 | 124 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 124 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 124 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 124 | return Status::OK(); | 498 | 124 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 104 | LocalSinkStateInfo& info) { | 494 | 104 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 104 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 104 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 104 | return Status::OK(); | 498 | 104 | } |
_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.90M | 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.90M | } else { |
509 | 1.90M | auto ss = LocalStateType::SharedStateType::create_shared(); |
510 | 1.90M | ss->id = operator_id(); |
511 | 1.90M | for (auto& dest : dests_id()) { |
512 | 1.89M | ss->related_op_ids.insert(dest); |
513 | 1.89M | } |
514 | 1.90M | return ss; |
515 | 1.90M | } |
516 | 1.90M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 171k | 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 | 171k | } else { | 509 | 171k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 171k | ss->id = operator_id(); | 511 | 171k | for (auto& dest : dests_id()) { | 512 | 170k | ss->related_op_ids.insert(dest); | 513 | 170k | } | 514 | 171k | return ss; | 515 | 171k | } | 516 | 171k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 458k | 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 | 458k | } else { | 509 | 458k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 458k | ss->id = operator_id(); | 511 | 458k | for (auto& dest : dests_id()) { | 512 | 457k | ss->related_op_ids.insert(dest); | 513 | 457k | } | 514 | 458k | return ss; | 515 | 458k | } | 516 | 458k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 80 | 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 | 80 | } else { | 509 | 80 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 80 | ss->id = operator_id(); | 511 | 80 | for (auto& dest : dests_id()) { | 512 | 80 | ss->related_op_ids.insert(dest); | 513 | 80 | } | 514 | 80 | return ss; | 515 | 80 | } | 516 | 80 | } |
_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 | 495 | 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 | 495 | } else { | 509 | 495 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 495 | ss->id = operator_id(); | 511 | 495 | for (auto& dest : dests_id()) { | 512 | 495 | ss->related_op_ids.insert(dest); | 513 | 495 | } | 514 | 495 | return ss; | 515 | 495 | } | 516 | 495 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 64.9k | 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 | 64.9k | } else { | 509 | 64.9k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 64.9k | ss->id = operator_id(); | 511 | 64.9k | for (auto& dest : dests_id()) { | 512 | 64.7k | ss->related_op_ids.insert(dest); | 513 | 64.7k | } | 514 | 64.9k | return ss; | 515 | 64.9k | } | 516 | 64.9k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 5.18k | 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 | 5.18k | } else { | 509 | 5.18k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 5.18k | ss->id = operator_id(); | 511 | 5.18k | for (auto& dest : dests_id()) { | 512 | 5.18k | ss->related_op_ids.insert(dest); | 513 | 5.18k | } | 514 | 5.18k | return ss; | 515 | 5.18k | } | 516 | 5.18k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 5.22k | 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 | 5.22k | } else { | 509 | 5.22k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 5.22k | ss->id = operator_id(); | 511 | 5.22k | for (auto& dest : dests_id()) { | 512 | 5.22k | ss->related_op_ids.insert(dest); | 513 | 5.22k | } | 514 | 5.22k | return ss; | 515 | 5.22k | } | 516 | 5.22k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 156 | 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 | 156 | } else { | 509 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 156 | ss->id = operator_id(); | 511 | 156 | for (auto& dest : dests_id()) { | 512 | 156 | ss->related_op_ids.insert(dest); | 513 | 156 | } | 514 | 156 | return ss; | 515 | 156 | } | 516 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 3.22k | 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.22k | } else { | 509 | 3.22k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 3.22k | ss->id = operator_id(); | 511 | 3.22k | for (auto& dest : dests_id()) { | 512 | 3.21k | ss->related_op_ids.insert(dest); | 513 | 3.21k | } | 514 | 3.22k | return ss; | 515 | 3.22k | } | 516 | 3.22k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 8.85k | 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 | 8.85k | } else { | 509 | 8.85k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 8.85k | ss->id = operator_id(); | 511 | 8.85k | for (auto& dest : dests_id()) { | 512 | 8.84k | ss->related_op_ids.insert(dest); | 513 | 8.84k | } | 514 | 8.85k | return ss; | 515 | 8.85k | } | 516 | 8.85k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 98 | 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 | 98 | } else { | 509 | 98 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 98 | ss->id = operator_id(); | 511 | 98 | for (auto& dest : dests_id()) { | 512 | 98 | ss->related_op_ids.insert(dest); | 513 | 98 | } | 514 | 98 | return ss; | 515 | 98 | } | 516 | 98 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 264k | 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 | 264k | } else { | 509 | 264k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 264k | ss->id = operator_id(); | 511 | 264k | for (auto& dest : dests_id()) { | 512 | 263k | ss->related_op_ids.insert(dest); | 513 | 263k | } | 514 | 264k | return ss; | 515 | 264k | } | 516 | 264k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 28 | 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 | 28 | } else { | 509 | 28 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 28 | ss->id = operator_id(); | 511 | 28 | for (auto& dest : dests_id()) { | 512 | 28 | ss->related_op_ids.insert(dest); | 513 | 28 | } | 514 | 28 | return ss; | 515 | 28 | } | 516 | 28 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 165k | 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 | 165k | } else { | 509 | 165k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 165k | ss->id = operator_id(); | 511 | 165k | for (auto& dest : dests_id()) { | 512 | 165k | ss->related_op_ids.insert(dest); | 513 | 165k | } | 514 | 165k | return ss; | 515 | 165k | } | 516 | 165k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 1.49k | 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 | 1.49k | } else { | 509 | 1.49k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 1.49k | ss->id = operator_id(); | 511 | 1.49k | for (auto& dest : dests_id()) { | 512 | 1.49k | ss->related_op_ids.insert(dest); | 513 | 1.49k | } | 514 | 1.49k | return ss; | 515 | 1.49k | } | 516 | 1.49k | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 734k | 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 | 734k | } else { | 509 | 734k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 734k | ss->id = operator_id(); | 511 | 734k | for (auto& dest : dests_id()) { | 512 | 731k | ss->related_op_ids.insert(dest); | 513 | 731k | } | 514 | 734k | return ss; | 515 | 734k | } | 516 | 734k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 10.7k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 10.7k | } else { | 509 | 10.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 10.7k | ss->id = operator_id(); | 511 | 10.7k | for (auto& dest : dests_id()) { | 512 | 10.7k | ss->related_op_ids.insert(dest); | 513 | 10.7k | } | 514 | 10.7k | return ss; | 515 | 10.7k | } | 516 | 10.7k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 496 | 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 | 496 | } else { | 509 | 496 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 496 | ss->id = operator_id(); | 511 | 496 | for (auto& dest : dests_id()) { | 512 | 496 | ss->related_op_ids.insert(dest); | 513 | 496 | } | 514 | 496 | return ss; | 515 | 496 | } | 516 | 496 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.78k | 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.78k | } else { | 509 | 2.78k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.78k | ss->id = operator_id(); | 511 | 2.78k | for (auto& dest : dests_id()) { | 512 | 2.77k | ss->related_op_ids.insert(dest); | 513 | 2.77k | } | 514 | 2.78k | return ss; | 515 | 2.78k | } | 516 | 2.78k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.61k | 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.61k | } else { | 509 | 2.61k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.61k | ss->id = operator_id(); | 511 | 2.61k | for (auto& dest : dests_id()) { | 512 | 2.60k | ss->related_op_ids.insert(dest); | 513 | 2.60k | } | 514 | 2.61k | return ss; | 515 | 2.61k | } | 516 | 2.61k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 165 | 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 | 165 | } else { | 509 | 165 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 165 | ss->id = operator_id(); | 511 | 165 | for (auto& dest : dests_id()) { | 512 | 165 | ss->related_op_ids.insert(dest); | 513 | 165 | } | 514 | 165 | return ss; | 515 | 165 | } | 516 | 165 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 104 | 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 | 104 | } else { | 509 | 104 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 104 | ss->id = operator_id(); | 511 | 104 | for (auto& dest : dests_id()) { | 512 | 102 | ss->related_op_ids.insert(dest); | 513 | 102 | } | 514 | 104 | return ss; | 515 | 104 | } | 516 | 104 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
517 | | |
518 | | template <typename LocalStateType> |
519 | 2.93M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
520 | 2.93M | auto local_state = LocalStateType::create_unique(state, this); |
521 | 2.93M | RETURN_IF_ERROR(local_state->init(state, info)); |
522 | 2.93M | state->emplace_local_state(operator_id(), std::move(local_state)); |
523 | 2.93M | return Status::OK(); |
524 | 2.93M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 142k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 142k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 142k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 142k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 142k | return Status::OK(); | 524 | 142k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 373k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 373k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 373k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 373k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 373k | return Status::OK(); | 524 | 373k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 77 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 77 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 77 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 77 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 77 | return Status::OK(); | 524 | 77 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 34.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 34.2k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 34.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 34.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 34.2k | return Status::OK(); | 524 | 34.2k | } |
_ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 676 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 676 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 676 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 676 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 676 | return Status::OK(); | 524 | 676 | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 8.81k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 8.81k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 8.81k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 8.81k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 8.81k | return Status::OK(); | 524 | 8.81k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 12.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 12.0k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 12.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 12.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 12.0k | return Status::OK(); | 524 | 12.0k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 20 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 20 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 20 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 20 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 20 | return Status::OK(); | 524 | 20 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 251k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 251k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 251k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 251k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 251k | return Status::OK(); | 524 | 251k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 165k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 165k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 165k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 165k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 165k | return Status::OK(); | 524 | 165k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.48k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.48k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.48k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.48k | return Status::OK(); | 524 | 1.48k | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 4.11k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 4.11k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 4.11k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 4.11k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 4.11k | return Status::OK(); | 524 | 4.11k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 501k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 501k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 501k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 501k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 501k | return Status::OK(); | 524 | 501k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.34k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.34k | return Status::OK(); | 524 | 1.34k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 10.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 10.6k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 10.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 10.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 10.6k | return Status::OK(); | 524 | 10.6k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 233 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 233 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 233 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 233 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 233 | return Status::OK(); | 524 | 233 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.67k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.67k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.67k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.67k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.67k | return Status::OK(); | 524 | 1.67k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 56.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 56.0k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 56.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 56.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 56.0k | return Status::OK(); | 524 | 56.0k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 12.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 12.8k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 12.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 12.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 12.8k | return Status::OK(); | 524 | 12.8k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 393 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 393 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 393 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 393 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 393 | return Status::OK(); | 524 | 393 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.79k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.79k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.79k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.79k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.79k | return Status::OK(); | 524 | 2.79k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.62k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.62k | return Status::OK(); | 524 | 2.62k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 461 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 461 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 461 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 461 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 461 | return Status::OK(); | 524 | 461 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_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_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 7.19k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 7.19k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 7.19k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 7.19k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 7.19k | return Status::OK(); | 524 | 7.19k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 794k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 794k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 794k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 794k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 794k | return Status::OK(); | 524 | 794k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 124 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 124 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 124 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 124 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 124 | return Status::OK(); | 524 | 124 | } |
_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 | 1.91k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.91k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.91k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.91k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.91k | return Status::OK(); | 524 | 1.91k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.56k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.56k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.56k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.56k | return Status::OK(); | 524 | 2.56k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 16.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 16.6k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 16.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 16.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 16.6k | return Status::OK(); | 524 | 16.6k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 518k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 518k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 518k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 518k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 518k | return Status::OK(); | 524 | 518k | } |
|
525 | | |
526 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
527 | | RuntimeState* state) |
528 | 2.30M | : _parent(parent), _state(state) {} |
529 | | |
530 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
531 | 2.92M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
532 | | |
533 | | template <typename SharedStateArg> |
534 | 2.92M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
535 | 2.92M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
536 | 2.92M | _common_profile.reset(new RuntimeProfile("CommonCounters")); |
537 | 2.92M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); |
538 | 2.92M | _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.92M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
542 | 2.92M | _operator_profile->add_child(_common_profile.get(), true); |
543 | 2.92M | _operator_profile->add_child(_custom_profile.get(), true); |
544 | 2.92M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
545 | 2.92M | if constexpr (!is_fake_shared) { |
546 | 1.46M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
547 | 813k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
548 | 813k | .first.get() |
549 | 813k | ->template cast<SharedStateArg>(); |
550 | | |
551 | 813k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
552 | 813k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
553 | 813k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
554 | 813k | } else if (info.shared_state) { |
555 | 590k | 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 | 590k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
560 | | |
561 | 590k | _dependency = _shared_state->create_source_dependency( |
562 | 590k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
563 | 590k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
564 | 590k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
565 | 590k | } else { |
566 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
567 | 18.4E | DCHECK(false); |
568 | 18.4E | } |
569 | 55.7k | } |
570 | 1.46M | } |
571 | | |
572 | 2.92M | 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.92M | _rows_returned_counter = |
577 | 2.92M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); |
578 | 2.92M | _blocks_returned_counter = |
579 | 2.92M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); |
580 | 2.92M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); |
581 | 2.92M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
582 | 2.92M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
583 | 2.92M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
584 | 2.92M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
585 | 2.92M | _memory_used_counter = |
586 | 2.92M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
587 | 2.92M | _common_profile->add_info_string("IsColocate", |
588 | 2.92M | std::to_string(_parent->is_colocated_operator())); |
589 | 2.92M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
590 | 2.92M | _common_profile->add_info_string("FollowedByShuffledOperator", |
591 | 2.92M | std::to_string(_parent->followed_by_shuffled_operator())); |
592 | 2.92M | return Status::OK(); |
593 | 2.92M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 143k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 143k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 143k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 143k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 143k | _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 | 143k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 143k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 143k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 143k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 143k | if constexpr (!is_fake_shared) { | 546 | 143k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 19.3k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 19.3k | .first.get() | 549 | 19.3k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 19.3k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 19.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 19.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 123k | } 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 | 122k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 122k | _dependency = _shared_state->create_source_dependency( | 562 | 122k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 122k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 122k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 122k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1.24k | } | 570 | 143k | } | 571 | | | 572 | 143k | 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 | 143k | _rows_returned_counter = | 577 | 143k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 143k | _blocks_returned_counter = | 579 | 143k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 143k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 143k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 143k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 143k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 143k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 143k | _memory_used_counter = | 586 | 143k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 143k | _common_profile->add_info_string("IsColocate", | 588 | 143k | std::to_string(_parent->is_colocated_operator())); | 589 | 143k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 143k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 143k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 143k | return Status::OK(); | 593 | 143k | } |
_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 | 263k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 263k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 263k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 263k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 263k | _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 | 263k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 263k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 263k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 263k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 263k | if constexpr (!is_fake_shared) { | 546 | 263k | 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 | 263k | } 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 | 259k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 259k | _dependency = _shared_state->create_source_dependency( | 562 | 259k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 259k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 259k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 259k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 3.45k | } | 570 | 263k | } | 571 | | | 572 | 263k | 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 | 263k | _rows_returned_counter = | 577 | 263k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 263k | _blocks_returned_counter = | 579 | 263k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 263k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 263k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 263k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 263k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 263k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 263k | _memory_used_counter = | 586 | 263k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 263k | _common_profile->add_info_string("IsColocate", | 588 | 263k | std::to_string(_parent->is_colocated_operator())); | 589 | 263k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 263k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 263k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 263k | return Status::OK(); | 593 | 263k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 20 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 20 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 20 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 20 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 20 | _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 | 20 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 20 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 20 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 20 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 20 | if constexpr (!is_fake_shared) { | 546 | 20 | 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 | 20 | } 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 | 20 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 20 | _dependency = _shared_state->create_source_dependency( | 562 | 20 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 20 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 20 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 20 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 20 | } | 571 | | | 572 | 20 | 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 | 20 | _rows_returned_counter = | 577 | 20 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 20 | _blocks_returned_counter = | 579 | 20 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 20 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 20 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 20 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 20 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 20 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 20 | _memory_used_counter = | 586 | 20 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 20 | _common_profile->add_info_string("IsColocate", | 588 | 20 | std::to_string(_parent->is_colocated_operator())); | 589 | 20 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 20 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 20 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 20 | return Status::OK(); | 593 | 20 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 10.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 10.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 10.6k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 10.6k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 10.6k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 10.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 10.6k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 10.6k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 10.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 10.6k | if constexpr (!is_fake_shared) { | 546 | 10.6k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 10.6k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 10.5k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 10.5k | _dependency = _shared_state->create_source_dependency( | 562 | 10.5k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 10.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 10.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 10.5k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 50 | } | 570 | 10.6k | } | 571 | | | 572 | 10.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 10.6k | _rows_returned_counter = | 577 | 10.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 10.6k | _blocks_returned_counter = | 579 | 10.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 10.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 10.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 10.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 10.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 10.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 10.6k | _memory_used_counter = | 586 | 10.6k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 10.6k | _common_profile->add_info_string("IsColocate", | 588 | 10.6k | std::to_string(_parent->is_colocated_operator())); | 589 | 10.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 10.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 10.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 10.6k | return Status::OK(); | 593 | 10.6k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 8.81k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 8.81k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 8.81k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 8.81k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 8.81k | _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 | 8.81k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 8.81k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 8.81k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 8.81k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 8.81k | if constexpr (!is_fake_shared) { | 546 | 8.81k | 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 | 8.81k | } 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 | 8.76k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 8.76k | _dependency = _shared_state->create_source_dependency( | 562 | 8.76k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 8.76k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 8.76k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 8.76k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 51 | } | 570 | 8.81k | } | 571 | | | 572 | 8.81k | 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 | 8.81k | _rows_returned_counter = | 577 | 8.81k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 8.81k | _blocks_returned_counter = | 579 | 8.81k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 8.81k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 8.81k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 8.81k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 8.81k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 8.81k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 8.81k | _memory_used_counter = | 586 | 8.81k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 8.81k | _common_profile->add_info_string("IsColocate", | 588 | 8.81k | std::to_string(_parent->is_colocated_operator())); | 589 | 8.81k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 8.81k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 8.81k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 8.81k | return Status::OK(); | 593 | 8.81k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 165k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 165k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 165k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 165k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 165k | _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 | 165k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 165k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 165k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 165k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 165k | if constexpr (!is_fake_shared) { | 546 | 165k | 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 | 165k | } 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 | 164k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 164k | _dependency = _shared_state->create_source_dependency( | 562 | 164k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 164k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 164k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 164k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1.35k | } | 570 | 165k | } | 571 | | | 572 | 165k | 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 | 165k | _rows_returned_counter = | 577 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 165k | _blocks_returned_counter = | 579 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 165k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 165k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 165k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 165k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 165k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 165k | _memory_used_counter = | 586 | 165k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 165k | _common_profile->add_info_string("IsColocate", | 588 | 165k | std::to_string(_parent->is_colocated_operator())); | 589 | 165k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 165k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 165k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 165k | return Status::OK(); | 593 | 165k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 1.48k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 1.48k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 1.48k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 1.48k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 1.48k | _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.48k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 1.48k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 1.48k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 1.48k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 1.48k | if constexpr (!is_fake_shared) { | 546 | 1.48k | 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.48k | } 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.48k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 1.48k | _dependency = _shared_state->create_source_dependency( | 562 | 1.48k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 1.48k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 1.48k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 1.48k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 1.48k | } | 571 | | | 572 | 1.48k | 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.48k | _rows_returned_counter = | 577 | 1.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 1.48k | _blocks_returned_counter = | 579 | 1.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 1.48k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 1.48k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 1.48k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 1.48k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 1.48k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 1.48k | _memory_used_counter = | 586 | 1.48k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 1.48k | _common_profile->add_info_string("IsColocate", | 588 | 1.48k | std::to_string(_parent->is_colocated_operator())); | 589 | 1.48k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 1.48k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 1.48k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 1.48k | return Status::OK(); | 593 | 1.48k | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 1.46M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 1.46M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 1.46M | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 1.46M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 1.46M | _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.46M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 1.46M | _operator_profile->add_child(_common_profile.get(), true); | 543 | 1.46M | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 1.46M | 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.46M | 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.46M | _rows_returned_counter = | 577 | 1.46M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 1.46M | _blocks_returned_counter = | 579 | 1.46M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 1.46M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 1.46M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 1.46M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 1.46M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 1.46M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 1.46M | _memory_used_counter = | 586 | 1.46M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 1.46M | _common_profile->add_info_string("IsColocate", | 588 | 1.46M | std::to_string(_parent->is_colocated_operator())); | 589 | 1.46M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 1.46M | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 1.46M | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 1.46M | return Status::OK(); | 593 | 1.46M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 55.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 55.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 55.6k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 55.6k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 55.6k | _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 | 55.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 55.6k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 55.6k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 55.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 55.6k | if constexpr (!is_fake_shared) { | 546 | 55.6k | 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 | 55.6k | } 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.56k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 4.56k | _dependency = _shared_state->create_source_dependency( | 562 | 4.56k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 4.56k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 4.56k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 51.1k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 51.1k | } | 570 | 55.6k | } | 571 | | | 572 | 55.6k | 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 | 55.6k | _rows_returned_counter = | 577 | 55.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 55.6k | _blocks_returned_counter = | 579 | 55.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 55.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 55.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 55.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 55.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 55.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 55.6k | _memory_used_counter = | 586 | 55.6k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 55.6k | _common_profile->add_info_string("IsColocate", | 588 | 55.6k | std::to_string(_parent->is_colocated_operator())); | 589 | 55.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 55.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 55.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 55.6k | return Status::OK(); | 593 | 55.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 128 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 128 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 128 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 128 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 128 | _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 | 128 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 128 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 128 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 128 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 128 | if constexpr (!is_fake_shared) { | 546 | 128 | 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 | 128 | } 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 | 128 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 128 | _dependency = _shared_state->create_source_dependency( | 562 | 128 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 128 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 128 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 128 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 128 | } | 571 | | | 572 | 128 | 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 | 128 | _rows_returned_counter = | 577 | 128 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 128 | _blocks_returned_counter = | 579 | 128 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 128 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 128 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 128 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 128 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 128 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 128 | _memory_used_counter = | 586 | 128 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 128 | _common_profile->add_info_string("IsColocate", | 588 | 128 | std::to_string(_parent->is_colocated_operator())); | 589 | 128 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 128 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 128 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 128 | return Status::OK(); | 593 | 128 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 12.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 12.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 12.8k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 12.8k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 12.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 | 12.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 12.8k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 12.8k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 12.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 12.8k | if constexpr (!is_fake_shared) { | 546 | 12.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 | 12.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 | 12.8k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 12.8k | _dependency = _shared_state->create_source_dependency( | 562 | 12.8k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 12.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 12.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 12.8k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 19 | } | 570 | 12.8k | } | 571 | | | 572 | 12.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 | 12.8k | _rows_returned_counter = | 577 | 12.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 12.8k | _blocks_returned_counter = | 579 | 12.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 12.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 12.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 12.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 12.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 12.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 12.8k | _memory_used_counter = | 586 | 12.8k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 12.8k | _common_profile->add_info_string("IsColocate", | 588 | 12.8k | std::to_string(_parent->is_colocated_operator())); | 589 | 12.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 12.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 12.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 12.8k | return Status::OK(); | 593 | 12.8k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 495 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 495 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 495 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 495 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 495 | _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 | 495 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 495 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 495 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 495 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 495 | if constexpr (!is_fake_shared) { | 546 | 495 | 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 | 495 | } 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 | 495 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 495 | _dependency = _shared_state->create_source_dependency( | 562 | 495 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 495 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 495 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 495 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 495 | } | 571 | | | 572 | 496 | 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 | 495 | _rows_returned_counter = | 577 | 495 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 495 | _blocks_returned_counter = | 579 | 495 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 495 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 495 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 495 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 495 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 495 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 495 | _memory_used_counter = | 586 | 495 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 495 | _common_profile->add_info_string("IsColocate", | 588 | 495 | std::to_string(_parent->is_colocated_operator())); | 589 | 495 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 495 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 495 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 495 | return Status::OK(); | 593 | 495 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 5.43k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 5.43k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 5.43k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 5.43k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 5.43k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 5.43k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 5.43k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 5.43k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 5.43k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 5.43k | if constexpr (!is_fake_shared) { | 546 | 5.43k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 5.43k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 5.41k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 5.41k | _dependency = _shared_state->create_source_dependency( | 562 | 5.41k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 5.41k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 5.41k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 5.41k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 21 | } | 570 | 5.43k | } | 571 | | | 572 | 5.43k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 5.43k | _rows_returned_counter = | 577 | 5.43k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 5.43k | _blocks_returned_counter = | 579 | 5.43k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 5.43k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 5.43k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 5.43k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 5.43k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 5.43k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 5.43k | _memory_used_counter = | 586 | 5.43k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 5.43k | _common_profile->add_info_string("IsColocate", | 588 | 5.43k | std::to_string(_parent->is_colocated_operator())); | 589 | 5.43k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 5.43k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 5.43k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 5.43k | return Status::OK(); | 593 | 5.43k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 793k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 793k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 793k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 793k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 793k | _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 | 793k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 793k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 793k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 793k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 793k | if constexpr (!is_fake_shared) { | 546 | 794k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 794k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 794k | .first.get() | 549 | 794k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 794k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 794k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 794k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 18.4E | } 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 | 18.4E | } else { | 566 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | 18.4E | DCHECK(false); | 568 | 18.4E | } | 569 | 18.4E | } | 570 | 793k | } | 571 | | | 572 | 793k | 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 | 793k | _rows_returned_counter = | 577 | 793k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 793k | _blocks_returned_counter = | 579 | 793k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 793k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 793k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 793k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 793k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 793k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 793k | _memory_used_counter = | 586 | 793k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 793k | _common_profile->add_info_string("IsColocate", | 588 | 793k | std::to_string(_parent->is_colocated_operator())); | 589 | 793k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 793k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 793k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 793k | return Status::OK(); | 593 | 793k | } |
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.94M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
597 | 2.94M | _conjuncts.resize(_parent->_conjuncts.size()); |
598 | 2.94M | _projections.resize(_parent->_projections.size()); |
599 | 3.47M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
600 | 527k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
601 | 527k | } |
602 | 6.41M | for (size_t i = 0; i < _projections.size(); i++) { |
603 | 3.47M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
604 | 3.47M | } |
605 | 2.94M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
606 | 2.95M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
607 | 10.8k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
608 | 66.3k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
609 | 55.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
610 | 55.5k | state, _intermediate_projections[i][j])); |
611 | 55.5k | } |
612 | 10.8k | } |
613 | 2.94M | return Status::OK(); |
614 | 2.94M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 143k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 143k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 143k | _projections.resize(_parent->_projections.size()); | 599 | 144k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.40k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.40k | } | 602 | 745k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 602k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 602k | } | 605 | 143k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 143k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 612 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 4.97k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 4.36k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 4.36k | state, _intermediate_projections[i][j])); | 611 | 4.36k | } | 612 | 612 | } | 613 | 143k | return Status::OK(); | 614 | 143k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 3 | _projections.resize(_parent->_projections.size()); | 599 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 3 | return Status::OK(); | 614 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 264k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 264k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 264k | _projections.resize(_parent->_projections.size()); | 599 | 264k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 287k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 22.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 22.8k | } | 605 | 264k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 264k | 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 | 264k | return Status::OK(); | 614 | 264k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 20 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 20 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 20 | _projections.resize(_parent->_projections.size()); | 599 | 20 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 20 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 20 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 20 | 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 | 20 | return Status::OK(); | 614 | 20 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 10.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 10.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 10.7k | _projections.resize(_parent->_projections.size()); | 599 | 10.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 150 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 150 | } | 602 | 67.2k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 56.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 56.4k | } | 605 | 10.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 10.7k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 36 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 226 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 190 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 190 | state, _intermediate_projections[i][j])); | 611 | 190 | } | 612 | 36 | } | 613 | 10.7k | return Status::OK(); | 614 | 10.7k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 8.85k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 8.85k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 8.85k | _projections.resize(_parent->_projections.size()); | 599 | 9.65k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 798 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 798 | } | 602 | 23.4k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 14.5k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 14.5k | } | 605 | 8.85k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 9.02k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 172 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 1.29k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 1.12k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 1.12k | state, _intermediate_projections[i][j])); | 611 | 1.12k | } | 612 | 172 | } | 613 | 8.85k | return Status::OK(); | 614 | 8.85k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 165k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 165k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 165k | _projections.resize(_parent->_projections.size()); | 599 | 170k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 4.40k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 4.40k | } | 602 | 535k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 369k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 369k | } | 605 | 165k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 166k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 395 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 2.77k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 2.38k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 2.38k | state, _intermediate_projections[i][j])); | 611 | 2.38k | } | 612 | 395 | } | 613 | 165k | return Status::OK(); | 614 | 165k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 1.48k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 1.48k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 1.48k | _projections.resize(_parent->_projections.size()); | 599 | 1.48k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 3.51k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 2.02k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 2.02k | } | 605 | 1.48k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 1.48k | 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.48k | return Status::OK(); | 614 | 1.48k | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 1.47M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 1.47M | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 1.47M | _projections.resize(_parent->_projections.size()); | 599 | 1.99M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 516k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 516k | } | 602 | 3.77M | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 2.29M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 2.29M | } | 605 | 1.47M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 1.48M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 9.59k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 57.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 47.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 47.5k | state, _intermediate_projections[i][j])); | 611 | 47.5k | } | 612 | 9.59k | } | 613 | 1.47M | return Status::OK(); | 614 | 1.47M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 56.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 56.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 56.1k | _projections.resize(_parent->_projections.size()); | 599 | 56.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 161k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 105k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 105k | } | 605 | 56.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 56.1k | 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 | 56.1k | return Status::OK(); | 614 | 56.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 129 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 129 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 129 | _projections.resize(_parent->_projections.size()); | 599 | 129 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 129 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 129 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 129 | 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 | 129 | return Status::OK(); | 614 | 129 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 12.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 12.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 12.8k | _projections.resize(_parent->_projections.size()); | 599 | 17.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 4.60k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 4.60k | } | 602 | 12.8k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 12.8k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 12.8k | 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 | 12.8k | return Status::OK(); | 614 | 12.8k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 496 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 496 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 496 | _projections.resize(_parent->_projections.size()); | 599 | 496 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 496 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 496 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 496 | 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 | 496 | return Status::OK(); | 614 | 496 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 5.43k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 5.43k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 5.43k | _projections.resize(_parent->_projections.size()); | 599 | 5.43k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 5.50k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 64 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 64 | } | 605 | 5.43k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 5.43k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 5.43k | return Status::OK(); | 614 | 5.43k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 800k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 800k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 800k | _projections.resize(_parent->_projections.size()); | 599 | 800k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 800k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 800k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 800k | 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 | 800k | return Status::OK(); | 614 | 800k | } |
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 | 9.92k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
618 | 9.92k | if (_terminated) { |
619 | 0 | return Status::OK(); |
620 | 0 | } |
621 | 9.92k | _terminated = true; |
622 | 9.92k | return Status::OK(); |
623 | 9.92k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 636 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 636 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 636 | _terminated = true; | 622 | 636 | return Status::OK(); | 623 | 636 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 179 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 179 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 179 | _terminated = true; | 622 | 179 | return Status::OK(); | 623 | 179 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 92 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 92 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 92 | _terminated = true; | 622 | 92 | return Status::OK(); | 623 | 92 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 1.62k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 1.62k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 1.62k | _terminated = true; | 622 | 1.62k | return Status::OK(); | 623 | 1.62k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 6.18k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 6.18k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 6.18k | _terminated = true; | 622 | 6.18k | return Status::OK(); | 623 | 6.18k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 11 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 11 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 11 | _terminated = true; | 622 | 11 | return Status::OK(); | 623 | 11 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 10 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 10 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 10 | _terminated = true; | 622 | 10 | return Status::OK(); | 623 | 10 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 3 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 3 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 3 | _terminated = true; | 622 | 3 | return Status::OK(); | 623 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 1.16k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 1.16k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 1.16k | _terminated = true; | 622 | 1.16k | return Status::OK(); | 623 | 1.16k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 22 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 22 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 22 | _terminated = true; | 622 | 22 | return Status::OK(); | 623 | 22 | } |
|
624 | | |
625 | | template <typename SharedStateArg> |
626 | 3.24M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
627 | 3.24M | if (_closed) { |
628 | 297k | return Status::OK(); |
629 | 297k | } |
630 | 2.94M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
631 | 1.46M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
632 | 1.46M | } |
633 | 2.94M | _closed = true; |
634 | 2.94M | return Status::OK(); |
635 | 3.24M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 143k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 143k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 143k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 143k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 143k | } | 633 | 143k | _closed = true; | 634 | 143k | return Status::OK(); | 635 | 143k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 3 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 3 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 3 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 3 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 3 | } | 633 | 3 | _closed = true; | 634 | 3 | return Status::OK(); | 635 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 527k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 527k | if (_closed) { | 628 | 263k | return Status::OK(); | 629 | 263k | } | 630 | 263k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 263k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 263k | } | 633 | 263k | _closed = true; | 634 | 263k | return Status::OK(); | 635 | 527k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 20 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 20 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 20 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 20 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 20 | } | 633 | 20 | _closed = true; | 634 | 20 | return Status::OK(); | 635 | 20 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 10.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 10.7k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 10.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 10.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 10.7k | } | 633 | 10.7k | _closed = true; | 634 | 10.7k | return Status::OK(); | 635 | 10.7k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 17.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 17.7k | if (_closed) { | 628 | 8.95k | return Status::OK(); | 629 | 8.95k | } | 630 | 8.83k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 8.83k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 8.83k | } | 633 | 8.83k | _closed = true; | 634 | 8.83k | return Status::OK(); | 635 | 17.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 164k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 164k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 164k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 164k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 164k | } | 633 | 164k | _closed = true; | 634 | 164k | return Status::OK(); | 635 | 164k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1.48k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1.48k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 1.48k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 1.48k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 1.48k | } | 633 | 1.48k | _closed = true; | 634 | 1.48k | return Status::OK(); | 635 | 1.48k | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1.49M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1.49M | if (_closed) { | 628 | 18.4k | return Status::OK(); | 629 | 18.4k | } | 630 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | | } | 633 | 1.47M | _closed = true; | 634 | 1.47M | return Status::OK(); | 635 | 1.49M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 56.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 56.1k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 56.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 56.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 56.1k | } | 633 | 56.1k | _closed = true; | 634 | 56.1k | return Status::OK(); | 635 | 56.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 251 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 251 | if (_closed) { | 628 | 126 | return Status::OK(); | 629 | 126 | } | 630 | 125 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 125 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 125 | } | 633 | 125 | _closed = true; | 634 | 125 | return Status::OK(); | 635 | 251 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 12.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 12.7k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 12.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 12.7k | } | 633 | 12.7k | _closed = true; | 634 | 12.7k | return Status::OK(); | 635 | 12.7k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 787 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 787 | if (_closed) { | 628 | 394 | return Status::OK(); | 629 | 394 | } | 630 | 393 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 393 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 393 | } | 633 | 393 | _closed = true; | 634 | 393 | return Status::OK(); | 635 | 787 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 10.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 10.9k | if (_closed) { | 628 | 5.50k | return Status::OK(); | 629 | 5.50k | } | 630 | 5.43k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 5.43k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 5.43k | } | 633 | 5.43k | _closed = true; | 634 | 5.43k | return Status::OK(); | 635 | 10.9k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 801k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 801k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 801k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 801k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 801k | } | 633 | 801k | _closed = true; | 634 | 801k | return Status::OK(); | 635 | 801k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 306 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 306 | if (_closed) { | 628 | 157 | return Status::OK(); | 629 | 157 | } | 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 | 306 | } |
|
636 | | |
637 | | template <typename SharedState> |
638 | 2.30M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
639 | | // create profile |
640 | 2.30M | _operator_profile = |
641 | 2.30M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
642 | 2.30M | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); |
643 | 2.30M | _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.30M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
649 | 2.30M | _operator_profile->add_child(_common_profile, true); |
650 | 2.30M | _operator_profile->add_child(_custom_profile, true); |
651 | | |
652 | 2.30M | _operator_profile->set_metadata(_parent->node_id()); |
653 | 2.30M | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); |
654 | 2.30M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
655 | 2.30M | if constexpr (!is_fake_shared) { |
656 | 1.57M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
657 | 1.57M | info.shared_state_map.end()) { |
658 | 383k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
659 | 362k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
660 | 362k | } |
661 | 383k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
662 | 383k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
663 | 383k | ? 0 |
664 | 383k | : info.task_idx] |
665 | 383k | .get(); |
666 | 383k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
667 | 1.18M | } else { |
668 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
669 | 18.4E | DCHECK(false); |
670 | 18.4E | } |
671 | 1.18M | _shared_state = info.shared_state->template cast<SharedState>(); |
672 | 1.18M | _dependency = _shared_state->create_sink_dependency( |
673 | 1.18M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
674 | 1.18M | } |
675 | 1.57M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
676 | 1.57M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
677 | 1.57M | } |
678 | | |
679 | 2.30M | 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.30M | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); |
684 | 2.30M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
685 | 2.30M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
686 | 2.30M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
687 | 2.30M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
688 | 2.30M | _memory_used_counter = |
689 | 2.30M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
690 | 2.30M | _common_profile->add_info_string("IsColocate", |
691 | 2.30M | std::to_string(_parent->is_colocated_operator())); |
692 | 2.30M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
693 | 2.30M | _common_profile->add_info_string("FollowedByShuffledOperator", |
694 | 2.30M | std::to_string(_parent->followed_by_shuffled_operator())); |
695 | 2.30M | return Status::OK(); |
696 | 2.30M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 191k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 191k | _operator_profile = | 641 | 191k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 191k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 191k | _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 | 191k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 191k | _operator_profile->add_child(_common_profile, true); | 650 | 191k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 191k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 191k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 191k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 191k | if constexpr (!is_fake_shared) { | 656 | 191k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 191k | 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 | 19.3k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 19.3k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 19.3k | ? 0 | 664 | 19.3k | : info.task_idx] | 665 | 19.3k | .get(); | 666 | 19.3k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 171k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 171k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 171k | _dependency = _shared_state->create_sink_dependency( | 673 | 171k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 171k | } | 675 | 191k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 191k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 191k | } | 678 | | | 679 | 191k | 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 | 191k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 191k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 191k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 191k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 191k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 191k | _memory_used_counter = | 689 | 191k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 191k | _common_profile->add_info_string("IsColocate", | 691 | 191k | std::to_string(_parent->is_colocated_operator())); | 692 | 191k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 191k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 191k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 191k | return Status::OK(); | 696 | 191k | } |
_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 | 264k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 264k | _operator_profile = | 641 | 264k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 264k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 264k | _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 | 264k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 264k | _operator_profile->add_child(_common_profile, true); | 650 | 264k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 264k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 264k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 264k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 264k | if constexpr (!is_fake_shared) { | 656 | 264k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 264k | 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 | 264k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 264k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 264k | _dependency = _shared_state->create_sink_dependency( | 673 | 264k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 264k | } | 675 | 264k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 264k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 264k | } | 678 | | | 679 | 264k | 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 | 264k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 264k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 264k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 264k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 264k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 264k | _memory_used_counter = | 689 | 264k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 264k | _common_profile->add_info_string("IsColocate", | 691 | 264k | std::to_string(_parent->is_colocated_operator())); | 692 | 264k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 264k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 264k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 264k | return Status::OK(); | 696 | 264k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 26 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 26 | _operator_profile = | 641 | 26 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 26 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 26 | _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 | 26 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 26 | _operator_profile->add_child(_common_profile, true); | 650 | 26 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 26 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 26 | if constexpr (!is_fake_shared) { | 656 | 26 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 26 | 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 | 26 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 26 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 26 | _dependency = _shared_state->create_sink_dependency( | 673 | 26 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 26 | } | 675 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 26 | } | 678 | | | 679 | 26 | 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 | 26 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 26 | _memory_used_counter = | 689 | 26 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 26 | _common_profile->add_info_string("IsColocate", | 691 | 26 | std::to_string(_parent->is_colocated_operator())); | 692 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 26 | return Status::OK(); | 696 | 26 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 10.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 10.7k | _operator_profile = | 641 | 10.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 10.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 10.7k | _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 | 10.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 10.7k | _operator_profile->add_child(_common_profile, true); | 650 | 10.7k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 10.7k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 10.7k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 10.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 10.7k | if constexpr (!is_fake_shared) { | 656 | 10.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 10.7k | 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 | 10.7k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 10.7k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 10.7k | _dependency = _shared_state->create_sink_dependency( | 673 | 10.7k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 10.7k | } | 675 | 10.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 10.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 10.7k | } | 678 | | | 679 | 10.7k | 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 | 10.7k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 10.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 10.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 10.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 10.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 10.7k | _memory_used_counter = | 689 | 10.7k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 10.7k | _common_profile->add_info_string("IsColocate", | 691 | 10.7k | std::to_string(_parent->is_colocated_operator())); | 692 | 10.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 10.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 10.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 10.7k | return Status::OK(); | 696 | 10.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 8.84k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 8.84k | _operator_profile = | 641 | 8.84k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 8.84k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 8.84k | _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.84k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 8.84k | _operator_profile->add_child(_common_profile, true); | 650 | 8.84k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 8.84k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 8.84k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 8.84k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 8.84k | if constexpr (!is_fake_shared) { | 656 | 8.84k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 8.84k | 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.84k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 8.84k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 8.84k | _dependency = _shared_state->create_sink_dependency( | 673 | 8.84k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 8.84k | } | 675 | 8.84k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 8.84k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 8.84k | } | 678 | | | 679 | 8.84k | 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.84k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 8.84k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 8.84k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 8.84k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 8.84k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 8.84k | _memory_used_counter = | 689 | 8.84k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 8.84k | _common_profile->add_info_string("IsColocate", | 691 | 8.84k | std::to_string(_parent->is_colocated_operator())); | 692 | 8.84k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 8.84k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 8.84k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 8.84k | return Status::OK(); | 696 | 8.84k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 165k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 165k | _operator_profile = | 641 | 165k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 165k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 165k | _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 | 165k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 165k | _operator_profile->add_child(_common_profile, true); | 650 | 165k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 165k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 165k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 165k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 165k | if constexpr (!is_fake_shared) { | 656 | 165k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 165k | 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 | 165k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 165k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 165k | _dependency = _shared_state->create_sink_dependency( | 673 | 165k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 165k | } | 675 | 165k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 165k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 165k | } | 678 | | | 679 | 165k | 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 | 165k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 165k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 165k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 165k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 165k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 165k | _memory_used_counter = | 689 | 165k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 165k | _common_profile->add_info_string("IsColocate", | 691 | 165k | std::to_string(_parent->is_colocated_operator())); | 692 | 165k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 165k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 165k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 165k | return Status::OK(); | 696 | 165k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 1.49k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 1.49k | _operator_profile = | 641 | 1.49k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 1.49k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 1.49k | _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.49k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 1.49k | _operator_profile->add_child(_common_profile, true); | 650 | 1.49k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 1.49k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 1.49k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 1.49k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 1.49k | if constexpr (!is_fake_shared) { | 656 | 1.49k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 1.49k | 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 | 1.49k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 1.49k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 1.49k | _dependency = _shared_state->create_sink_dependency( | 673 | 1.49k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 1.49k | } | 675 | 1.49k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 1.49k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 1.49k | } | 678 | | | 679 | 1.49k | 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.49k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 1.49k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 1.49k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 1.49k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 1.49k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 1.49k | _memory_used_counter = | 689 | 1.49k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 1.49k | _common_profile->add_info_string("IsColocate", | 691 | 1.49k | std::to_string(_parent->is_colocated_operator())); | 692 | 1.49k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 1.49k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 1.49k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 1.49k | return Status::OK(); | 696 | 1.49k | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 735k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 735k | _operator_profile = | 641 | 735k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 735k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 735k | _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 | 735k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 735k | _operator_profile->add_child(_common_profile, true); | 650 | 735k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 735k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 735k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 735k | 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 | 735k | 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 | 735k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 735k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 735k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 735k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 735k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 735k | _memory_used_counter = | 689 | 735k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 735k | _common_profile->add_info_string("IsColocate", | 691 | 735k | std::to_string(_parent->is_colocated_operator())); | 692 | 735k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 735k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 735k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 735k | return Status::OK(); | 696 | 735k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 9.67k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 9.67k | _operator_profile = | 641 | 9.67k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 9.67k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 9.67k | _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.67k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 9.67k | _operator_profile->add_child(_common_profile, true); | 650 | 9.67k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 9.67k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 9.67k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 9.67k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 9.67k | if constexpr (!is_fake_shared) { | 656 | 9.67k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 9.67k | 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.67k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 9.67k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 9.67k | _dependency = _shared_state->create_sink_dependency( | 673 | 9.67k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 9.67k | } | 675 | 9.67k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 9.67k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 9.67k | } | 678 | | | 679 | 9.67k | 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.67k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 9.67k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 9.67k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 9.67k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 9.67k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 9.67k | _memory_used_counter = | 689 | 9.67k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 9.67k | _common_profile->add_info_string("IsColocate", | 691 | 9.67k | std::to_string(_parent->is_colocated_operator())); | 692 | 9.67k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 9.67k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 9.67k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 9.67k | return Status::OK(); | 696 | 9.67k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 496 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 496 | _operator_profile = | 641 | 496 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 496 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 496 | _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 | 496 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 496 | _operator_profile->add_child(_common_profile, true); | 650 | 496 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 496 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 496 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 496 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 496 | if constexpr (!is_fake_shared) { | 656 | 496 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 496 | 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 | 496 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 496 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 496 | _dependency = _shared_state->create_sink_dependency( | 673 | 496 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 496 | } | 675 | 496 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 496 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 496 | } | 678 | | | 679 | 496 | 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 | 496 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 496 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 496 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 496 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 496 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 496 | _memory_used_counter = | 689 | 496 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 496 | _common_profile->add_info_string("IsColocate", | 691 | 496 | std::to_string(_parent->is_colocated_operator())); | 692 | 496 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 496 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 496 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 496 | return Status::OK(); | 696 | 496 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 4.53k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 4.53k | _operator_profile = | 641 | 4.53k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 4.53k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 4.53k | _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 | 4.53k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 4.53k | _operator_profile->add_child(_common_profile, true); | 650 | 4.53k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 4.53k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 4.53k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 4.53k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 4.53k | if constexpr (!is_fake_shared) { | 656 | 4.53k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 4.53k | 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 | 4.53k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 4.53k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 4.53k | _dependency = _shared_state->create_sink_dependency( | 673 | 4.53k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 4.53k | } | 675 | 4.53k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 4.53k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 4.53k | } | 678 | | | 679 | 4.53k | 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 | 4.53k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 4.53k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 4.53k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 4.53k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 4.53k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 4.53k | _memory_used_counter = | 689 | 4.53k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 4.53k | _common_profile->add_info_string("IsColocate", | 691 | 4.53k | std::to_string(_parent->is_colocated_operator())); | 692 | 4.53k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 4.53k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 4.53k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 4.53k | return Status::OK(); | 696 | 4.53k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 13.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 13.1k | _operator_profile = | 641 | 13.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 13.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 13.1k | _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 | 13.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 13.1k | _operator_profile->add_child(_common_profile, true); | 650 | 13.1k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 13.1k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 13.1k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 13.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 13.1k | if constexpr (!is_fake_shared) { | 656 | 13.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 13.1k | 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 | 13.1k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 13.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 13.1k | _dependency = _shared_state->create_sink_dependency( | 673 | 13.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 13.1k | } | 675 | 13.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 13.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 13.1k | } | 678 | | | 679 | 13.1k | 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 | 13.1k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 13.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 13.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 13.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 13.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 13.1k | _memory_used_counter = | 689 | 13.1k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 13.1k | _common_profile->add_info_string("IsColocate", | 691 | 13.1k | std::to_string(_parent->is_colocated_operator())); | 692 | 13.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 13.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 13.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 13.1k | return Status::OK(); | 696 | 13.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 362k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 362k | _operator_profile = | 641 | 362k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 362k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 362k | _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 | 362k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 362k | _operator_profile->add_child(_common_profile, true); | 650 | 362k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 362k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 362k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 362k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 362k | if constexpr (!is_fake_shared) { | 656 | 362k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 362k | info.shared_state_map.end()) { | 658 | 362k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | 362k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | 362k | } | 661 | 362k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 362k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 362k | ? 0 | 664 | 362k | : info.task_idx] | 665 | 362k | .get(); | 666 | 362k | _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 | 362k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 362k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 362k | } | 678 | | | 679 | 362k | 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 | 362k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 362k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 362k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 362k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 362k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 362k | _memory_used_counter = | 689 | 362k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 362k | _common_profile->add_info_string("IsColocate", | 691 | 362k | std::to_string(_parent->is_colocated_operator())); | 692 | 362k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 362k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 362k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 362k | return Status::OK(); | 696 | 362k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 538k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 538k | _operator_profile = | 641 | 538k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 538k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 538k | _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 | 538k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 538k | _operator_profile->add_child(_common_profile, true); | 650 | 538k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 538k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 538k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 538k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 538k | if constexpr (!is_fake_shared) { | 656 | 538k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 538k | 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.41k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 1.41k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 1.41k | ? 0 | 664 | 1.41k | : info.task_idx] | 665 | 1.41k | .get(); | 666 | 1.41k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 536k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 536k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 536k | _dependency = _shared_state->create_sink_dependency( | 673 | 536k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 536k | } | 675 | 538k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 538k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 538k | } | 678 | | | 679 | 538k | 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 | 538k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 538k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 538k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 538k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 538k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 538k | _memory_used_counter = | 689 | 538k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 538k | _common_profile->add_info_string("IsColocate", | 691 | 538k | std::to_string(_parent->is_colocated_operator())); | 692 | 538k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 538k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 538k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 538k | return Status::OK(); | 696 | 538k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 128 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 128 | _operator_profile = | 641 | 128 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 128 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 128 | _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 | 128 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 128 | _operator_profile->add_child(_common_profile, true); | 650 | 128 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 128 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 128 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 128 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 128 | if constexpr (!is_fake_shared) { | 656 | 128 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 128 | 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 | 128 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 128 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 128 | _dependency = _shared_state->create_sink_dependency( | 673 | 128 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 128 | } | 675 | 128 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 128 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 128 | } | 678 | | | 679 | 129 | 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 | 128 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 128 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 128 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 128 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 128 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 128 | _memory_used_counter = | 689 | 128 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 128 | _common_profile->add_info_string("IsColocate", | 691 | 128 | std::to_string(_parent->is_colocated_operator())); | 692 | 128 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 128 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 128 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 128 | return Status::OK(); | 696 | 128 | } |
_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 | 2.31M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
700 | 2.31M | if (_closed) { |
701 | 2 | return Status::OK(); |
702 | 2 | } |
703 | 2.31M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
704 | 1.57M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
705 | 1.57M | } |
706 | 2.31M | _closed = true; |
707 | 2.31M | return Status::OK(); |
708 | 2.31M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 190k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 190k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 190k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 190k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 190k | } | 706 | 190k | _closed = true; | 707 | 190k | return Status::OK(); | 708 | 190k | } |
_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 | 264k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 264k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 264k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 264k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 264k | } | 706 | 264k | _closed = true; | 707 | 264k | return Status::OK(); | 708 | 264k | } |
_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 | 10.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 10.7k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 10.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 10.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 10.7k | } | 706 | 10.7k | _closed = true; | 707 | 10.7k | return Status::OK(); | 708 | 10.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 8.82k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 8.82k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 8.82k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 8.82k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 8.82k | } | 706 | 8.82k | _closed = true; | 707 | 8.82k | return Status::OK(); | 708 | 8.82k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 164k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 164k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 164k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 164k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 164k | } | 706 | 164k | _closed = true; | 707 | 164k | return Status::OK(); | 708 | 164k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 1.48k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 1.48k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 1.48k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 1.48k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 1.48k | } | 706 | 1.48k | _closed = true; | 707 | 1.48k | return Status::OK(); | 708 | 1.48k | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 736k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 736k | 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 | 736k | _closed = true; | 707 | 736k | return Status::OK(); | 708 | 736k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 9.67k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 9.67k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 9.67k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 9.67k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 9.67k | } | 706 | 9.67k | _closed = true; | 707 | 9.67k | return Status::OK(); | 708 | 9.67k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 394 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 394 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 394 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 394 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 394 | } | 706 | 394 | _closed = true; | 707 | 394 | return Status::OK(); | 708 | 394 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 4.54k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 4.54k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 4.54k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 4.54k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 4.54k | } | 706 | 4.54k | _closed = true; | 707 | 4.54k | return Status::OK(); | 708 | 4.54k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 13.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 13.1k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 13.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 13.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 13.1k | } | 706 | 13.1k | _closed = true; | 707 | 13.1k | return Status::OK(); | 708 | 13.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 363k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 363k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 363k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 363k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 363k | } | 706 | 363k | _closed = true; | 707 | 363k | return Status::OK(); | 708 | 363k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 542k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 542k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 542k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 542k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 542k | } | 706 | 542k | _closed = true; | 707 | 542k | return Status::OK(); | 708 | 542k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 126 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 126 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 126 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 126 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 126 | } | 706 | 126 | _closed = true; | 707 | 126 | return Status::OK(); | 708 | 126 | } |
_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 | 10.5k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
712 | 10.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
713 | 10.5k | return pull(state, block, eos); |
714 | 10.5k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 456 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 456 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 456 | return pull(state, block, eos); | 714 | 456 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 10.1k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 10.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 10.1k | return pull(state, block, eos); | 714 | 10.1k | } |
|
715 | | |
716 | | template <typename LocalStateType> |
717 | 30.4M | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
718 | 30.4M | auto& local_state = get_local_state(state); |
719 | 30.4M | if (need_more_input_data(state)) { |
720 | 787k | local_state._child_block->clear_column_data( |
721 | 787k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
722 | 787k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
723 | 787k | state, local_state._child_block.get(), &local_state._child_eos)); |
724 | 787k | *eos = local_state._child_eos; |
725 | 787k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
726 | 67.6k | return Status::OK(); |
727 | 67.6k | } |
728 | 719k | { |
729 | 719k | SCOPED_TIMER(local_state.exec_time_counter()); |
730 | 719k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
731 | 719k | } |
732 | 719k | } |
733 | | |
734 | 30.3M | if (!need_more_input_data(state)) { |
735 | 30.3M | SCOPED_TIMER(local_state.exec_time_counter()); |
736 | 30.3M | bool new_eos = false; |
737 | 30.3M | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
738 | 30.3M | if (new_eos) { |
739 | 671k | *eos = true; |
740 | 29.6M | } else if (!need_more_input_data(state)) { |
741 | 29.5M | *eos = false; |
742 | 29.5M | } |
743 | 30.3M | } |
744 | 30.3M | return Status::OK(); |
745 | 30.3M | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 197k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 197k | auto& local_state = get_local_state(state); | 719 | 197k | if (need_more_input_data(state)) { | 720 | 134k | local_state._child_block->clear_column_data( | 721 | 134k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 134k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 134k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 134k | *eos = local_state._child_eos; | 725 | 134k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 30.7k | return Status::OK(); | 727 | 30.7k | } | 728 | 104k | { | 729 | 104k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 104k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 104k | } | 732 | 104k | } | 733 | | | 734 | 167k | if (!need_more_input_data(state)) { | 735 | 167k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 167k | bool new_eos = false; | 737 | 167k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 167k | if (new_eos) { | 739 | 118k | *eos = true; | 740 | 118k | } else if (!need_more_input_data(state)) { | 741 | 11.8k | *eos = false; | 742 | 11.8k | } | 743 | 167k | } | 744 | 166k | return Status::OK(); | 745 | 166k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 3.31k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 3.31k | auto& local_state = get_local_state(state); | 719 | 3.31k | if (need_more_input_data(state)) { | 720 | 1.99k | local_state._child_block->clear_column_data( | 721 | 1.99k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 1.99k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 1.99k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 1.99k | *eos = local_state._child_eos; | 725 | 1.99k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 302 | return Status::OK(); | 727 | 302 | } | 728 | 1.68k | { | 729 | 1.68k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 1.68k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 1.68k | } | 732 | 1.68k | } | 733 | | | 734 | 3.01k | if (!need_more_input_data(state)) { | 735 | 3.01k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 3.01k | bool new_eos = false; | 737 | 3.01k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 3.01k | if (new_eos) { | 739 | 1.34k | *eos = true; | 740 | 1.67k | } else if (!need_more_input_data(state)) { | 741 | 1.32k | *eos = false; | 742 | 1.32k | } | 743 | 3.01k | } | 744 | 3.01k | return Status::OK(); | 745 | 3.01k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 4.85k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 4.85k | auto& local_state = get_local_state(state); | 719 | 4.85k | if (need_more_input_data(state)) { | 720 | 4.85k | local_state._child_block->clear_column_data( | 721 | 4.85k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 4.85k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 4.85k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 4.85k | *eos = local_state._child_eos; | 725 | 4.85k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 1.87k | return Status::OK(); | 727 | 1.87k | } | 728 | 2.98k | { | 729 | 2.98k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 2.98k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 2.98k | } | 732 | 2.98k | } | 733 | | | 734 | 2.98k | if (!need_more_input_data(state)) { | 735 | 2.98k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 2.98k | bool new_eos = false; | 737 | 2.98k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 2.98k | if (new_eos) { | 739 | 1.90k | *eos = true; | 740 | 1.90k | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 2.98k | } | 744 | 2.98k | return Status::OK(); | 745 | 2.98k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 40.7k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 40.7k | auto& local_state = get_local_state(state); | 719 | 40.7k | if (need_more_input_data(state)) { | 720 | 40.6k | local_state._child_block->clear_column_data( | 721 | 40.6k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 40.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 40.6k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 40.6k | *eos = local_state._child_eos; | 725 | 40.6k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 9.02k | return Status::OK(); | 727 | 9.02k | } | 728 | 31.6k | { | 729 | 31.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 31.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 31.6k | } | 732 | 31.6k | } | 733 | | | 734 | 31.7k | if (!need_more_input_data(state)) { | 735 | 16.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 16.7k | bool new_eos = false; | 737 | 16.7k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 16.7k | if (new_eos) { | 739 | 16.5k | *eos = true; | 740 | 16.5k | } else if (!need_more_input_data(state)) { | 741 | 53 | *eos = false; | 742 | 53 | } | 743 | 16.7k | } | 744 | 31.7k | return Status::OK(); | 745 | 31.7k | } |
_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 | 22.0k | return Status::OK(); | 727 | 22.0k | } | 728 | 555k | { | 729 | 555k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 555k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 555k | } | 732 | 555k | } | 733 | | | 734 | 554k | if (!need_more_input_data(state)) { | 735 | 520k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 520k | bool new_eos = false; | 737 | 520k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 520k | if (new_eos) { | 739 | 518k | *eos = true; | 740 | 518k | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 520k | } | 744 | 554k | return Status::OK(); | 745 | 554k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 29.6M | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 29.6M | auto& local_state = get_local_state(state); | 719 | 29.6M | if (need_more_input_data(state)) { | 720 | 21.5k | local_state._child_block->clear_column_data( | 721 | 21.5k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 21.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 21.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 21.5k | *eos = local_state._child_eos; | 725 | 21.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 3.17k | return Status::OK(); | 727 | 3.17k | } | 728 | 18.4k | { | 729 | 18.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 18.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 18.4k | } | 732 | 18.4k | } | 733 | | | 734 | 29.5M | if (!need_more_input_data(state)) { | 735 | 29.5M | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 29.5M | bool new_eos = false; | 737 | 29.5M | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 29.5M | if (new_eos) { | 739 | 10.7k | *eos = true; | 740 | 29.5M | } else if (!need_more_input_data(state)) { | 741 | 29.5M | *eos = false; | 742 | 29.5M | } | 743 | 29.5M | } | 744 | 29.5M | return Status::OK(); | 745 | 29.5M | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 6.41k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 6.41k | auto& local_state = get_local_state(state); | 719 | 6.41k | if (need_more_input_data(state)) { | 720 | 6.03k | local_state._child_block->clear_column_data( | 721 | 6.03k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 6.03k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 6.03k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 6.03k | *eos = local_state._child_eos; | 725 | 6.03k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 439 | return Status::OK(); | 727 | 439 | } | 728 | 5.59k | { | 729 | 5.59k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 5.59k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 5.59k | } | 732 | 5.59k | } | 733 | | | 734 | 5.97k | if (!need_more_input_data(state)) { | 735 | 5.96k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 5.96k | bool new_eos = false; | 737 | 5.96k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 5.96k | if (new_eos) { | 739 | 4.07k | *eos = true; | 740 | 4.07k | } else if (!need_more_input_data(state)) { | 741 | 374 | *eos = false; | 742 | 374 | } | 743 | 5.96k | } | 744 | 5.97k | return Status::OK(); | 745 | 5.97k | } |
|
746 | | |
747 | | template <typename Writer, typename Parent> |
748 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
749 | 80.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
750 | 80.4k | RETURN_IF_ERROR(Base::init(state, info)); |
751 | 80.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
752 | 80.4k | "AsyncWriterDependency", true); |
753 | 80.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
754 | 80.4k | _finish_dependency)); |
755 | | |
756 | 80.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
757 | 80.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
758 | 80.4k | return Status::OK(); |
759 | 80.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 493 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 493 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 493 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 493 | "AsyncWriterDependency", true); | 753 | 493 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 493 | _finish_dependency)); | 755 | | | 756 | 493 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 493 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 493 | return Status::OK(); | 759 | 493 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 80 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 80 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 80 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 80 | "AsyncWriterDependency", true); | 753 | 80 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 80 | _finish_dependency)); | 755 | | | 756 | 80 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 80 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 80 | return Status::OK(); | 759 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 65.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 65.4k | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 65.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 65.4k | "AsyncWriterDependency", true); | 753 | 65.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 65.4k | _finish_dependency)); | 755 | | | 756 | 65.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 65.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 65.4k | return Status::OK(); | 759 | 65.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 5.74k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 5.74k | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 5.74k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 5.74k | "AsyncWriterDependency", true); | 753 | 5.74k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 5.74k | _finish_dependency)); | 755 | | | 756 | 5.74k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 5.74k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 5.74k | return Status::OK(); | 759 | 5.74k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 5.22k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 5.22k | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 5.22k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 5.22k | "AsyncWriterDependency", true); | 753 | 5.22k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 5.22k | _finish_dependency)); | 755 | | | 756 | 5.22k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 5.22k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 5.22k | return Status::OK(); | 759 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 3.22k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 3.22k | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 3.22k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 3.22k | "AsyncWriterDependency", true); | 753 | 3.22k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 3.22k | _finish_dependency)); | 755 | | | 756 | 3.22k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 3.22k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 3.22k | return Status::OK(); | 759 | 3.22k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 156 | "AsyncWriterDependency", true); | 753 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 156 | _finish_dependency)); | 755 | | | 756 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 156 | return Status::OK(); | 759 | 156 | } |
|
760 | | |
761 | | template <typename Writer, typename Parent> |
762 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
763 | 80.9k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
764 | 80.9k | RETURN_IF_ERROR(Base::open(state)); |
765 | 80.9k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
766 | 685k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
767 | 604k | RETURN_IF_ERROR( |
768 | 604k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
769 | 604k | } |
770 | 80.9k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
771 | 80.9k | return Status::OK(); |
772 | 80.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 495 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 495 | RETURN_IF_ERROR(Base::open(state)); | 765 | 495 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 2.63k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 2.14k | RETURN_IF_ERROR( | 768 | 2.14k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 2.14k | } | 770 | 495 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 495 | return Status::OK(); | 772 | 495 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 80 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 80 | RETURN_IF_ERROR(Base::open(state)); | 765 | 80 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 388 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 308 | RETURN_IF_ERROR( | 768 | 308 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 308 | } | 770 | 80 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 80 | return Status::OK(); | 772 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 66.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 66.0k | RETURN_IF_ERROR(Base::open(state)); | 765 | 66.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 459k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 393k | RETURN_IF_ERROR( | 768 | 393k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 393k | } | 770 | 66.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 66.0k | return Status::OK(); | 772 | 66.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 5.73k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 5.73k | RETURN_IF_ERROR(Base::open(state)); | 765 | 5.73k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 43.8k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 38.1k | RETURN_IF_ERROR( | 768 | 38.1k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 38.1k | } | 770 | 5.73k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 5.73k | return Status::OK(); | 772 | 5.73k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 5.22k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 5.22k | RETURN_IF_ERROR(Base::open(state)); | 765 | 5.22k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 137k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 131k | RETURN_IF_ERROR( | 768 | 131k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 131k | } | 770 | 5.22k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 5.22k | return Status::OK(); | 772 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 3.22k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 3.22k | RETURN_IF_ERROR(Base::open(state)); | 765 | 3.22k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 41.3k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 38.0k | RETURN_IF_ERROR( | 768 | 38.0k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 38.0k | } | 770 | 3.22k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 3.22k | return Status::OK(); | 772 | 3.22k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 156 | RETURN_IF_ERROR(Base::open(state)); | 765 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 630 | RETURN_IF_ERROR( | 768 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 630 | } | 770 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 156 | return Status::OK(); | 772 | 156 | } |
|
773 | | |
774 | | template <typename Writer, typename Parent> |
775 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
776 | 100k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
777 | 100k | return _writer->sink(block, eos); |
778 | 100k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 2.02k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 2.02k | return _writer->sink(block, eos); | 778 | 2.02k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 104 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 104 | return _writer->sink(block, eos); | 778 | 104 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 77.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 77.2k | return _writer->sink(block, eos); | 778 | 77.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 6.78k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 6.78k | return _writer->sink(block, eos); | 778 | 6.78k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 9.31k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 9.31k | return _writer->sink(block, eos); | 778 | 9.31k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 5.10k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 5.10k | return _writer->sink(block, eos); | 778 | 5.10k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 306 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 306 | return _writer->sink(block, eos); | 778 | 306 | } |
|
779 | | |
780 | | template <typename Writer, typename Parent> |
781 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
782 | 81.0k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
783 | 81.0k | if (_closed) { |
784 | 0 | return Status::OK(); |
785 | 0 | } |
786 | 81.0k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
787 | 81.0k | 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 | 81.1k | if (_writer) { |
790 | 81.1k | Status st = _writer->get_writer_status(); |
791 | 81.1k | if (exec_status.ok()) { |
792 | 80.9k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
793 | 80.9k | : Status::Cancelled("force close")); |
794 | 80.9k | } else { |
795 | 113 | _writer->force_close(exec_status); |
796 | 113 | } |
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 | 81.1k | RETURN_IF_ERROR(st); |
801 | 81.1k | } |
802 | 81.0k | return Base::close(state, exec_status); |
803 | 81.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 483 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 483 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 483 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 483 | 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 | 483 | if (_writer) { | 790 | 483 | Status st = _writer->get_writer_status(); | 791 | 483 | if (exec_status.ok()) { | 792 | 483 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 483 | : Status::Cancelled("force close")); | 794 | 483 | } 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 | 483 | RETURN_IF_ERROR(st); | 801 | 483 | } | 802 | 483 | return Base::close(state, exec_status); | 803 | 483 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 80 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 80 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 80 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 80 | 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 | 80 | if (_writer) { | 790 | 80 | Status st = _writer->get_writer_status(); | 791 | 80 | if (exec_status.ok()) { | 792 | 80 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 80 | : Status::Cancelled("force close")); | 794 | 80 | } 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 | 80 | RETURN_IF_ERROR(st); | 801 | 80 | } | 802 | 80 | return Base::close(state, exec_status); | 803 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 66.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 66.1k | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 66.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 66.1k | 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.1k | if (_writer) { | 790 | 66.1k | Status st = _writer->get_writer_status(); | 791 | 66.1k | if (exec_status.ok()) { | 792 | 66.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 66.0k | : Status::Cancelled("force close")); | 794 | 66.0k | } else { | 795 | 115 | _writer->force_close(exec_status); | 796 | 115 | } | 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.1k | RETURN_IF_ERROR(st); | 801 | 66.1k | } | 802 | 66.1k | return Base::close(state, exec_status); | 803 | 66.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 5.74k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 5.74k | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 5.74k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 5.74k | 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 | 5.74k | if (_writer) { | 790 | 5.74k | Status st = _writer->get_writer_status(); | 791 | 5.74k | if (exec_status.ok()) { | 792 | 5.74k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 5.74k | : Status::Cancelled("force close")); | 794 | 5.74k | } else { | 795 | 2 | _writer->force_close(exec_status); | 796 | 2 | } | 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 | 5.74k | RETURN_IF_ERROR(st); | 801 | 5.74k | } | 802 | 5.74k | return Base::close(state, exec_status); | 803 | 5.74k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 5.22k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 5.22k | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 5.22k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 5.22k | 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 | 5.22k | if (_writer) { | 790 | 5.22k | Status st = _writer->get_writer_status(); | 791 | 5.22k | if (exec_status.ok()) { | 792 | 5.22k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 5.22k | : Status::Cancelled("force close")); | 794 | 18.4E | } else { | 795 | 18.4E | _writer->force_close(exec_status); | 796 | 18.4E | } | 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 | 5.22k | RETURN_IF_ERROR(st); | 801 | 5.22k | } | 802 | 5.22k | return Base::close(state, exec_status); | 803 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 3.22k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 3.22k | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 3.22k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 3.22k | 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 | 3.22k | if (_writer) { | 790 | 3.22k | Status st = _writer->get_writer_status(); | 791 | 3.22k | if (exec_status.ok()) { | 792 | 3.22k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 3.22k | : Status::Cancelled("force close")); | 794 | 18.4E | } else { | 795 | 18.4E | _writer->force_close(exec_status); | 796 | 18.4E | } | 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 | 3.22k | RETURN_IF_ERROR(st); | 801 | 3.22k | } | 802 | 3.22k | return Base::close(state, exec_status); | 803 | 3.22k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 156 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 156 | 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 | 156 | if (_writer) { | 790 | 156 | Status st = _writer->get_writer_status(); | 791 | 156 | if (exec_status.ok()) { | 792 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 156 | : Status::Cancelled("force close")); | 794 | 156 | } 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 | 156 | RETURN_IF_ERROR(st); | 801 | 156 | } | 802 | 156 | return Base::close(state, exec_status); | 803 | 156 | } |
|
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 |