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.06M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
116 | 2.06M | if (_parent->nereids_id() == -1) { |
117 | 1.04M | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
118 | 1.04M | } else { |
119 | 1.01M | return fmt::format("(nereids_id={})" + operator_name_suffix, |
120 | 1.01M | std::to_string(_parent->nereids_id()), |
121 | 1.01M | std::to_string(_parent->node_id())); |
122 | 1.01M | } |
123 | 2.06M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 134k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 134k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 134k | } else { | 119 | 134k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 134k | std::to_string(_parent->nereids_id()), | 121 | 134k | std::to_string(_parent->node_id())); | 122 | 134k | } | 123 | 134k | } |
_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 | 186k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 186k | if (_parent->nereids_id() == -1) { | 117 | 12 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 186k | } else { | 119 | 186k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 186k | std::to_string(_parent->nereids_id()), | 121 | 186k | std::to_string(_parent->node_id())); | 122 | 186k | } | 123 | 186k | } |
_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 | 6.07k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 6.07k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 6.07k | } else { | 119 | 6.07k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 6.07k | std::to_string(_parent->nereids_id()), | 121 | 6.07k | std::to_string(_parent->node_id())); | 122 | 6.07k | } | 123 | 6.07k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 8.00k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 8.00k | if (_parent->nereids_id() == -1) { | 117 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 7.99k | } else { | 119 | 7.99k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 7.99k | std::to_string(_parent->nereids_id()), | 121 | 7.99k | std::to_string(_parent->node_id())); | 122 | 7.99k | } | 123 | 8.00k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 117k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 117k | if (_parent->nereids_id() == -1) { | 117 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 117k | } else { | 119 | 117k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 117k | std::to_string(_parent->nereids_id()), | 121 | 117k | std::to_string(_parent->node_id())); | 122 | 117k | } | 123 | 117k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 346 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 346 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 346 | } else { | 119 | 346 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 346 | std::to_string(_parent->nereids_id()), | 121 | 346 | std::to_string(_parent->node_id())); | 122 | 346 | } | 123 | 346 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 940k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 940k | if (_parent->nereids_id() == -1) { | 117 | 425k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 515k | } else { | 119 | 515k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 515k | std::to_string(_parent->nereids_id()), | 121 | 515k | std::to_string(_parent->node_id())); | 122 | 515k | } | 123 | 940k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 39.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 39.8k | if (_parent->nereids_id() == -1) { | 117 | 2 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 39.8k | } else { | 119 | 39.8k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 39.8k | std::to_string(_parent->nereids_id()), | 121 | 39.8k | std::to_string(_parent->node_id())); | 122 | 39.8k | } | 123 | 39.8k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 368 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 368 | if (_parent->nereids_id() == -1) { | 117 | 367 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 367 | } else { | 119 | 1 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 1 | std::to_string(_parent->nereids_id()), | 121 | 1 | std::to_string(_parent->node_id())); | 122 | 1 | } | 123 | 368 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 6.96k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 6.97k | if (_parent->nereids_id() == -1) { | 117 | 6.97k | 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 | 6.96k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 411 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 411 | if (_parent->nereids_id() == -1) { | 117 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 309 | } else { | 119 | 309 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 309 | std::to_string(_parent->nereids_id()), | 121 | 309 | std::to_string(_parent->node_id())); | 122 | 309 | } | 123 | 411 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 4.66k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 4.66k | if (_parent->nereids_id() == -1) { | 117 | 10 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 4.65k | } else { | 119 | 4.65k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 4.65k | std::to_string(_parent->nereids_id()), | 121 | 4.65k | std::to_string(_parent->node_id())); | 122 | 4.65k | } | 123 | 4.66k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 613k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 613k | if (_parent->nereids_id() == -1) { | 117 | 612k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 612k | } else { | 119 | 968 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 968 | std::to_string(_parent->nereids_id()), | 121 | 968 | std::to_string(_parent->node_id())); | 122 | 968 | } | 123 | 613k | } |
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.23M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
127 | 1.23M | if (_parent->nereids_id() == -1) { |
128 | 725k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
129 | 725k | } else { |
130 | 514k | return fmt::format("(nereids_id={})" + operator_name_suffix, |
131 | 514k | std::to_string(_parent->nereids_id()), |
132 | 514k | std::to_string(_parent->node_id())); |
133 | 514k | } |
134 | 1.23M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 183k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 183k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 183k | } else { | 130 | 183k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 183k | std::to_string(_parent->nereids_id()), | 132 | 183k | std::to_string(_parent->node_id())); | 133 | 183k | } | 134 | 183k | } |
_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 | 189k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 189k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 189k | } else { | 130 | 189k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 189k | std::to_string(_parent->nereids_id()), | 132 | 189k | std::to_string(_parent->node_id())); | 133 | 189k | } | 134 | 189k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 23 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 23 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 23 | } else { | 130 | 23 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 23 | std::to_string(_parent->nereids_id()), | 132 | 23 | std::to_string(_parent->node_id())); | 133 | 23 | } | 134 | 23 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 6.21k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 6.21k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 6.21k | } else { | 130 | 6.21k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 6.21k | std::to_string(_parent->nereids_id()), | 132 | 6.21k | std::to_string(_parent->node_id())); | 133 | 6.21k | } | 134 | 6.21k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 8.09k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 8.09k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 8.08k | } else { | 130 | 8.08k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 8.08k | std::to_string(_parent->nereids_id()), | 132 | 8.08k | std::to_string(_parent->node_id())); | 133 | 8.08k | } | 134 | 8.09k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 118k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 118k | if (_parent->nereids_id() == -1) { | 128 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 118k | } else { | 130 | 118k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 118k | std::to_string(_parent->nereids_id()), | 132 | 118k | std::to_string(_parent->node_id())); | 133 | 118k | } | 134 | 118k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 352 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 352 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 352 | } else { | 130 | 352 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 352 | std::to_string(_parent->nereids_id()), | 132 | 352 | std::to_string(_parent->node_id())); | 133 | 352 | } | 134 | 352 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 24 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 24 | if (_parent->nereids_id() == -1) { | 128 | 24 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 24 | } 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 | 24 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 7.86k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 7.86k | if (_parent->nereids_id() == -1) { | 128 | 3 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 7.86k | } else { | 130 | 7.86k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 7.86k | std::to_string(_parent->nereids_id()), | 132 | 7.86k | std::to_string(_parent->node_id())); | 133 | 7.86k | } | 134 | 7.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 411 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 411 | if (_parent->nereids_id() == -1) { | 128 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 309 | } else { | 130 | 309 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 309 | std::to_string(_parent->nereids_id()), | 132 | 309 | std::to_string(_parent->node_id())); | 133 | 309 | } | 134 | 411 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 12.4k | if (_parent->nereids_id() == -1) { | 128 | 12.4k | 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 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 283k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 283k | if (_parent->nereids_id() == -1) { | 128 | 283k | 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 | 283k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 428k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 428k | if (_parent->nereids_id() == -1) { | 128 | 428k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 428k | } else { | 130 | 49 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 49 | std::to_string(_parent->nereids_id()), | 132 | 49 | std::to_string(_parent->node_id())); | 133 | 49 | } | 134 | 428k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 368 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 368 | if (_parent->nereids_id() == -1) { | 128 | 368 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 368 | } 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 | 368 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 300 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 300 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 300 | } else { | 130 | 300 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 300 | std::to_string(_parent->nereids_id()), | 132 | 300 | std::to_string(_parent->node_id())); | 133 | 300 | } | 134 | 300 | } |
|
135 | | |
136 | | template <typename SharedStateArg> |
137 | 30.5k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
138 | 30.5k | if (_terminated) { |
139 | 0 | return Status::OK(); |
140 | 0 | } |
141 | 30.5k | _terminated = true; |
142 | 30.5k | return Status::OK(); |
143 | 30.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 | 746 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 746 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 746 | _terminated = true; | 142 | 746 | return Status::OK(); | 143 | 746 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 18 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 18 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 18 | _terminated = true; | 142 | 18 | return Status::OK(); | 143 | 18 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 3 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 3 | _terminated = true; | 142 | 3 | return Status::OK(); | 143 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 3.00k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 3.00k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 3.00k | _terminated = true; | 142 | 3.00k | return Status::OK(); | 143 | 3.00k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2.30k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2.30k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2.30k | _terminated = true; | 142 | 2.30k | return Status::OK(); | 143 | 2.30k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 62 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 62 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 62 | _terminated = true; | 142 | 62 | return Status::OK(); | 143 | 62 | } |
_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 | 47 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 47 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 47 | _terminated = true; | 142 | 47 | return Status::OK(); | 143 | 47 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 4 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 4 | _terminated = true; | 142 | 4 | return Status::OK(); | 143 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 201 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 201 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 201 | _terminated = true; | 142 | 201 | return Status::OK(); | 143 | 201 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 136 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 136 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 136 | _terminated = true; | 142 | 136 | return Status::OK(); | 143 | 136 | } |
|
144 | | |
145 | 615k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
146 | 615k | return _child && _child->is_serial_operator() && !is_source() |
147 | 615k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
148 | 615k | : DataDistribution(ExchangeType::NOOP); |
149 | 615k | } |
150 | | |
151 | 79.1k | const RowDescriptor& OperatorBase::row_desc() const { |
152 | 79.1k | return _child->row_desc(); |
153 | 79.1k | } |
154 | | |
155 | | template <typename SharedStateArg> |
156 | 52.5k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
157 | 52.5k | fmt::memory_buffer debug_string_buffer; |
158 | 52.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
159 | 52.5k | return fmt::to_string(debug_string_buffer); |
160 | 52.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 | 52.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 52.4k | fmt::memory_buffer debug_string_buffer; | 158 | 52.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 52.4k | return fmt::to_string(debug_string_buffer); | 160 | 52.4k | } |
_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 Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
161 | | |
162 | | template <typename SharedStateArg> |
163 | 52.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
164 | 52.5k | fmt::memory_buffer debug_string_buffer; |
165 | 52.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
166 | 52.5k | return fmt::to_string(debug_string_buffer); |
167 | 52.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 | 15 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 15 | fmt::memory_buffer debug_string_buffer; | 165 | 15 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 15 | return fmt::to_string(debug_string_buffer); | 167 | 15 | } |
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 | 52.4k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 52.4k | fmt::memory_buffer debug_string_buffer; | 165 | 52.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 52.4k | return fmt::to_string(debug_string_buffer); | 167 | 52.4k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
168 | | |
169 | 52.6k | std::string OperatorXBase::debug_string(int indentation_level) const { |
170 | 52.6k | fmt::memory_buffer debug_string_buffer; |
171 | 52.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
172 | 52.6k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
173 | 52.6k | _is_serial_operator); |
174 | 52.6k | return fmt::to_string(debug_string_buffer); |
175 | 52.6k | } |
176 | | |
177 | 52.5k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
178 | 52.5k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
179 | 52.5k | } |
180 | | |
181 | 561k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
182 | 561k | std::string node_name = print_plan_node_type(tnode.node_type); |
183 | 561k | _nereids_id = tnode.nereids_id; |
184 | 561k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
185 | 2.89k | if (!tnode.__isset.output_tuple_id) { |
186 | 0 | return Status::InternalError("no final output tuple id"); |
187 | 0 | } |
188 | 2.89k | if (tnode.intermediate_output_tuple_id_list.size() != |
189 | 2.89k | tnode.intermediate_projections_list.size()) { |
190 | 0 | return Status::InternalError( |
191 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
192 | 0 | "intermediate_projections_list size:{}", |
193 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
194 | 0 | tnode.intermediate_projections_list.size()); |
195 | 0 | } |
196 | 2.89k | } |
197 | 561k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
198 | 561k | _op_name = substr + "_OPERATOR"; |
199 | | |
200 | 561k | if (tnode.__isset.vconjunct) { |
201 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
202 | 561k | } else if (tnode.__isset.conjuncts) { |
203 | 259k | for (const auto& conjunct : tnode.conjuncts) { |
204 | 259k | VExprContextSPtr context; |
205 | 259k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
206 | 259k | _conjuncts.emplace_back(context); |
207 | 259k | } |
208 | 87.9k | } |
209 | | |
210 | | // create the projections expr |
211 | 561k | if (tnode.__isset.projections) { |
212 | 240k | DCHECK(tnode.__isset.output_tuple_id); |
213 | 240k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
214 | 240k | } |
215 | 561k | if (!tnode.intermediate_projections_list.empty()) { |
216 | 2.90k | DCHECK(tnode.__isset.projections) << "no final projections"; |
217 | 2.90k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
218 | 3.80k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
219 | 3.80k | VExprContextSPtrs projections; |
220 | 3.80k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
221 | 3.80k | _intermediate_projections.push_back(projections); |
222 | 3.80k | } |
223 | 2.90k | } |
224 | 561k | return Status::OK(); |
225 | 561k | } |
226 | | |
227 | 589k | Status OperatorXBase::prepare(RuntimeState* state) { |
228 | 589k | for (auto& conjunct : _conjuncts) { |
229 | 258k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
230 | 258k | } |
231 | 589k | if (state->enable_adjust_conjunct_order_by_cost()) { |
232 | 539k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
233 | 341k | return a->execute_cost() < b->execute_cost(); |
234 | 341k | }); |
235 | 539k | }; |
236 | | |
237 | 593k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
238 | 3.80k | RETURN_IF_ERROR( |
239 | 3.80k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
240 | 3.80k | } |
241 | 589k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
242 | | |
243 | 589k | if (has_output_row_desc()) { |
244 | 240k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
245 | 240k | } |
246 | | |
247 | 589k | for (auto& conjunct : _conjuncts) { |
248 | 258k | RETURN_IF_ERROR(conjunct->open(state)); |
249 | 258k | } |
250 | 589k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
251 | 589k | for (auto& projections : _intermediate_projections) { |
252 | 3.80k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
253 | 3.80k | } |
254 | 589k | if (_child && !is_source()) { |
255 | 135k | RETURN_IF_ERROR(_child->prepare(state)); |
256 | 135k | } |
257 | | |
258 | 589k | if (VExpr::contains_blockable_function(_conjuncts) || |
259 | 589k | VExpr::contains_blockable_function(_projections)) { |
260 | 0 | _blockable = true; |
261 | 0 | } |
262 | | |
263 | 589k | return Status::OK(); |
264 | 589k | } |
265 | | |
266 | 7.54k | Status OperatorXBase::terminate(RuntimeState* state) { |
267 | 7.54k | if (_child && !is_source()) { |
268 | 1.01k | RETURN_IF_ERROR(_child->terminate(state)); |
269 | 1.01k | } |
270 | 7.54k | auto result = state->get_local_state_result(operator_id()); |
271 | 7.54k | if (!result) { |
272 | 0 | return result.error(); |
273 | 0 | } |
274 | 7.54k | return result.value()->terminate(state); |
275 | 7.54k | } |
276 | | |
277 | 6.11M | Status OperatorXBase::close(RuntimeState* state) { |
278 | 6.11M | if (_child && !is_source()) { |
279 | 1.35M | RETURN_IF_ERROR(_child->close(state)); |
280 | 1.35M | } |
281 | 6.11M | auto result = state->get_local_state_result(operator_id()); |
282 | 6.11M | if (!result) { |
283 | 0 | return result.error(); |
284 | 0 | } |
285 | 6.11M | return result.value()->close(state); |
286 | 6.11M | } |
287 | | |
288 | 31.0M | void PipelineXLocalStateBase::clear_origin_block() { |
289 | 31.0M | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
290 | 31.0M | } |
291 | | |
292 | 31.2M | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
293 | 31.2M | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
294 | | |
295 | 31.2M | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
296 | 31.2M | return Status::OK(); |
297 | 31.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 | 31.0M | Block* output_block) const { |
306 | 31.0M | auto* local_state = state->get_local_state(operator_id()); |
307 | 31.0M | SCOPED_TIMER(local_state->exec_time_counter()); |
308 | 31.0M | SCOPED_TIMER(local_state->_projection_timer); |
309 | 31.0M | const size_t rows = origin_block->rows(); |
310 | 31.0M | if (rows == 0) { |
311 | 30.9M | return Status::OK(); |
312 | 30.9M | } |
313 | 115k | Block input_block = *origin_block; |
314 | | |
315 | 115k | size_t bytes_usage = 0; |
316 | 115k | ColumnsWithTypeAndName new_columns; |
317 | 115k | for (const auto& projections : local_state->_intermediate_projections) { |
318 | 1.00k | if (projections.empty()) { |
319 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
320 | 0 | node_id()); |
321 | 0 | } |
322 | 1.00k | new_columns.resize(projections.size()); |
323 | 7.04k | for (int i = 0; i < projections.size(); i++) { |
324 | 6.03k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
325 | 6.03k | if (new_columns[i].column->size() != rows) { |
326 | 0 | return Status::InternalError( |
327 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
328 | 0 | "expr: {}", |
329 | 0 | new_columns[i].column->size(), rows, |
330 | 0 | projections[i]->root()->debug_string()); |
331 | 0 | } |
332 | 6.03k | } |
333 | 1.00k | Block tmp_block {new_columns}; |
334 | 1.00k | bytes_usage += tmp_block.allocated_bytes(); |
335 | 1.00k | input_block.swap(tmp_block); |
336 | 1.00k | } |
337 | | |
338 | 115k | 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 | 592k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
345 | 592k | 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 | 592k | } else { |
355 | 592k | if (_keep_origin || !from->is_exclusive()) { |
356 | 585k | to->insert_range_from(*from, 0, rows); |
357 | 585k | bytes_usage += from->allocated_bytes(); |
358 | 585k | } else { |
359 | 6.24k | to = from->assume_mutable(); |
360 | 6.24k | } |
361 | 592k | } |
362 | 592k | }; |
363 | | |
364 | 115k | MutableBlock mutable_block = |
365 | 115k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
366 | 115k | if (rows != 0) { |
367 | 115k | auto& mutable_columns = mutable_block.mutable_columns(); |
368 | 115k | const size_t origin_columns_count = input_block.columns(); |
369 | 115k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 707k | for (int i = 0; i < mutable_columns.size(); ++i) { |
371 | 592k | auto result_column_id = -1; |
372 | 592k | ColumnPtr column_ptr; |
373 | 592k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
374 | 592k | 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 | 592k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
381 | 592k | if (result_column_id >= origin_columns_count) { |
382 | 592k | bytes_usage += column_ptr->allocated_bytes(); |
383 | 592k | } |
384 | 592k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
385 | 592k | } |
386 | 115k | DCHECK(mutable_block.rows() == rows); |
387 | 115k | output_block->set_columns(std::move(mutable_columns)); |
388 | 115k | } |
389 | | |
390 | 115k | local_state->_estimate_memory_usage += bytes_usage; |
391 | | |
392 | 115k | return Status::OK(); |
393 | 115k | } |
394 | | |
395 | 34.5M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
396 | 34.5M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
397 | 34.5M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
398 | 34.5M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
399 | 34.5M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
400 | 34.5M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
401 | 34.5M | if (_debug_point_count++ % 2 == 0) { |
402 | 34.5M | return Status::OK(); |
403 | 34.5M | } |
404 | 34.5M | } |
405 | 34.5M | }); |
406 | | |
407 | 34.5M | Status status; |
408 | 34.5M | auto* local_state = state->get_local_state(operator_id()); |
409 | 34.5M | Defer defer([&]() { |
410 | 34.5M | if (status.ok()) { |
411 | 34.5M | if (auto rows = block->rows()) { |
412 | 696k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
413 | 696k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
414 | 696k | } |
415 | 34.5M | } |
416 | 34.5M | }); |
417 | 34.5M | if (_output_row_descriptor) { |
418 | 31.0M | local_state->clear_origin_block(); |
419 | 31.0M | status = get_block(state, &local_state->_origin_block, eos); |
420 | 31.0M | if (UNLIKELY(!status.ok())) { |
421 | 13 | return status; |
422 | 13 | } |
423 | 31.0M | status = do_projections(state, &local_state->_origin_block, block); |
424 | 31.0M | return status; |
425 | 31.0M | } |
426 | 3.45M | status = get_block(state, block, eos); |
427 | 3.45M | RETURN_IF_ERROR(block->check_type_and_column()); |
428 | 3.45M | return status; |
429 | 3.45M | } |
430 | | |
431 | 33.0M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
432 | 33.0M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
433 | 1.59k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
434 | 1.59k | *eos = true; |
435 | 1.59k | } |
436 | | |
437 | 33.0M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
438 | 33.0M | auto op_name = to_lower(_parent->_op_name); |
439 | 33.0M | auto arg_op_name = dp->param<std::string>("op_name"); |
440 | 33.0M | arg_op_name = to_lower(arg_op_name); |
441 | | |
442 | 33.0M | if (op_name == arg_op_name) { |
443 | 33.0M | *eos = true; |
444 | 33.0M | } |
445 | 33.0M | }); |
446 | | |
447 | 33.0M | if (auto rows = block->rows()) { |
448 | 624k | _num_rows_returned += rows; |
449 | 624k | } |
450 | 33.0M | } |
451 | | |
452 | 30.5k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
453 | 30.5k | auto result = state->get_sink_local_state_result(); |
454 | 30.5k | if (!result) { |
455 | 0 | return result.error(); |
456 | 0 | } |
457 | 30.5k | return result.value()->terminate(state); |
458 | 30.5k | } |
459 | | |
460 | 52.6k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
461 | 52.6k | fmt::memory_buffer debug_string_buffer; |
462 | | |
463 | 52.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
464 | 52.6k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
465 | 52.6k | return fmt::to_string(debug_string_buffer); |
466 | 52.6k | } |
467 | | |
468 | 52.5k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
469 | 52.5k | return state->get_sink_local_state()->debug_string(indentation_level); |
470 | 52.5k | } |
471 | | |
472 | 332k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
473 | 332k | std::string op_name = "UNKNOWN_SINK"; |
474 | 332k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
475 | | |
476 | 332k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
477 | 332k | op_name = it->second; |
478 | 332k | } |
479 | 332k | _name = op_name + "_OPERATOR"; |
480 | 332k | return Status::OK(); |
481 | 332k | } |
482 | | |
483 | 166k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
484 | 166k | std::string op_name = print_plan_node_type(tnode.node_type); |
485 | 166k | _nereids_id = tnode.nereids_id; |
486 | 166k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
487 | 166k | _name = substr + "_SINK_OPERATOR"; |
488 | 166k | return Status::OK(); |
489 | 166k | } |
490 | | |
491 | | template <typename LocalStateType> |
492 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
493 | 1.81M | LocalSinkStateInfo& info) { |
494 | 1.81M | auto local_state = LocalStateType::create_unique(this, state); |
495 | 1.81M | RETURN_IF_ERROR(local_state->init(state, info)); |
496 | 1.81M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
497 | 1.81M | return Status::OK(); |
498 | 1.81M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 183k | LocalSinkStateInfo& info) { | 494 | 183k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 183k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 183k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 183k | return Status::OK(); | 498 | 183k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 364k | LocalSinkStateInfo& info) { | 494 | 364k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 364k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 364k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 364k | return Status::OK(); | 498 | 364k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 3 | LocalSinkStateInfo& info) { | 494 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 3 | return Status::OK(); | 498 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 343 | LocalSinkStateInfo& info) { | 494 | 343 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 343 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 343 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 343 | return Status::OK(); | 498 | 343 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 64.9k | LocalSinkStateInfo& info) { | 494 | 64.9k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 64.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 64.9k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 64.9k | return Status::OK(); | 498 | 64.9k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 6 | LocalSinkStateInfo& info) { | 494 | 6 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 6 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 6 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 6 | return Status::OK(); | 498 | 6 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 8.09k | LocalSinkStateInfo& info) { | 494 | 8.09k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 8.09k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 8.09k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 8.09k | return Status::OK(); | 498 | 8.09k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 21 | LocalSinkStateInfo& info) { | 494 | 21 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 21 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 21 | return Status::OK(); | 498 | 21 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_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_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 23 | LocalSinkStateInfo& info) { | 494 | 23 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 23 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 23 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 23 | return Status::OK(); | 498 | 23 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 284k | LocalSinkStateInfo& info) { | 494 | 284k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 284k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 284k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 284k | return Status::OK(); | 498 | 284k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 118k | LocalSinkStateInfo& info) { | 494 | 118k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 118k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 118k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 118k | return Status::OK(); | 498 | 118k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 352 | LocalSinkStateInfo& info) { | 494 | 352 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 352 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 352 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 352 | return Status::OK(); | 498 | 352 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 572k | LocalSinkStateInfo& info) { | 494 | 572k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 572k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 572k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 572k | return Status::OK(); | 498 | 572k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 6.23k | LocalSinkStateInfo& info) { | 494 | 6.23k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 6.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 6.23k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 6.23k | return Status::OK(); | 498 | 6.23k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 7.85k | LocalSinkStateInfo& info) { | 494 | 7.85k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 7.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 7.85k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 7.85k | return Status::OK(); | 498 | 7.85k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.84k | LocalSinkStateInfo& info) { | 494 | 2.84k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.84k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.84k | return Status::OK(); | 498 | 2.84k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 314 | LocalSinkStateInfo& info) { | 494 | 314 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 314 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 314 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 314 | return Status::OK(); | 498 | 314 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 4.63k | LocalSinkStateInfo& info) { | 494 | 4.63k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 4.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 4.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 4.63k | return Status::OK(); | 498 | 4.63k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.71k | LocalSinkStateInfo& info) { | 494 | 2.71k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.71k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.71k | return Status::OK(); | 498 | 2.71k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.42k | LocalSinkStateInfo& info) { | 494 | 2.42k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.42k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.42k | return Status::OK(); | 498 | 2.42k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.60k | LocalSinkStateInfo& info) { | 494 | 2.60k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.60k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.60k | return Status::OK(); | 498 | 2.60k | } |
_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 | 365 | LocalSinkStateInfo& info) { | 494 | 365 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 365 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 365 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 365 | return Status::OK(); | 498 | 365 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 105 | LocalSinkStateInfo& info) { | 494 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 105 | return Status::OK(); | 498 | 105 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 150 | LocalSinkStateInfo& info) { | 494 | 150 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 150 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 150 | return Status::OK(); | 498 | 150 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 150 | LocalSinkStateInfo& info) { | 494 | 150 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 150 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 150 | return Status::OK(); | 498 | 150 | } |
|
499 | | |
500 | | template <typename LocalStateType> |
501 | 1.50M | 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.50M | } else { |
509 | 1.50M | auto ss = LocalStateType::SharedStateType::create_shared(); |
510 | 1.50M | ss->id = operator_id(); |
511 | 1.50M | for (auto& dest : dests_id()) { |
512 | 1.49M | ss->related_op_ids.insert(dest); |
513 | 1.49M | } |
514 | 1.50M | return ss; |
515 | 1.50M | } |
516 | 1.50M | } _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 | 364k | 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 | 364k | } else { | 509 | 364k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 364k | ss->id = operator_id(); | 511 | 364k | for (auto& dest : dests_id()) { | 512 | 363k | ss->related_op_ids.insert(dest); | 513 | 363k | } | 514 | 364k | return ss; | 515 | 364k | } | 516 | 364k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 3 | } else { | 509 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 3 | ss->id = operator_id(); | 511 | 3 | for (auto& dest : dests_id()) { | 512 | 3 | ss->related_op_ids.insert(dest); | 513 | 3 | } | 514 | 3 | return ss; | 515 | 3 | } | 516 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 343 | 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 | 343 | } else { | 509 | 343 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 343 | ss->id = operator_id(); | 511 | 343 | for (auto& dest : dests_id()) { | 512 | 343 | ss->related_op_ids.insert(dest); | 513 | 343 | } | 514 | 343 | return ss; | 515 | 343 | } | 516 | 343 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 64.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 64.1k | } else { | 509 | 64.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 64.1k | ss->id = operator_id(); | 511 | 64.1k | for (auto& dest : dests_id()) { | 512 | 64.0k | ss->related_op_ids.insert(dest); | 513 | 64.0k | } | 514 | 64.1k | return ss; | 515 | 64.1k | } | 516 | 64.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 6 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 6 | } else { | 509 | 6 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 6 | ss->id = operator_id(); | 511 | 6 | for (auto& dest : dests_id()) { | 512 | 6 | ss->related_op_ids.insert(dest); | 513 | 6 | } | 514 | 6 | return ss; | 515 | 6 | } | 516 | 6 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 8.10k | 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.10k | } else { | 509 | 8.10k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 8.10k | ss->id = operator_id(); | 511 | 8.10k | for (auto& dest : dests_id()) { | 512 | 8.09k | ss->related_op_ids.insert(dest); | 513 | 8.09k | } | 514 | 8.10k | return ss; | 515 | 8.10k | } | 516 | 8.10k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 21 | 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 | 21 | } else { | 509 | 21 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 21 | ss->id = operator_id(); | 511 | 21 | for (auto& dest : dests_id()) { | 512 | 21 | ss->related_op_ids.insert(dest); | 513 | 21 | } | 514 | 21 | return ss; | 515 | 21 | } | 516 | 21 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 190k | 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 | 190k | } else { | 509 | 190k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 190k | ss->id = operator_id(); | 511 | 190k | for (auto& dest : dests_id()) { | 512 | 189k | ss->related_op_ids.insert(dest); | 513 | 189k | } | 514 | 190k | return ss; | 515 | 190k | } | 516 | 190k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 25 | 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 | 25 | } else { | 509 | 25 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 25 | ss->id = operator_id(); | 511 | 25 | for (auto& dest : dests_id()) { | 512 | 25 | ss->related_op_ids.insert(dest); | 513 | 25 | } | 514 | 25 | return ss; | 515 | 25 | } | 516 | 25 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 118k | 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 | 118k | } else { | 509 | 118k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 118k | ss->id = operator_id(); | 511 | 118k | for (auto& dest : dests_id()) { | 512 | 118k | ss->related_op_ids.insert(dest); | 513 | 118k | } | 514 | 118k | return ss; | 515 | 118k | } | 516 | 118k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 351 | 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 | 351 | } else { | 509 | 351 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 351 | ss->id = operator_id(); | 511 | 351 | for (auto& dest : dests_id()) { | 512 | 351 | ss->related_op_ids.insert(dest); | 513 | 351 | } | 514 | 351 | return ss; | 515 | 351 | } | 516 | 351 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 574k | 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 | 574k | } else { | 509 | 574k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 574k | ss->id = operator_id(); | 511 | 574k | for (auto& dest : dests_id()) { | 512 | 571k | ss->related_op_ids.insert(dest); | 513 | 571k | } | 514 | 574k | return ss; | 515 | 574k | } | 516 | 574k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 6.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 | 6.22k | } else { | 509 | 6.22k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 6.22k | ss->id = operator_id(); | 511 | 6.22k | for (auto& dest : dests_id()) { | 512 | 6.20k | ss->related_op_ids.insert(dest); | 513 | 6.20k | } | 514 | 6.22k | return ss; | 515 | 6.22k | } | 516 | 6.22k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 414 | 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 | 414 | } else { | 509 | 414 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 414 | ss->id = operator_id(); | 511 | 415 | for (auto& dest : dests_id()) { | 512 | 415 | ss->related_op_ids.insert(dest); | 513 | 415 | } | 514 | 414 | return ss; | 515 | 414 | } | 516 | 414 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.45k | 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.45k | } else { | 509 | 2.45k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.45k | ss->id = operator_id(); | 511 | 2.45k | for (auto& dest : dests_id()) { | 512 | 2.43k | ss->related_op_ids.insert(dest); | 513 | 2.43k | } | 514 | 2.45k | return ss; | 515 | 2.45k | } | 516 | 2.45k | } |
_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.59k | ss->related_op_ids.insert(dest); | 513 | 2.59k | } | 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 | 105 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 105 | } else { | 509 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 105 | ss->id = operator_id(); | 511 | 105 | for (auto& dest : dests_id()) { | 512 | 105 | ss->related_op_ids.insert(dest); | 513 | 105 | } | 514 | 105 | return ss; | 515 | 105 | } | 516 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
517 | | |
518 | | template <typename LocalStateType> |
519 | 2.39M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
520 | 2.39M | auto local_state = LocalStateType::create_unique(state, this); |
521 | 2.39M | RETURN_IF_ERROR(local_state->init(state, info)); |
522 | 2.39M | state->emplace_local_state(operator_id(), std::move(local_state)); |
523 | 2.39M | return Status::OK(); |
524 | 2.39M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 134k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 134k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 134k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 134k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 134k | return Status::OK(); | 524 | 134k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 317k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 317k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 317k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 317k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 317k | return Status::OK(); | 524 | 317k | } |
_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 | 2.66k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.66k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.66k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.66k | return Status::OK(); | 524 | 2.66k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 8.01k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 8.01k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 8.01k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 8.01k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 8.01k | return Status::OK(); | 524 | 8.01k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 10.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 10.2k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 10.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 10.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 10.2k | return Status::OK(); | 524 | 10.2k | } |
_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 | 178k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 178k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 178k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 178k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 178k | return Status::OK(); | 524 | 178k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 118k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 118k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 118k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 118k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 118k | return Status::OK(); | 524 | 118k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 346 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 346 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 346 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 346 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 346 | return Status::OK(); | 524 | 346 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 3.93k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 3.93k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 3.93k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 3.93k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 3.93k | return Status::OK(); | 524 | 3.93k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 426k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 426k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 426k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 426k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 426k | return Status::OK(); | 524 | 426k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.18k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.18k | return Status::OK(); | 524 | 1.18k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 6.14k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 6.14k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 6.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 6.14k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 6.14k | return Status::OK(); | 524 | 6.14k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 21 | return Status::OK(); | 524 | 21 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.54k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.54k | return Status::OK(); | 524 | 1.54k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 40.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 40.0k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 40.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 40.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 40.0k | return Status::OK(); | 524 | 40.0k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 6.97k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 6.97k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 6.97k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 6.97k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 6.97k | return Status::OK(); | 524 | 6.97k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 311 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 311 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 311 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 311 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 311 | return Status::OK(); | 524 | 311 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.31k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.31k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.31k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.31k | return Status::OK(); | 524 | 2.31k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.44k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.44k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.44k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.44k | return Status::OK(); | 524 | 2.44k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 267 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 267 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 267 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 267 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 267 | return Status::OK(); | 524 | 267 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.54k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.54k | return Status::OK(); | 524 | 1.54k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 4.93k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 4.93k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 4.93k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 4.93k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 4.93k | return Status::OK(); | 524 | 4.93k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 620k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 620k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 620k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 620k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 620k | return Status::OK(); | 524 | 620k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 365 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 365 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 365 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 365 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 365 | return Status::OK(); | 524 | 365 | } |
_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 | 672 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 672 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 672 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 672 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 672 | return Status::OK(); | 524 | 672 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 720 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 720 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 720 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 720 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 720 | return Status::OK(); | 524 | 720 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 8.98k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 8.98k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 8.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 8.98k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 8.98k | return Status::OK(); | 524 | 8.98k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 494k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 494k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 494k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 494k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 494k | return Status::OK(); | 524 | 494k | } |
|
525 | | |
526 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
527 | | RuntimeState* state) |
528 | 1.81M | : _parent(parent), _state(state) {} |
529 | | |
530 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
531 | 2.38M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
532 | | |
533 | | template <typename SharedStateArg> |
534 | 2.39M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
535 | 2.39M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
536 | 2.39M | _common_profile.reset(new RuntimeProfile("CommonCounters")); |
537 | 2.39M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); |
538 | 2.39M | _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.39M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
542 | 2.39M | _operator_profile->add_child(_common_profile.get(), true); |
543 | 2.39M | _operator_profile->add_child(_custom_profile.get(), true); |
544 | 2.39M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
545 | 2.39M | if constexpr (!is_fake_shared) { |
546 | 1.12M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
547 | 628k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
548 | 628k | .first.get() |
549 | 628k | ->template cast<SharedStateArg>(); |
550 | | |
551 | 628k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
552 | 628k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
553 | 628k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
554 | 628k | } else if (info.shared_state) { |
555 | 448k | 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 | 448k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
560 | | |
561 | 448k | _dependency = _shared_state->create_source_dependency( |
562 | 448k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
563 | 448k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
564 | 448k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
565 | 448k | } else { |
566 | 52.4k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
567 | 3.64k | DCHECK(false); |
568 | 3.64k | } |
569 | 52.4k | } |
570 | 1.12M | } |
571 | | |
572 | 2.39M | 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.39M | _rows_returned_counter = |
577 | 2.39M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); |
578 | 2.39M | _blocks_returned_counter = |
579 | 2.39M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); |
580 | 2.39M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); |
581 | 2.39M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
582 | 2.39M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
583 | 2.39M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
584 | 2.39M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
585 | 2.39M | _memory_used_counter = |
586 | 2.39M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
587 | 2.39M | _common_profile->add_info_string("IsColocate", |
588 | 2.39M | std::to_string(_parent->is_colocated_operator())); |
589 | 2.39M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
590 | 2.39M | _common_profile->add_info_string("FollowedByShuffledOperator", |
591 | 2.39M | std::to_string(_parent->followed_by_shuffled_operator())); |
592 | 2.39M | return Status::OK(); |
593 | 2.39M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 135k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 135k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 135k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 135k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 135k | _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 | 135k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 135k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 135k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 135k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 135k | if constexpr (!is_fake_shared) { | 546 | 135k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 12.3k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 12.3k | .first.get() | 549 | 12.3k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 12.3k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 12.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 12.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 | 121k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 121k | _dependency = _shared_state->create_source_dependency( | 562 | 121k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 121k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 121k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 121k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1.74k | } | 570 | 135k | } | 571 | | | 572 | 135k | 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 | 135k | _rows_returned_counter = | 577 | 135k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 135k | _blocks_returned_counter = | 579 | 135k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 135k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 135k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 135k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 135k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 135k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 135k | _memory_used_counter = | 586 | 135k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 135k | _common_profile->add_info_string("IsColocate", | 588 | 135k | std::to_string(_parent->is_colocated_operator())); | 589 | 135k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 135k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 135k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 135k | return Status::OK(); | 593 | 135k | } |
_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 | 188k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 188k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 188k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 188k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 188k | _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 | 188k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 188k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 188k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 188k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 188k | if constexpr (!is_fake_shared) { | 546 | 188k | 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 | 188k | } 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 | 180k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 180k | _dependency = _shared_state->create_source_dependency( | 562 | 180k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 180k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 180k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 180k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 8.35k | } | 570 | 188k | } | 571 | | | 572 | 188k | 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 | 188k | _rows_returned_counter = | 577 | 188k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 188k | _blocks_returned_counter = | 579 | 188k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 188k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 188k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 188k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 188k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 188k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 188k | _memory_used_counter = | 586 | 188k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 188k | _common_profile->add_info_string("IsColocate", | 588 | 188k | std::to_string(_parent->is_colocated_operator())); | 589 | 188k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 188k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 188k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 188k | return Status::OK(); | 593 | 188k | } |
_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 | 6.08k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 6.08k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 6.08k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 6.08k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 6.08k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 6.08k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 6.08k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 6.08k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 6.08k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 6.08k | if constexpr (!is_fake_shared) { | 546 | 6.08k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 6.11k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 6.11k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 6.11k | _dependency = _shared_state->create_source_dependency( | 562 | 6.11k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 6.11k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 6.11k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 18.4E | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 18.4E | } | 570 | 6.08k | } | 571 | | | 572 | 6.08k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 6.08k | _rows_returned_counter = | 577 | 6.08k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 6.08k | _blocks_returned_counter = | 579 | 6.08k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 6.08k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 6.08k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 6.08k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 6.08k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 6.08k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 6.08k | _memory_used_counter = | 586 | 6.08k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 6.08k | _common_profile->add_info_string("IsColocate", | 588 | 6.08k | std::to_string(_parent->is_colocated_operator())); | 589 | 6.08k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 6.08k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 6.08k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 6.08k | return Status::OK(); | 593 | 6.08k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 8.01k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 8.01k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 8.01k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 8.01k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 8.01k | _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.01k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 8.01k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 8.01k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 8.01k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 8.01k | if constexpr (!is_fake_shared) { | 546 | 8.01k | 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.01k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 7.92k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 7.92k | _dependency = _shared_state->create_source_dependency( | 562 | 7.92k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 7.92k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 7.92k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 7.92k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 92 | } | 570 | 8.01k | } | 571 | | | 572 | 8.01k | 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.01k | _rows_returned_counter = | 577 | 8.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 8.01k | _blocks_returned_counter = | 579 | 8.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 8.01k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 8.01k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 8.01k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 8.01k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 8.01k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 8.01k | _memory_used_counter = | 586 | 8.01k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 8.01k | _common_profile->add_info_string("IsColocate", | 588 | 8.01k | std::to_string(_parent->is_colocated_operator())); | 589 | 8.01k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 8.01k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 8.01k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 8.01k | return Status::OK(); | 593 | 8.01k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 118k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 118k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 118k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 118k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 118k | _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 | 118k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 118k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 118k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 118k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 118k | if constexpr (!is_fake_shared) { | 546 | 118k | 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 | 118k | } 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 | 116k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 116k | _dependency = _shared_state->create_source_dependency( | 562 | 116k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 116k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 116k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 116k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1.85k | } | 570 | 118k | } | 571 | | | 572 | 118k | 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 | 118k | _rows_returned_counter = | 577 | 118k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 118k | _blocks_returned_counter = | 579 | 118k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 118k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 118k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 118k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 118k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 118k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 118k | _memory_used_counter = | 586 | 118k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 118k | _common_profile->add_info_string("IsColocate", | 588 | 118k | std::to_string(_parent->is_colocated_operator())); | 589 | 118k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 118k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 118k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 118k | return Status::OK(); | 593 | 118k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 346 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 346 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 346 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 346 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 346 | _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 | 346 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 346 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 346 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 346 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 346 | if constexpr (!is_fake_shared) { | 546 | 346 | 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 | 346 | } 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 | 346 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 346 | _dependency = _shared_state->create_source_dependency( | 562 | 346 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 346 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 346 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 346 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 346 | } | 571 | | | 572 | 346 | 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 | 346 | _rows_returned_counter = | 577 | 346 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 346 | _blocks_returned_counter = | 579 | 346 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 346 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 346 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 346 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 346 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 346 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 346 | _memory_used_counter = | 586 | 346 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 346 | _common_profile->add_info_string("IsColocate", | 588 | 346 | std::to_string(_parent->is_colocated_operator())); | 589 | 346 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 346 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 346 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 346 | return Status::OK(); | 593 | 346 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 1.26M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 1.26M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 1.26M | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 1.26M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 1.26M | _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.26M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 1.26M | _operator_profile->add_child(_common_profile.get(), true); | 543 | 1.26M | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 1.26M | 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.26M | 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.26M | _rows_returned_counter = | 577 | 1.26M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 1.26M | _blocks_returned_counter = | 579 | 1.26M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 1.26M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 1.26M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 1.26M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 1.26M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 1.26M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 1.26M | _memory_used_counter = | 586 | 1.26M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 1.26M | _common_profile->add_info_string("IsColocate", | 588 | 1.26M | std::to_string(_parent->is_colocated_operator())); | 589 | 1.26M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 1.26M | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 1.26M | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 1.26M | return Status::OK(); | 593 | 1.26M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 39.9k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 39.9k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 39.9k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 39.9k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 39.9k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 39.9k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 39.9k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 39.9k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 39.9k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 39.9k | if constexpr (!is_fake_shared) { | 546 | 39.9k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 39.9k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 3.72k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 3.72k | _dependency = _shared_state->create_source_dependency( | 562 | 3.72k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 3.72k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 3.72k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 36.2k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 36.2k | } | 570 | 39.9k | } | 571 | | | 572 | 39.9k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 39.9k | _rows_returned_counter = | 577 | 39.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 39.9k | _blocks_returned_counter = | 579 | 39.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 39.9k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 39.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 39.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 39.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 39.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 39.9k | _memory_used_counter = | 586 | 39.9k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 39.9k | _common_profile->add_info_string("IsColocate", | 588 | 39.9k | std::to_string(_parent->is_colocated_operator())); | 589 | 39.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 39.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 39.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 39.9k | return Status::OK(); | 593 | 39.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 368 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 368 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 368 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 368 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 368 | _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 | 368 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 368 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 368 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 368 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 368 | if constexpr (!is_fake_shared) { | 546 | 368 | 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 | 368 | } 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 | 367 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 367 | _dependency = _shared_state->create_source_dependency( | 562 | 367 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 367 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 367 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 367 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1 | } | 570 | 368 | } | 571 | | | 572 | 368 | 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 | 368 | _rows_returned_counter = | 577 | 368 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 368 | _blocks_returned_counter = | 579 | 368 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 368 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 368 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 368 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 368 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 368 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 368 | _memory_used_counter = | 586 | 368 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 368 | _common_profile->add_info_string("IsColocate", | 588 | 368 | std::to_string(_parent->is_colocated_operator())); | 589 | 368 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 368 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 368 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 368 | return Status::OK(); | 593 | 368 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 6.97k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 6.97k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 6.97k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 6.97k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 6.97k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 6.97k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 6.97k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 6.97k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 6.97k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 6.97k | if constexpr (!is_fake_shared) { | 546 | 6.97k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 6.97k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 6.95k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 6.95k | _dependency = _shared_state->create_source_dependency( | 562 | 6.95k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 6.95k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 6.95k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 6.95k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 13 | } | 570 | 6.97k | } | 571 | | | 572 | 6.97k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 6.97k | _rows_returned_counter = | 577 | 6.97k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 6.97k | _blocks_returned_counter = | 579 | 6.97k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 6.97k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 6.97k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 6.97k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 6.97k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 6.97k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 6.97k | _memory_used_counter = | 586 | 6.97k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 6.97k | _common_profile->add_info_string("IsColocate", | 588 | 6.97k | std::to_string(_parent->is_colocated_operator())); | 589 | 6.97k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 6.97k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 6.97k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 6.97k | return Status::OK(); | 593 | 6.97k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 411 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 411 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 411 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 411 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 411 | _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 | 411 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 411 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 411 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 411 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 411 | if constexpr (!is_fake_shared) { | 546 | 411 | 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 | 413 | } 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 | 413 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 413 | _dependency = _shared_state->create_source_dependency( | 562 | 413 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 413 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 413 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 18.4E | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 18.4E | } | 570 | 411 | } | 571 | | | 572 | 411 | 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 | 411 | _rows_returned_counter = | 577 | 411 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 411 | _blocks_returned_counter = | 579 | 411 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 411 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 411 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 411 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 411 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 411 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 411 | _memory_used_counter = | 586 | 411 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 411 | _common_profile->add_info_string("IsColocate", | 588 | 411 | std::to_string(_parent->is_colocated_operator())); | 589 | 411 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 411 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 411 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 411 | return Status::OK(); | 593 | 411 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 4.85k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 4.85k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 4.85k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 4.85k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 4.85k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 4.85k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 4.85k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 4.85k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 4.85k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 4.85k | if constexpr (!is_fake_shared) { | 546 | 4.85k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 4.85k | } 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.29k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 4.29k | _dependency = _shared_state->create_source_dependency( | 562 | 4.29k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 4.29k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 4.29k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 4.29k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 563 | } | 570 | 4.85k | } | 571 | | | 572 | 4.85k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 4.85k | _rows_returned_counter = | 577 | 4.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 4.85k | _blocks_returned_counter = | 579 | 4.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 4.85k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 4.85k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 4.85k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 4.85k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 4.85k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 4.85k | _memory_used_counter = | 586 | 4.85k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 4.85k | _common_profile->add_info_string("IsColocate", | 588 | 4.85k | std::to_string(_parent->is_colocated_operator())); | 589 | 4.85k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 4.85k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 4.85k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 4.85k | return Status::OK(); | 593 | 4.85k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 619k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 619k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 619k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 619k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 619k | _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 | 619k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 619k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 619k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 619k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 619k | if constexpr (!is_fake_shared) { | 546 | 619k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 615k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 615k | .first.get() | 549 | 615k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 615k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 615k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 615k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 615k | } 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 | 3.64k | } else { | 566 | 3.64k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | 3.64k | DCHECK(false); | 568 | 3.64k | } | 569 | 3.64k | } | 570 | 619k | } | 571 | | | 572 | 619k | 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 | 619k | _rows_returned_counter = | 577 | 619k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 619k | _blocks_returned_counter = | 579 | 619k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 619k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 619k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 619k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 619k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 619k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 619k | _memory_used_counter = | 586 | 619k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 619k | _common_profile->add_info_string("IsColocate", | 588 | 619k | std::to_string(_parent->is_colocated_operator())); | 589 | 619k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 619k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 619k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 619k | return Status::OK(); | 593 | 619k | } |
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.41M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
597 | 2.41M | _conjuncts.resize(_parent->_conjuncts.size()); |
598 | 2.41M | _projections.resize(_parent->_projections.size()); |
599 | 2.74M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
600 | 326k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
601 | 326k | } |
602 | 4.95M | for (size_t i = 0; i < _projections.size(); i++) { |
603 | 2.54M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
604 | 2.54M | } |
605 | 2.41M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
606 | 2.42M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
607 | 5.94k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
608 | 38.4k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
609 | 32.4k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
610 | 32.4k | state, _intermediate_projections[i][j])); |
611 | 32.4k | } |
612 | 5.94k | } |
613 | 2.41M | return Status::OK(); |
614 | 2.41M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 135k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 135k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 135k | _projections.resize(_parent->_projections.size()); | 599 | 137k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.32k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.32k | } | 602 | 704k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 568k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 568k | } | 605 | 135k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 136k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 772 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 6.68k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 5.91k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 5.91k | state, _intermediate_projections[i][j])); | 611 | 5.91k | } | 612 | 772 | } | 613 | 135k | return Status::OK(); | 614 | 135k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 1 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 1 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 1 | _projections.resize(_parent->_projections.size()); | 599 | 1 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 1 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 1 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 1 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 1 | return Status::OK(); | 614 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 191k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 191k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 191k | _projections.resize(_parent->_projections.size()); | 599 | 191k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 209k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 18.1k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 18.1k | } | 605 | 191k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 191k | 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 | 191k | return Status::OK(); | 614 | 191k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 19 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 19 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 19 | _projections.resize(_parent->_projections.size()); | 599 | 19 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 19 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 19 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 19 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 19 | return Status::OK(); | 614 | 19 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 6.24k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 6.24k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 6.24k | _projections.resize(_parent->_projections.size()); | 599 | 6.44k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 199 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 199 | } | 602 | 27.7k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 21.5k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 21.5k | } | 605 | 6.24k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 6.28k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 40 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 301 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 261 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 261 | state, _intermediate_projections[i][j])); | 611 | 261 | } | 612 | 40 | } | 613 | 6.24k | return Status::OK(); | 614 | 6.24k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 8.12k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 8.12k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 8.12k | _projections.resize(_parent->_projections.size()); | 599 | 9.06k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 947 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 947 | } | 602 | 22.2k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 14.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 14.0k | } | 605 | 8.12k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 8.31k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 193 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 1.47k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 1.28k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 1.28k | state, _intermediate_projections[i][j])); | 611 | 1.28k | } | 612 | 193 | } | 613 | 8.12k | return Status::OK(); | 614 | 8.12k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 118k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 118k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 118k | _projections.resize(_parent->_projections.size()); | 599 | 120k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.69k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.69k | } | 602 | 437k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 318k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 318k | } | 605 | 118k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 118k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 195 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 1.73k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 1.53k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 1.53k | state, _intermediate_projections[i][j])); | 611 | 1.53k | } | 612 | 195 | } | 613 | 118k | return Status::OK(); | 614 | 118k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 350 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 350 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 350 | _projections.resize(_parent->_projections.size()); | 599 | 350 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 838 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 488 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 488 | } | 605 | 350 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 350 | 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 | 350 | return Status::OK(); | 614 | 350 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 1.27M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 1.27M | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 1.27M | _projections.resize(_parent->_projections.size()); | 599 | 1.59M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 322k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 322k | } | 602 | 2.77M | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 1.50M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 1.50M | } | 605 | 1.27M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 1.27M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 4.74k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 28.2k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 23.4k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 23.4k | state, _intermediate_projections[i][j])); | 611 | 23.4k | } | 612 | 4.74k | } | 613 | 1.27M | return Status::OK(); | 614 | 1.27M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 40.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 40.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 40.1k | _projections.resize(_parent->_projections.size()); | 599 | 40.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 | 133k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 93.1k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 93.1k | } | 605 | 40.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 40.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 | 40.1k | return Status::OK(); | 614 | 40.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 369 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 369 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 369 | _projections.resize(_parent->_projections.size()); | 599 | 369 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 369 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 369 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 369 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 369 | return Status::OK(); | 614 | 369 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 6.97k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 6.97k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 6.97k | _projections.resize(_parent->_projections.size()); | 599 | 7.71k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 741 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 741 | } | 602 | 6.97k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 6.97k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 6.97k | 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 | 6.97k | return Status::OK(); | 614 | 6.97k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 416 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 416 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 416 | _projections.resize(_parent->_projections.size()); | 599 | 416 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 416 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 416 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 416 | 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 | 416 | return Status::OK(); | 614 | 416 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 5.10k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 5.10k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 5.10k | _projections.resize(_parent->_projections.size()); | 599 | 5.10k | 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.10k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 5.10k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 5.10k | 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.10k | return Status::OK(); | 614 | 5.10k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 628k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 628k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 628k | _projections.resize(_parent->_projections.size()); | 599 | 628k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 628k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 628k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 628k | 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 | 628k | return Status::OK(); | 614 | 628k | } |
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 | 7.54k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
618 | 7.54k | if (_terminated) { |
619 | 0 | return Status::OK(); |
620 | 0 | } |
621 | 7.54k | _terminated = true; |
622 | 7.54k | return Status::OK(); |
623 | 7.54k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 453 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 453 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 453 | _terminated = true; | 622 | 453 | return Status::OK(); | 623 | 453 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 145 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 145 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 145 | _terminated = true; | 622 | 145 | return Status::OK(); | 623 | 145 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 122 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 122 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 122 | _terminated = true; | 622 | 122 | return Status::OK(); | 623 | 122 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 2 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 2 | _terminated = true; | 622 | 2 | return Status::OK(); | 623 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 1.07k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 1.07k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 1.07k | _terminated = true; | 622 | 1.07k | return Status::OK(); | 623 | 1.07k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 4.70k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 4.70k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 4.70k | _terminated = true; | 622 | 4.70k | return Status::OK(); | 623 | 4.70k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 4 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 4 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 4 | _terminated = true; | 622 | 4 | return Status::OK(); | 623 | 4 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 49 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 49 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 49 | _terminated = true; | 622 | 49 | return Status::OK(); | 623 | 49 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 201 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 201 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 201 | _terminated = true; | 622 | 201 | return Status::OK(); | 623 | 201 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 772 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 772 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 772 | _terminated = true; | 622 | 772 | return Status::OK(); | 623 | 772 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 16 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 16 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 16 | _terminated = true; | 622 | 16 | return Status::OK(); | 623 | 16 | } |
|
624 | | |
625 | | template <typename SharedStateArg> |
626 | 2.63M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
627 | 2.63M | if (_closed) { |
628 | 218k | return Status::OK(); |
629 | 218k | } |
630 | 2.41M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
631 | 1.14M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
632 | 1.14M | } |
633 | 2.41M | _closed = true; |
634 | 2.41M | return Status::OK(); |
635 | 2.63M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 135k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 135k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 135k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 135k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 135k | } | 633 | 135k | _closed = true; | 634 | 135k | return Status::OK(); | 635 | 135k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 1 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 1 | } | 633 | 1 | _closed = true; | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 380k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 380k | if (_closed) { | 628 | 190k | return Status::OK(); | 629 | 190k | } | 630 | 190k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 190k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 190k | } | 633 | 190k | _closed = true; | 634 | 190k | return Status::OK(); | 635 | 380k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 19 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 19 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 19 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 19 | } | 633 | 19 | _closed = true; | 634 | 19 | return Status::OK(); | 635 | 19 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 6.23k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 6.23k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 6.23k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 6.23k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 6.23k | } | 633 | 6.23k | _closed = true; | 634 | 6.23k | return Status::OK(); | 635 | 6.23k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 16.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 16.3k | if (_closed) { | 628 | 8.22k | return Status::OK(); | 629 | 8.22k | } | 630 | 8.10k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 8.10k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 8.10k | } | 633 | 8.10k | _closed = true; | 634 | 8.10k | return Status::OK(); | 635 | 16.3k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 118k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 118k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 118k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 118k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 118k | } | 633 | 118k | _closed = true; | 634 | 118k | return Status::OK(); | 635 | 118k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 343 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 343 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 343 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 343 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 343 | } | 633 | 343 | _closed = true; | 634 | 343 | return Status::OK(); | 635 | 343 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1.28M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1.28M | if (_closed) { | 628 | 13.3k | return Status::OK(); | 629 | 13.3k | } | 630 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | | } | 633 | 1.27M | _closed = true; | 634 | 1.27M | return Status::OK(); | 635 | 1.28M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 40.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 40.1k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 40.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 40.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 40.1k | } | 633 | 40.1k | _closed = true; | 634 | 40.1k | return Status::OK(); | 635 | 40.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 732 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 732 | if (_closed) { | 628 | 366 | return Status::OK(); | 629 | 366 | } | 630 | 366 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 366 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 366 | } | 633 | 366 | _closed = true; | 634 | 366 | return Status::OK(); | 635 | 732 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 6.94k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 6.94k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 6.94k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 6.94k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 6.94k | } | 633 | 6.94k | _closed = true; | 634 | 6.94k | return Status::OK(); | 635 | 6.94k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 624 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 624 | if (_closed) { | 628 | 314 | return Status::OK(); | 629 | 314 | } | 630 | 310 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 310 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 310 | } | 633 | 310 | _closed = true; | 634 | 310 | return Status::OK(); | 635 | 624 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 10.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 10.2k | if (_closed) { | 628 | 5.11k | return Status::OK(); | 629 | 5.11k | } | 630 | 5.10k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 5.10k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 5.10k | } | 633 | 5.10k | _closed = true; | 634 | 5.10k | return Status::OK(); | 635 | 10.2k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 630k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 630k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 630k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 630k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 630k | } | 633 | 630k | _closed = true; | 634 | 630k | return Status::OK(); | 635 | 630k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 310 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 310 | if (_closed) { | 628 | 160 | return Status::OK(); | 629 | 160 | } | 630 | 150 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 150 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 150 | } | 633 | 150 | _closed = true; | 634 | 150 | return Status::OK(); | 635 | 310 | } |
|
636 | | |
637 | | template <typename SharedState> |
638 | 1.82M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
639 | | // create profile |
640 | 1.82M | _operator_profile = |
641 | 1.82M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
642 | 1.82M | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); |
643 | 1.82M | _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.82M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
649 | 1.82M | _operator_profile->add_child(_common_profile, true); |
650 | 1.82M | _operator_profile->add_child(_custom_profile, true); |
651 | | |
652 | 1.82M | _operator_profile->set_metadata(_parent->node_id()); |
653 | 1.82M | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); |
654 | 1.82M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
655 | 1.82M | if constexpr (!is_fake_shared) { |
656 | 1.24M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
657 | 1.24M | info.shared_state_map.end()) { |
658 | 296k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
659 | 283k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
660 | 283k | } |
661 | 296k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
662 | 296k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
663 | 296k | ? 0 |
664 | 296k | : info.task_idx] |
665 | 296k | .get(); |
666 | 296k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
667 | 947k | } else { |
668 | 947k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
669 | 467 | DCHECK(false); |
670 | 467 | } |
671 | 947k | _shared_state = info.shared_state->template cast<SharedState>(); |
672 | 947k | _dependency = _shared_state->create_sink_dependency( |
673 | 947k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
674 | 947k | } |
675 | 1.24M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
676 | 1.24M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
677 | 1.24M | } |
678 | | |
679 | 1.82M | 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.82M | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); |
684 | 1.82M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
685 | 1.82M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
686 | 1.82M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
687 | 1.82M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
688 | 1.82M | _memory_used_counter = |
689 | 1.82M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
690 | 1.82M | _common_profile->add_info_string("IsColocate", |
691 | 1.82M | std::to_string(_parent->is_colocated_operator())); |
692 | 1.82M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
693 | 1.82M | _common_profile->add_info_string("FollowedByShuffledOperator", |
694 | 1.82M | std::to_string(_parent->followed_by_shuffled_operator())); |
695 | 1.82M | return Status::OK(); |
696 | 1.82M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 183k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 183k | _operator_profile = | 641 | 183k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 183k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 183k | _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 | 183k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 183k | _operator_profile->add_child(_common_profile, true); | 650 | 183k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 183k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 183k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 183k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 183k | if constexpr (!is_fake_shared) { | 656 | 183k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 183k | 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 | 12.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 12.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 12.4k | ? 0 | 664 | 12.4k | : info.task_idx] | 665 | 12.4k | .get(); | 666 | 12.4k | _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 | 183k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 183k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 183k | } | 678 | | | 679 | 183k | 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 | 183k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 183k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 183k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 183k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 183k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 183k | _memory_used_counter = | 689 | 183k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 183k | _common_profile->add_info_string("IsColocate", | 691 | 183k | std::to_string(_parent->is_colocated_operator())); | 692 | 183k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 183k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 183k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 183k | return Status::OK(); | 696 | 183k | } |
_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 | 189k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 189k | _operator_profile = | 641 | 189k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 189k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 189k | _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 | 189k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 189k | _operator_profile->add_child(_common_profile, true); | 650 | 189k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 189k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 189k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 189k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 189k | if constexpr (!is_fake_shared) { | 656 | 189k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 189k | 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 | 189k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 189k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 189k | _dependency = _shared_state->create_sink_dependency( | 673 | 189k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 189k | } | 675 | 189k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 189k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 189k | } | 678 | | | 679 | 189k | 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 | 189k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 189k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 189k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 189k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 189k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 189k | _memory_used_counter = | 689 | 189k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 189k | _common_profile->add_info_string("IsColocate", | 691 | 189k | std::to_string(_parent->is_colocated_operator())); | 692 | 189k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 189k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 189k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 189k | return Status::OK(); | 696 | 189k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 23 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 23 | _operator_profile = | 641 | 23 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 23 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 23 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 23 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 23 | _operator_profile->add_child(_common_profile, true); | 650 | 23 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 23 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 23 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 23 | if constexpr (!is_fake_shared) { | 656 | 23 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 23 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 23 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 23 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 23 | _dependency = _shared_state->create_sink_dependency( | 673 | 23 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 23 | } | 675 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 23 | } | 678 | | | 679 | 23 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 23 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 23 | _memory_used_counter = | 689 | 23 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 23 | _common_profile->add_info_string("IsColocate", | 691 | 23 | std::to_string(_parent->is_colocated_operator())); | 692 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 23 | return Status::OK(); | 696 | 23 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 6.21k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 6.21k | _operator_profile = | 641 | 6.21k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 6.21k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 6.21k | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 6.21k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 6.21k | _operator_profile->add_child(_common_profile, true); | 650 | 6.21k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 6.21k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 6.21k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 6.21k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 6.21k | if constexpr (!is_fake_shared) { | 656 | 6.21k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 6.21k | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 6.21k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 6.21k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 6.21k | _dependency = _shared_state->create_sink_dependency( | 673 | 6.21k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 6.21k | } | 675 | 6.21k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 6.21k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 6.21k | } | 678 | | | 679 | 6.21k | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 6.21k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 6.21k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 6.21k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 6.21k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 6.21k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 6.21k | _memory_used_counter = | 689 | 6.21k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 6.21k | _common_profile->add_info_string("IsColocate", | 691 | 6.21k | std::to_string(_parent->is_colocated_operator())); | 692 | 6.21k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 6.21k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 6.21k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 6.21k | return Status::OK(); | 696 | 6.21k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 8.09k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 8.09k | _operator_profile = | 641 | 8.09k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 8.09k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 8.09k | _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.09k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 8.09k | _operator_profile->add_child(_common_profile, true); | 650 | 8.09k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 8.09k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 8.09k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 8.09k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 8.09k | if constexpr (!is_fake_shared) { | 656 | 8.09k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 8.09k | 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.09k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 8.09k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 8.09k | _dependency = _shared_state->create_sink_dependency( | 673 | 8.09k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 8.09k | } | 675 | 8.09k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 8.09k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 8.09k | } | 678 | | | 679 | 8.09k | 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.09k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 8.09k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 8.09k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 8.09k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 8.09k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 8.09k | _memory_used_counter = | 689 | 8.09k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 8.09k | _common_profile->add_info_string("IsColocate", | 691 | 8.09k | std::to_string(_parent->is_colocated_operator())); | 692 | 8.09k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 8.09k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 8.09k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 8.09k | return Status::OK(); | 696 | 8.09k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 118k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 118k | _operator_profile = | 641 | 118k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 118k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 118k | _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 | 118k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 118k | _operator_profile->add_child(_common_profile, true); | 650 | 118k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 118k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 118k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 118k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 118k | if constexpr (!is_fake_shared) { | 656 | 118k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 118k | 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 | 118k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 118k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 118k | _dependency = _shared_state->create_sink_dependency( | 673 | 118k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 118k | } | 675 | 118k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 118k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 118k | } | 678 | | | 679 | 118k | 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 | 118k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 118k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 118k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 118k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 118k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 118k | _memory_used_counter = | 689 | 118k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 118k | _common_profile->add_info_string("IsColocate", | 691 | 118k | std::to_string(_parent->is_colocated_operator())); | 692 | 118k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 118k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 118k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 118k | return Status::OK(); | 696 | 118k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 352 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 352 | _operator_profile = | 641 | 352 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 352 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 352 | _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 | 352 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 352 | _operator_profile->add_child(_common_profile, true); | 650 | 352 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 352 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 352 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 352 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 352 | if constexpr (!is_fake_shared) { | 656 | 352 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 352 | 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 | 352 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 352 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 352 | _dependency = _shared_state->create_sink_dependency( | 673 | 352 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 352 | } | 675 | 352 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 352 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 352 | } | 678 | | | 679 | 352 | 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 | 352 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 352 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 352 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 352 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 352 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 352 | _memory_used_counter = | 689 | 352 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 352 | _common_profile->add_info_string("IsColocate", | 691 | 352 | std::to_string(_parent->is_colocated_operator())); | 692 | 352 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 352 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 352 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 352 | return Status::OK(); | 696 | 352 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 576k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 576k | _operator_profile = | 641 | 576k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 576k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 576k | _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 | 576k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 576k | _operator_profile->add_child(_common_profile, true); | 650 | 576k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 576k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 576k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 576k | 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 | 576k | 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 | 576k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 576k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 576k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 576k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 576k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 576k | _memory_used_counter = | 689 | 576k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 576k | _common_profile->add_info_string("IsColocate", | 691 | 576k | std::to_string(_parent->is_colocated_operator())); | 692 | 576k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 576k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 576k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 576k | return Status::OK(); | 696 | 576k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 7.86k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 7.86k | _operator_profile = | 641 | 7.86k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 7.86k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 7.86k | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 7.86k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 7.86k | _operator_profile->add_child(_common_profile, true); | 650 | 7.86k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 7.86k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 7.86k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 7.86k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 7.86k | if constexpr (!is_fake_shared) { | 656 | 7.86k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 7.86k | 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 | 7.86k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 7.86k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 7.86k | _dependency = _shared_state->create_sink_dependency( | 673 | 7.86k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 7.86k | } | 675 | 7.86k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 7.86k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 7.86k | } | 678 | | | 679 | 7.86k | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 7.86k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 7.86k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 7.86k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 7.86k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 7.86k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 7.86k | _memory_used_counter = | 689 | 7.86k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 7.86k | _common_profile->add_info_string("IsColocate", | 691 | 7.86k | std::to_string(_parent->is_colocated_operator())); | 692 | 7.86k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 7.86k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 7.86k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 7.86k | return Status::OK(); | 696 | 7.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 412 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 412 | _operator_profile = | 641 | 412 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 412 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 412 | _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 | 412 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 412 | _operator_profile->add_child(_common_profile, true); | 650 | 412 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 412 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 412 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 412 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 412 | if constexpr (!is_fake_shared) { | 656 | 412 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 412 | 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 | 412 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 412 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 412 | _dependency = _shared_state->create_sink_dependency( | 673 | 412 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 412 | } | 675 | 412 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 412 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 412 | } | 678 | | | 679 | 412 | 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 | 412 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 412 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 412 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 412 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 412 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 412 | _memory_used_counter = | 689 | 412 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 412 | _common_profile->add_info_string("IsColocate", | 691 | 412 | std::to_string(_parent->is_colocated_operator())); | 692 | 412 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 412 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 412 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 412 | return Status::OK(); | 696 | 412 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 2.85k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 2.85k | _operator_profile = | 641 | 2.85k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 2.85k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 2.85k | _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.85k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 2.85k | _operator_profile->add_child(_common_profile, true); | 650 | 2.85k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 2.85k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 2.85k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 2.85k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 2.85k | if constexpr (!is_fake_shared) { | 656 | 2.85k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 2.85k | 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.85k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 2.85k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 2.85k | _dependency = _shared_state->create_sink_dependency( | 673 | 2.85k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 2.85k | } | 675 | 2.85k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 2.85k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 2.85k | } | 678 | | | 679 | 2.85k | 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.85k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 2.85k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 2.85k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 2.85k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 2.85k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 2.85k | _memory_used_counter = | 689 | 2.85k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 2.85k | _common_profile->add_info_string("IsColocate", | 691 | 2.85k | std::to_string(_parent->is_colocated_operator())); | 692 | 2.85k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 2.85k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 2.85k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 2.85k | return Status::OK(); | 696 | 2.85k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 12.5k | _operator_profile = | 641 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 12.5k | _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 | 12.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 12.5k | _operator_profile->add_child(_common_profile, true); | 650 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 12.5k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 12.5k | if constexpr (!is_fake_shared) { | 656 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 12.5k | 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 | 12.5k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 673 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 12.5k | } | 675 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 12.5k | } | 678 | | | 679 | 12.5k | 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 | 12.5k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 12.5k | _memory_used_counter = | 689 | 12.5k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 12.5k | _common_profile->add_info_string("IsColocate", | 691 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 692 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 12.5k | return Status::OK(); | 696 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 283k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 283k | _operator_profile = | 641 | 283k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 283k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 283k | _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 | 283k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 283k | _operator_profile->add_child(_common_profile, true); | 650 | 283k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 283k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 283k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 283k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 283k | if constexpr (!is_fake_shared) { | 656 | 283k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 283k | info.shared_state_map.end()) { | 658 | 283k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | 283k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | 283k | } | 661 | 283k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 283k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 283k | ? 0 | 664 | 283k | : info.task_idx] | 665 | 283k | .get(); | 666 | 283k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 283k | } else { | 668 | 467 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | 467 | DCHECK(false); | 670 | 467 | } | 671 | 467 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 467 | _dependency = _shared_state->create_sink_dependency( | 673 | 467 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 467 | } | 675 | 283k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 283k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 283k | } | 678 | | | 679 | 283k | 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 | 283k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 283k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 283k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 283k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 283k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 283k | _memory_used_counter = | 689 | 283k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 283k | _common_profile->add_info_string("IsColocate", | 691 | 283k | std::to_string(_parent->is_colocated_operator())); | 692 | 283k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 283k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 283k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 283k | return Status::OK(); | 696 | 283k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 429k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 429k | _operator_profile = | 641 | 429k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 429k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 429k | _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 | 429k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 429k | _operator_profile->add_child(_common_profile, true); | 650 | 429k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 429k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 429k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 429k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 429k | if constexpr (!is_fake_shared) { | 656 | 429k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 429k | 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 | 885 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 885 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 885 | ? 0 | 664 | 885 | : info.task_idx] | 665 | 885 | .get(); | 666 | 885 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 428k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 428k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 428k | _dependency = _shared_state->create_sink_dependency( | 673 | 428k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 428k | } | 675 | 429k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 429k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 429k | } | 678 | | | 679 | 429k | 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 | 429k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 429k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 429k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 429k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 429k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 429k | _memory_used_counter = | 689 | 429k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 429k | _common_profile->add_info_string("IsColocate", | 691 | 429k | std::to_string(_parent->is_colocated_operator())); | 692 | 429k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 429k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 429k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 429k | return Status::OK(); | 696 | 429k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 368 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 368 | _operator_profile = | 641 | 368 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 368 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 368 | _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 | 368 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 368 | _operator_profile->add_child(_common_profile, true); | 650 | 368 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 368 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 368 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 368 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 368 | if constexpr (!is_fake_shared) { | 656 | 368 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 368 | 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 | 368 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 368 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 368 | _dependency = _shared_state->create_sink_dependency( | 673 | 368 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 368 | } | 675 | 368 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 368 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 368 | } | 678 | | | 679 | 369 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 368 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 368 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 368 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 368 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 368 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 368 | _memory_used_counter = | 689 | 368 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 368 | _common_profile->add_info_string("IsColocate", | 691 | 368 | std::to_string(_parent->is_colocated_operator())); | 692 | 368 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 368 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 368 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 368 | return Status::OK(); | 696 | 368 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 300 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 300 | _operator_profile = | 641 | 300 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 300 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 300 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 300 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 300 | _operator_profile->add_child(_common_profile, true); | 650 | 300 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 300 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 300 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 300 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 300 | if constexpr (!is_fake_shared) { | 656 | 300 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 300 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 300 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 300 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 300 | _dependency = _shared_state->create_sink_dependency( | 673 | 300 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 300 | } | 675 | 300 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 300 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 300 | } | 678 | | | 679 | 300 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 300 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 300 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 300 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 300 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 300 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 300 | _memory_used_counter = | 689 | 300 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 300 | _common_profile->add_info_string("IsColocate", | 691 | 300 | std::to_string(_parent->is_colocated_operator())); | 692 | 300 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 300 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 300 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 300 | return Status::OK(); | 696 | 300 | } |
|
697 | | |
698 | | template <typename SharedState> |
699 | 1.83M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
700 | 1.83M | if (_closed) { |
701 | 2 | return Status::OK(); |
702 | 2 | } |
703 | 1.83M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
704 | 1.25M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
705 | 1.25M | } |
706 | 1.83M | _closed = true; |
707 | 1.83M | return Status::OK(); |
708 | 1.83M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 183k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 183k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 183k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 183k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 183k | } | 706 | 183k | _closed = true; | 707 | 183k | return Status::OK(); | 708 | 183k | } |
_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 | 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_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 19 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 19 | if (_closed) { | 701 | 2 | return Status::OK(); | 702 | 2 | } | 703 | 17 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 17 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 17 | } | 706 | 17 | _closed = true; | 707 | 17 | return Status::OK(); | 708 | 19 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 6.20k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 6.20k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 6.20k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 6.20k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 6.20k | } | 706 | 6.20k | _closed = true; | 707 | 6.20k | return Status::OK(); | 708 | 6.20k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 8.07k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 8.07k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 8.07k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 8.07k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 8.07k | } | 706 | 8.07k | _closed = true; | 707 | 8.07k | return Status::OK(); | 708 | 8.07k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 118k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 118k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 118k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 118k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 118k | } | 706 | 118k | _closed = true; | 707 | 118k | return Status::OK(); | 708 | 118k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 346 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 346 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 346 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 346 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 346 | } | 706 | 346 | _closed = true; | 707 | 346 | return Status::OK(); | 708 | 346 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 580k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 580k | 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 | 580k | _closed = true; | 707 | 580k | return Status::OK(); | 708 | 580k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 7.86k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 7.86k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 7.86k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 7.86k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 7.86k | } | 706 | 7.86k | _closed = true; | 707 | 7.86k | return Status::OK(); | 708 | 7.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 312 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 312 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 312 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 312 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 312 | } | 706 | 312 | _closed = true; | 707 | 312 | return Status::OK(); | 708 | 312 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 2.85k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 2.85k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 2.85k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 2.85k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 2.85k | } | 706 | 2.85k | _closed = true; | 707 | 2.85k | return Status::OK(); | 708 | 2.85k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 12.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 12.5k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 12.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 12.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 12.5k | } | 706 | 12.5k | _closed = true; | 707 | 12.5k | return Status::OK(); | 708 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 285k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 285k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 285k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 285k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 285k | } | 706 | 285k | _closed = true; | 707 | 285k | return Status::OK(); | 708 | 285k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 434k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 434k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 434k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 434k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 434k | } | 706 | 434k | _closed = true; | 707 | 434k | return Status::OK(); | 708 | 434k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 364 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 364 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 364 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 364 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 364 | } | 706 | 364 | _closed = true; | 707 | 364 | return Status::OK(); | 708 | 364 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 300 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 300 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 300 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 300 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 300 | } | 706 | 300 | _closed = true; | 707 | 300 | return Status::OK(); | 708 | 300 | } |
|
709 | | |
710 | | template <typename LocalStateType> |
711 | 4.89k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
712 | 4.89k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
713 | 4.89k | return pull(state, block, eos); |
714 | 4.89k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 31 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 31 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 31 | return pull(state, block, eos); | 714 | 31 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 4.86k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 4.86k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 4.86k | return pull(state, block, eos); | 714 | 4.86k | } |
|
715 | | |
716 | | template <typename LocalStateType> |
717 | 31.5M | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
718 | 31.5M | auto& local_state = get_local_state(state); |
719 | 31.5M | if (need_more_input_data(state)) { |
720 | 736k | local_state._child_block->clear_column_data( |
721 | 736k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
722 | 736k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
723 | 736k | state, local_state._child_block.get(), &local_state._child_eos)); |
724 | 736k | *eos = local_state._child_eos; |
725 | 736k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
726 | 77.1k | return Status::OK(); |
727 | 77.1k | } |
728 | 659k | { |
729 | 659k | SCOPED_TIMER(local_state.exec_time_counter()); |
730 | 659k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
731 | 659k | } |
732 | 659k | } |
733 | | |
734 | 31.4M | if (!need_more_input_data(state)) { |
735 | 31.4M | SCOPED_TIMER(local_state.exec_time_counter()); |
736 | 31.4M | bool new_eos = false; |
737 | 31.4M | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
738 | 31.4M | if (new_eos) { |
739 | 625k | *eos = true; |
740 | 30.7M | } else if (!need_more_input_data(state)) { |
741 | 30.7M | *eos = false; |
742 | 30.7M | } |
743 | 31.4M | } |
744 | 31.4M | return Status::OK(); |
745 | 31.4M | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 183k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 183k | auto& local_state = get_local_state(state); | 719 | 183k | if (need_more_input_data(state)) { | 720 | 121k | local_state._child_block->clear_column_data( | 721 | 121k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 121k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 121k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 121k | *eos = local_state._child_eos; | 725 | 121k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 26.4k | return Status::OK(); | 727 | 26.4k | } | 728 | 94.8k | { | 729 | 94.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 94.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 94.8k | } | 732 | 94.8k | } | 733 | | | 734 | 156k | if (!need_more_input_data(state)) { | 735 | 156k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 156k | bool new_eos = false; | 737 | 156k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 156k | if (new_eos) { | 739 | 110k | *eos = true; | 740 | 110k | } else if (!need_more_input_data(state)) { | 741 | 11.2k | *eos = false; | 742 | 11.2k | } | 743 | 156k | } | 744 | 156k | return Status::OK(); | 745 | 156k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 3.13k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 3.13k | auto& local_state = get_local_state(state); | 719 | 3.13k | if (need_more_input_data(state)) { | 720 | 1.77k | local_state._child_block->clear_column_data( | 721 | 1.77k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 1.77k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 1.77k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 1.77k | *eos = local_state._child_eos; | 725 | 1.77k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 245 | return Status::OK(); | 727 | 245 | } | 728 | 1.52k | { | 729 | 1.52k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 1.52k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 1.52k | } | 732 | 1.52k | } | 733 | | | 734 | 2.89k | if (!need_more_input_data(state)) { | 735 | 2.89k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 2.89k | bool new_eos = false; | 737 | 2.89k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 2.89k | if (new_eos) { | 739 | 1.19k | *eos = true; | 740 | 1.70k | } else if (!need_more_input_data(state)) { | 741 | 1.36k | *eos = false; | 742 | 1.36k | } | 743 | 2.89k | } | 744 | 2.89k | return Status::OK(); | 745 | 2.89k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 1.59k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 1.59k | auto& local_state = get_local_state(state); | 719 | 1.59k | if (need_more_input_data(state)) { | 720 | 1.59k | local_state._child_block->clear_column_data( | 721 | 1.59k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 1.59k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 1.59k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 1.59k | *eos = local_state._child_eos; | 725 | 1.59k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 642 | return Status::OK(); | 727 | 642 | } | 728 | 956 | { | 729 | 956 | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 956 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 956 | } | 732 | 956 | } | 733 | | | 734 | 956 | if (!need_more_input_data(state)) { | 735 | 956 | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 956 | bool new_eos = false; | 737 | 956 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 956 | if (new_eos) { | 739 | 667 | *eos = true; | 740 | 667 | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 956 | } | 744 | 956 | return Status::OK(); | 745 | 956 | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 19.4k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 19.4k | auto& local_state = get_local_state(state); | 719 | 19.4k | if (need_more_input_data(state)) { | 720 | 19.4k | local_state._child_block->clear_column_data( | 721 | 19.4k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 19.4k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 19.4k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 19.4k | *eos = local_state._child_eos; | 725 | 19.4k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 4.61k | return Status::OK(); | 727 | 4.61k | } | 728 | 14.8k | { | 729 | 14.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 14.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 14.8k | } | 732 | 14.8k | } | 733 | | | 734 | 14.8k | if (!need_more_input_data(state)) { | 735 | 9.04k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 9.04k | bool new_eos = false; | 737 | 9.04k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 9.04k | if (new_eos) { | 739 | 8.88k | *eos = true; | 740 | 8.88k | } else if (!need_more_input_data(state)) { | 741 | 4 | *eos = false; | 742 | 4 | } | 743 | 9.04k | } | 744 | 14.8k | return Status::OK(); | 745 | 14.8k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 571k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 571k | auto& local_state = get_local_state(state); | 719 | 573k | if (need_more_input_data(state)) { | 720 | 573k | local_state._child_block->clear_column_data( | 721 | 573k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 573k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 573k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 573k | *eos = local_state._child_eos; | 725 | 573k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 43.0k | return Status::OK(); | 727 | 43.0k | } | 728 | 530k | { | 729 | 530k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 530k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 530k | } | 732 | 530k | } | 733 | | | 734 | 528k | if (!need_more_input_data(state)) { | 735 | 494k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 494k | bool new_eos = false; | 737 | 494k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 494k | if (new_eos) { | 739 | 493k | *eos = true; | 740 | 493k | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 494k | } | 744 | 528k | return Status::OK(); | 745 | 528k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 30.7M | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 30.7M | auto& local_state = get_local_state(state); | 719 | 30.7M | if (need_more_input_data(state)) { | 720 | 13.7k | local_state._child_block->clear_column_data( | 721 | 13.7k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 13.7k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 13.7k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 13.7k | *eos = local_state._child_eos; | 725 | 13.7k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 1.64k | return Status::OK(); | 727 | 1.64k | } | 728 | 12.1k | { | 729 | 12.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 12.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 12.1k | } | 732 | 12.1k | } | 733 | | | 734 | 30.7M | if (!need_more_input_data(state)) { | 735 | 30.7M | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 30.7M | bool new_eos = false; | 737 | 30.7M | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 30.7M | if (new_eos) { | 739 | 6.21k | *eos = true; | 740 | 30.7M | } else if (!need_more_input_data(state)) { | 741 | 30.7M | *eos = false; | 742 | 30.7M | } | 743 | 30.7M | } | 744 | 30.7M | return Status::OK(); | 745 | 30.7M | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 6.28k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 6.28k | auto& local_state = get_local_state(state); | 719 | 6.28k | if (need_more_input_data(state)) { | 720 | 5.91k | local_state._child_block->clear_column_data( | 721 | 5.91k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 5.91k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 5.91k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 5.91k | *eos = local_state._child_eos; | 725 | 5.91k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 459 | return Status::OK(); | 727 | 459 | } | 728 | 5.45k | { | 729 | 5.45k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 5.45k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 5.45k | } | 732 | 5.45k | } | 733 | | | 734 | 5.82k | if (!need_more_input_data(state)) { | 735 | 5.82k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 5.82k | bool new_eos = false; | 737 | 5.82k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 5.82k | if (new_eos) { | 739 | 3.88k | *eos = true; | 740 | 3.88k | } else if (!need_more_input_data(state)) { | 741 | 374 | *eos = false; | 742 | 374 | } | 743 | 5.82k | } | 744 | 5.82k | return Status::OK(); | 745 | 5.82k | } |
|
746 | | |
747 | | template <typename Writer, typename Parent> |
748 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
749 | 65.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
750 | 65.0k | RETURN_IF_ERROR(Base::init(state, info)); |
751 | 65.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
752 | 65.0k | "AsyncWriterDependency", true); |
753 | 65.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
754 | 65.0k | _finish_dependency)); |
755 | | |
756 | 65.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
757 | 65.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
758 | 65.0k | return Status::OK(); |
759 | 65.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 343 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 343 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 343 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 343 | "AsyncWriterDependency", true); | 753 | 343 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 343 | _finish_dependency)); | 755 | | | 756 | 343 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 343 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 343 | return Status::OK(); | 759 | 343 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 64.7k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 64.7k | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 64.7k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 64.7k | "AsyncWriterDependency", true); | 753 | 64.7k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 64.7k | _finish_dependency)); | 755 | | | 756 | 64.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 64.7k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 64.7k | return Status::OK(); | 759 | 64.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 6 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 6 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 6 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 6 | "AsyncWriterDependency", true); | 753 | 6 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 6 | _finish_dependency)); | 755 | | | 756 | 6 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 6 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 6 | return Status::OK(); | 759 | 6 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
760 | | |
761 | | template <typename Writer, typename Parent> |
762 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
763 | 65.8k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
764 | 65.8k | RETURN_IF_ERROR(Base::open(state)); |
765 | 65.8k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
766 | 454k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
767 | 388k | RETURN_IF_ERROR( |
768 | 388k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
769 | 388k | } |
770 | 65.8k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
771 | 65.8k | return Status::OK(); |
772 | 65.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 343 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 343 | RETURN_IF_ERROR(Base::open(state)); | 765 | 343 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 1.79k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 1.44k | RETURN_IF_ERROR( | 768 | 1.44k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 1.44k | } | 770 | 343 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 343 | return Status::OK(); | 772 | 343 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 65.4k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 65.4k | RETURN_IF_ERROR(Base::open(state)); | 765 | 65.4k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 452k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 387k | RETURN_IF_ERROR( | 768 | 387k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 387k | } | 770 | 65.4k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 65.4k | return Status::OK(); | 772 | 65.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 6 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 6 | RETURN_IF_ERROR(Base::open(state)); | 765 | 6 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 108 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 102 | RETURN_IF_ERROR( | 768 | 102 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 102 | } | 770 | 6 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 6 | return Status::OK(); | 772 | 6 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
773 | | |
774 | | template <typename Writer, typename Parent> |
775 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
776 | 77.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
777 | 77.8k | return _writer->sink(block, eos); |
778 | 77.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 1.24k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 1.24k | return _writer->sink(block, eos); | 778 | 1.24k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 76.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 76.6k | return _writer->sink(block, eos); | 778 | 76.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 6 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 6 | return _writer->sink(block, eos); | 778 | 6 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
779 | | |
780 | | template <typename Writer, typename Parent> |
781 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
782 | 65.9k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
783 | 65.9k | if (_closed) { |
784 | 0 | return Status::OK(); |
785 | 0 | } |
786 | 65.9k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
787 | 65.9k | 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 | 65.9k | if (_writer) { |
790 | 65.9k | Status st = _writer->get_writer_status(); |
791 | 65.9k | if (exec_status.ok()) { |
792 | 65.8k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
793 | 65.8k | : Status::Cancelled("force close")); |
794 | 65.8k | } else { |
795 | 67 | _writer->force_close(exec_status); |
796 | 67 | } |
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 | 65.9k | RETURN_IF_ERROR(st); |
801 | 65.9k | } |
802 | 65.8k | return Base::close(state, exec_status); |
803 | 65.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 331 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 331 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 331 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 331 | 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 | 331 | if (_writer) { | 790 | 331 | Status st = _writer->get_writer_status(); | 791 | 331 | if (exec_status.ok()) { | 792 | 331 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 331 | : Status::Cancelled("force close")); | 794 | 331 | } 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 | 331 | RETURN_IF_ERROR(st); | 801 | 331 | } | 802 | 331 | return Base::close(state, exec_status); | 803 | 331 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 65.5k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 65.5k | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 65.5k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 65.5k | 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 | 65.6k | if (_writer) { | 790 | 65.6k | Status st = _writer->get_writer_status(); | 791 | 65.6k | if (exec_status.ok()) { | 792 | 65.5k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 65.5k | : Status::Cancelled("force close")); | 794 | 65.5k | } else { | 795 | 67 | _writer->force_close(exec_status); | 796 | 67 | } | 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 | 65.6k | RETURN_IF_ERROR(st); | 801 | 65.6k | } | 802 | 65.5k | return Base::close(state, exec_status); | 803 | 65.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 6 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 6 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 6 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 6 | 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 | 6 | if (_writer) { | 790 | 6 | Status st = _writer->get_writer_status(); | 791 | 6 | if (exec_status.ok()) { | 792 | 6 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 6 | : Status::Cancelled("force close")); | 794 | 6 | } 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 | 6 | RETURN_IF_ERROR(st); | 801 | 6 | } | 802 | 6 | return Base::close(state, exec_status); | 803 | 6 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
804 | | |
805 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
806 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
807 | | DECLARE_OPERATOR(ResultSinkLocalState) |
808 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
809 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
810 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
811 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
812 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
813 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
814 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
815 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
816 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
817 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
818 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
819 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
820 | | DECLARE_OPERATOR(SortSinkLocalState) |
821 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
822 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
823 | | DECLARE_OPERATOR(AggSinkLocalState) |
824 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
825 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
826 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
827 | | DECLARE_OPERATOR(UnionSinkLocalState) |
828 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
829 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
830 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
831 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
832 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
833 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
834 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
835 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
836 | | DECLARE_OPERATOR(CacheSinkLocalState) |
837 | | DECLARE_OPERATOR(DictSinkLocalState) |
838 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
839 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
840 | | |
841 | | #undef DECLARE_OPERATOR |
842 | | |
843 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
844 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
845 | | DECLARE_OPERATOR(OlapScanLocalState) |
846 | | DECLARE_OPERATOR(GroupCommitLocalState) |
847 | | DECLARE_OPERATOR(JDBCScanLocalState) |
848 | | DECLARE_OPERATOR(FileScanLocalState) |
849 | | DECLARE_OPERATOR(EsScanLocalState) |
850 | | DECLARE_OPERATOR(AnalyticLocalState) |
851 | | DECLARE_OPERATOR(SortLocalState) |
852 | | DECLARE_OPERATOR(SpillSortLocalState) |
853 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
854 | | DECLARE_OPERATOR(AggLocalState) |
855 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
856 | | DECLARE_OPERATOR(TableFunctionLocalState) |
857 | | DECLARE_OPERATOR(ExchangeLocalState) |
858 | | DECLARE_OPERATOR(RepeatLocalState) |
859 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
860 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
861 | | DECLARE_OPERATOR(EmptySetLocalState) |
862 | | DECLARE_OPERATOR(UnionSourceLocalState) |
863 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
864 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
865 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
866 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
867 | | DECLARE_OPERATOR(DataGenLocalState) |
868 | | DECLARE_OPERATOR(SchemaScanLocalState) |
869 | | DECLARE_OPERATOR(MetaScanLocalState) |
870 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
871 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
872 | | DECLARE_OPERATOR(CacheSourceLocalState) |
873 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
874 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
875 | | |
876 | | #ifdef BE_TEST |
877 | | DECLARE_OPERATOR(MockLocalState) |
878 | | DECLARE_OPERATOR(MockScanLocalState) |
879 | | #endif |
880 | | #undef DECLARE_OPERATOR |
881 | | |
882 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
883 | | template class StreamingOperatorX<SelectLocalState>; |
884 | | |
885 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
886 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
887 | | template class StatefulOperatorX<RepeatLocalState>; |
888 | | template class StatefulOperatorX<MaterializationLocalState>; |
889 | | template class StatefulOperatorX<StreamingAggLocalState>; |
890 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
891 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
892 | | template class StatefulOperatorX<TableFunctionLocalState>; |
893 | | |
894 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
895 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
896 | | template class PipelineXSinkLocalState<SortSharedState>; |
897 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
898 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
899 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
900 | | template class PipelineXSinkLocalState<AggSharedState>; |
901 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
902 | | template class PipelineXSinkLocalState<FakeSharedState>; |
903 | | template class PipelineXSinkLocalState<UnionSharedState>; |
904 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
905 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
906 | | template class PipelineXSinkLocalState<SetSharedState>; |
907 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
908 | | template class PipelineXSinkLocalState<BasicSharedState>; |
909 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
910 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
911 | | |
912 | | template class PipelineXLocalState<HashJoinSharedState>; |
913 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
914 | | template class PipelineXLocalState<SortSharedState>; |
915 | | template class PipelineXLocalState<SpillSortSharedState>; |
916 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
917 | | template class PipelineXLocalState<AnalyticSharedState>; |
918 | | template class PipelineXLocalState<AggSharedState>; |
919 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
920 | | template class PipelineXLocalState<FakeSharedState>; |
921 | | template class PipelineXLocalState<UnionSharedState>; |
922 | | template class PipelineXLocalState<DataQueueSharedState>; |
923 | | template class PipelineXLocalState<MultiCastSharedState>; |
924 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
925 | | template class PipelineXLocalState<SetSharedState>; |
926 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
927 | | template class PipelineXLocalState<BasicSharedState>; |
928 | | template class PipelineXLocalState<RecCTESharedState>; |
929 | | |
930 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
931 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
932 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
933 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
934 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
935 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
936 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
937 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
938 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
939 | | |
940 | | #ifdef BE_TEST |
941 | | template class OperatorX<DummyOperatorLocalState>; |
942 | | template class DataSinkOperatorX<DummySinkLocalState>; |
943 | | #endif |
944 | | |
945 | | #include "common/compile_check_end.h" |
946 | | } // namespace doris |