be/src/exec/operator/operator.cpp
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #include "exec/operator/operator.h" |
19 | | |
20 | | #include "common/status.h" |
21 | | #include "exec/common/util.hpp" |
22 | | #include "exec/exchange/local_exchange_sink_operator.h" |
23 | | #include "exec/exchange/local_exchange_source_operator.h" |
24 | | #include "exec/operator/aggregation_sink_operator.h" |
25 | | #include "exec/operator/aggregation_source_operator.h" |
26 | | #include "exec/operator/analytic_sink_operator.h" |
27 | | #include "exec/operator/analytic_source_operator.h" |
28 | | #include "exec/operator/assert_num_rows_operator.h" |
29 | | #include "exec/operator/blackhole_sink_operator.h" |
30 | | #include "exec/operator/cache_sink_operator.h" |
31 | | #include "exec/operator/cache_source_operator.h" |
32 | | #include "exec/operator/datagen_operator.h" |
33 | | #include "exec/operator/dict_sink_operator.h" |
34 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
35 | | #include "exec/operator/empty_set_operator.h" |
36 | | #include "exec/operator/es_scan_operator.h" |
37 | | #include "exec/operator/exchange_sink_operator.h" |
38 | | #include "exec/operator/exchange_source_operator.h" |
39 | | #include "exec/operator/file_scan_operator.h" |
40 | | #include "exec/operator/group_commit_block_sink_operator.h" |
41 | | #include "exec/operator/group_commit_scan_operator.h" |
42 | | #include "exec/operator/hashjoin_build_sink.h" |
43 | | #include "exec/operator/hashjoin_probe_operator.h" |
44 | | #include "exec/operator/hive_table_sink_operator.h" |
45 | | #include "exec/operator/iceberg_table_sink_operator.h" |
46 | | #include "exec/operator/jdbc_scan_operator.h" |
47 | | #include "exec/operator/jdbc_table_sink_operator.h" |
48 | | #include "exec/operator/local_merge_sort_source_operator.h" |
49 | | #include "exec/operator/materialization_opertor.h" |
50 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
51 | | #include "exec/operator/memory_scratch_sink_operator.h" |
52 | | #include "exec/operator/meta_scan_operator.h" |
53 | | #include "exec/operator/mock_operator.h" |
54 | | #include "exec/operator/mock_scan_operator.h" |
55 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
56 | | #include "exec/operator/multi_cast_data_stream_source.h" |
57 | | #include "exec/operator/nested_loop_join_build_operator.h" |
58 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
59 | | #include "exec/operator/olap_scan_operator.h" |
60 | | #include "exec/operator/olap_table_sink_operator.h" |
61 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
62 | | #include "exec/operator/partition_sort_sink_operator.h" |
63 | | #include "exec/operator/partition_sort_source_operator.h" |
64 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
65 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
66 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
67 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
68 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
69 | | #include "exec/operator/rec_cte_scan_operator.h" |
70 | | #include "exec/operator/rec_cte_sink_operator.h" |
71 | | #include "exec/operator/rec_cte_source_operator.h" |
72 | | #include "exec/operator/repeat_operator.h" |
73 | | #include "exec/operator/result_file_sink_operator.h" |
74 | | #include "exec/operator/result_sink_operator.h" |
75 | | #include "exec/operator/schema_scan_operator.h" |
76 | | #include "exec/operator/select_operator.h" |
77 | | #include "exec/operator/set_probe_sink_operator.h" |
78 | | #include "exec/operator/set_sink_operator.h" |
79 | | #include "exec/operator/set_source_operator.h" |
80 | | #include "exec/operator/sort_sink_operator.h" |
81 | | #include "exec/operator/sort_source_operator.h" |
82 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
83 | | #include "exec/operator/spill_sort_sink_operator.h" |
84 | | #include "exec/operator/spill_sort_source_operator.h" |
85 | | #include "exec/operator/streaming_aggregation_operator.h" |
86 | | #include "exec/operator/table_function_operator.h" |
87 | | #include "exec/operator/tvf_table_sink_operator.h" |
88 | | #include "exec/operator/union_sink_operator.h" |
89 | | #include "exec/operator/union_source_operator.h" |
90 | | #include "exec/pipeline/dependency.h" |
91 | | #include "exec/pipeline/pipeline.h" |
92 | | #include "exprs/vexpr.h" |
93 | | #include "exprs/vexpr_context.h" |
94 | | #include "runtime/runtime_profile.h" |
95 | | #include "util/debug_util.h" |
96 | | #include "util/string_util.h" |
97 | | |
98 | | namespace doris { |
99 | | #include "common/compile_check_begin.h" |
100 | | class RowDescriptor; |
101 | | class RuntimeState; |
102 | | } // namespace doris |
103 | | |
104 | | namespace doris { |
105 | | |
106 | 0 | Status OperatorBase::close(RuntimeState* state) { |
107 | 0 | if (_is_closed) { |
108 | 0 | return Status::OK(); |
109 | 0 | } |
110 | 0 | _is_closed = true; |
111 | 0 | return Status::OK(); |
112 | 0 | } |
113 | | |
114 | | template <typename SharedStateArg> |
115 | 2.20M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
116 | 2.20M | if (_parent->nereids_id() == -1) { |
117 | 1.12M | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
118 | 1.12M | } else { |
119 | 1.07M | return fmt::format("(nereids_id={})" + operator_name_suffix, |
120 | 1.07M | std::to_string(_parent->nereids_id()), |
121 | 1.07M | std::to_string(_parent->node_id())); |
122 | 1.07M | } |
123 | 2.20M | } _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 | 14 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 14 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 14 | } else { | 119 | 14 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 14 | std::to_string(_parent->nereids_id()), | 121 | 14 | std::to_string(_parent->node_id())); | 122 | 14 | } | 123 | 14 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 6.21k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 6.21k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 6.21k | } else { | 119 | 6.21k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 6.21k | std::to_string(_parent->nereids_id()), | 121 | 6.21k | std::to_string(_parent->node_id())); | 122 | 6.21k | } | 123 | 6.21k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 8.33k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 8.33k | if (_parent->nereids_id() == -1) { | 117 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 8.32k | } else { | 119 | 8.32k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 8.32k | std::to_string(_parent->nereids_id()), | 121 | 8.32k | std::to_string(_parent->node_id())); | 122 | 8.32k | } | 123 | 8.33k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 123k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 123k | if (_parent->nereids_id() == -1) { | 117 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 123k | } else { | 119 | 123k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 123k | std::to_string(_parent->nereids_id()), | 121 | 123k | std::to_string(_parent->node_id())); | 122 | 123k | } | 123 | 123k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 852 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 852 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 852 | } else { | 119 | 852 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 852 | std::to_string(_parent->nereids_id()), | 121 | 852 | std::to_string(_parent->node_id())); | 122 | 852 | } | 123 | 852 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 1.02M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 1.02M | if (_parent->nereids_id() == -1) { | 117 | 455k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 566k | } else { | 119 | 566k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 566k | std::to_string(_parent->nereids_id()), | 121 | 566k | std::to_string(_parent->node_id())); | 122 | 566k | } | 123 | 1.02M | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 39.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 39.6k | if (_parent->nereids_id() == -1) { | 117 | 2 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 39.6k | } else { | 119 | 39.6k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 39.6k | std::to_string(_parent->nereids_id()), | 121 | 39.6k | std::to_string(_parent->node_id())); | 122 | 39.6k | } | 123 | 39.6k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 369 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 369 | if (_parent->nereids_id() == -1) { | 117 | 369 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 369 | } else { | 119 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 0 | std::to_string(_parent->nereids_id()), | 121 | 0 | std::to_string(_parent->node_id())); | 122 | 0 | } | 123 | 369 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 6.71k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 6.71k | if (_parent->nereids_id() == -1) { | 117 | 6.71k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 6.71k | } 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 | 6.71k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 371 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 371 | if (_parent->nereids_id() == -1) { | 117 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 269 | } else { | 119 | 269 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 269 | std::to_string(_parent->nereids_id()), | 121 | 269 | std::to_string(_parent->node_id())); | 122 | 269 | } | 123 | 371 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 4.71k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 4.71k | if (_parent->nereids_id() == -1) { | 117 | 10 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 4.70k | } else { | 119 | 4.70k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 4.70k | std::to_string(_parent->nereids_id()), | 121 | 4.70k | std::to_string(_parent->node_id())); | 122 | 4.70k | } | 123 | 4.71k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 665k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 666k | if (_parent->nereids_id() == -1) { | 117 | 666k | 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 | 665k | } |
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.28M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
127 | 1.28M | if (_parent->nereids_id() == -1) { |
128 | 767k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
129 | 767k | } else { |
130 | 518k | return fmt::format("(nereids_id={})" + operator_name_suffix, |
131 | 518k | std::to_string(_parent->nereids_id()), |
132 | 518k | std::to_string(_parent->node_id())); |
133 | 518k | } |
134 | 1.28M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 182k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 182k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 182k | } else { | 130 | 182k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 182k | std::to_string(_parent->nereids_id()), | 132 | 182k | std::to_string(_parent->node_id())); | 133 | 182k | } | 134 | 182k | } |
_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 | 188k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 188k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 188k | } else { | 130 | 188k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 188k | std::to_string(_parent->nereids_id()), | 132 | 188k | std::to_string(_parent->node_id())); | 133 | 188k | } | 134 | 188k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 17 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 17 | } else { | 130 | 17 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 17 | std::to_string(_parent->nereids_id()), | 132 | 17 | std::to_string(_parent->node_id())); | 133 | 17 | } | 134 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 6.25k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 6.25k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 6.25k | } else { | 130 | 6.25k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 6.25k | std::to_string(_parent->nereids_id()), | 132 | 6.25k | std::to_string(_parent->node_id())); | 133 | 6.25k | } | 134 | 6.25k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 8.35k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 8.35k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 8.34k | } else { | 130 | 8.34k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 8.34k | std::to_string(_parent->nereids_id()), | 132 | 8.34k | std::to_string(_parent->node_id())); | 133 | 8.34k | } | 134 | 8.35k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 124k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 124k | if (_parent->nereids_id() == -1) { | 128 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 124k | } else { | 130 | 124k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 124k | std::to_string(_parent->nereids_id()), | 132 | 124k | std::to_string(_parent->node_id())); | 133 | 124k | } | 134 | 124k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 858 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 858 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 858 | } else { | 130 | 858 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 858 | std::to_string(_parent->nereids_id()), | 132 | 858 | std::to_string(_parent->node_id())); | 133 | 858 | } | 134 | 858 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 6 | if (_parent->nereids_id() == -1) { | 128 | 6 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 6 | } 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 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 7.31k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 7.31k | if (_parent->nereids_id() == -1) { | 128 | 3 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 7.30k | } else { | 130 | 7.30k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 7.30k | std::to_string(_parent->nereids_id()), | 132 | 7.30k | std::to_string(_parent->node_id())); | 133 | 7.30k | } | 134 | 7.31k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 372 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 372 | if (_parent->nereids_id() == -1) { | 128 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 270 | } else { | 130 | 270 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 270 | std::to_string(_parent->nereids_id()), | 132 | 270 | std::to_string(_parent->node_id())); | 133 | 270 | } | 134 | 372 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 11.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 11.6k | if (_parent->nereids_id() == -1) { | 128 | 11.6k | 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 | 11.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 296k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 296k | if (_parent->nereids_id() == -1) { | 128 | 296k | 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 | 296k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 459k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 459k | if (_parent->nereids_id() == -1) { | 128 | 458k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 458k | } else { | 130 | 124 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 124 | std::to_string(_parent->nereids_id()), | 132 | 124 | std::to_string(_parent->node_id())); | 133 | 124 | } | 134 | 459k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 369 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 369 | if (_parent->nereids_id() == -1) { | 128 | 369 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 369 | } 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 | 369 | } |
_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 | 31.3k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
138 | 31.3k | if (_terminated) { |
139 | 0 | return Status::OK(); |
140 | 0 | } |
141 | 31.3k | _terminated = true; |
142 | 31.3k | return Status::OK(); |
143 | 31.3k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 24.0k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 24.0k | _terminated = true; | 142 | 24.0k | return Status::OK(); | 143 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 1.06k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 1.06k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 1.06k | _terminated = true; | 142 | 1.06k | return Status::OK(); | 143 | 1.06k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2 | _terminated = true; | 142 | 2 | return Status::OK(); | 143 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 3.36k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 3.36k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 3.36k | _terminated = true; | 142 | 3.36k | return Status::OK(); | 143 | 3.36k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2 | _terminated = true; | 142 | 2 | return Status::OK(); | 143 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2.52k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2.52k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2.52k | _terminated = true; | 142 | 2.52k | return Status::OK(); | 143 | 2.52k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2 | _terminated = true; | 142 | 2 | return Status::OK(); | 143 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_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_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 65 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 65 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 65 | _terminated = true; | 142 | 65 | return Status::OK(); | 143 | 65 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_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_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 177 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 177 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 177 | _terminated = true; | 142 | 177 | return Status::OK(); | 143 | 177 | } |
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 | 642k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
146 | 642k | return _child && _child->is_serial_operator() && !is_source() |
147 | 642k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
148 | 642k | : DataDistribution(ExchangeType::NOOP); |
149 | 642k | } |
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 | 56.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
157 | 56.0k | fmt::memory_buffer debug_string_buffer; |
158 | 56.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
159 | 56.0k | return fmt::to_string(debug_string_buffer); |
160 | 56.0k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 3 | fmt::memory_buffer debug_string_buffer; | 158 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 3 | return fmt::to_string(debug_string_buffer); | 160 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 15 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 15 | fmt::memory_buffer debug_string_buffer; | 158 | 15 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 15 | return fmt::to_string(debug_string_buffer); | 160 | 15 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 31 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 31 | fmt::memory_buffer debug_string_buffer; | 158 | 31 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 31 | return fmt::to_string(debug_string_buffer); | 160 | 31 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 56.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 56.0k | fmt::memory_buffer debug_string_buffer; | 158 | 56.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 56.0k | return fmt::to_string(debug_string_buffer); | 160 | 56.0k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 1 | fmt::memory_buffer debug_string_buffer; | 158 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 1 | return fmt::to_string(debug_string_buffer); | 160 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
161 | | |
162 | | template <typename SharedStateArg> |
163 | 56.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
164 | 56.0k | fmt::memory_buffer debug_string_buffer; |
165 | 56.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
166 | 56.0k | return fmt::to_string(debug_string_buffer); |
167 | 56.0k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_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 | 55.9k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 55.9k | fmt::memory_buffer debug_string_buffer; | 165 | 55.9k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 55.9k | return fmt::to_string(debug_string_buffer); | 167 | 55.9k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
168 | | |
169 | 56.1k | std::string OperatorXBase::debug_string(int indentation_level) const { |
170 | 56.1k | fmt::memory_buffer debug_string_buffer; |
171 | 56.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
172 | 56.1k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
173 | 56.1k | _is_serial_operator); |
174 | 56.1k | return fmt::to_string(debug_string_buffer); |
175 | 56.1k | } |
176 | | |
177 | 56.0k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
178 | 56.0k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
179 | 56.0k | } |
180 | | |
181 | 575k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
182 | 575k | std::string node_name = print_plan_node_type(tnode.node_type); |
183 | 575k | _nereids_id = tnode.nereids_id; |
184 | 575k | 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 | 575k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
198 | 575k | _op_name = substr + "_OPERATOR"; |
199 | | |
200 | 575k | if (tnode.__isset.vconjunct) { |
201 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
202 | 575k | } else if (tnode.__isset.conjuncts) { |
203 | 260k | for (const auto& conjunct : tnode.conjuncts) { |
204 | 260k | VExprContextSPtr context; |
205 | 260k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
206 | 260k | _conjuncts.emplace_back(context); |
207 | 260k | } |
208 | 88.4k | } |
209 | | |
210 | | // create the projections expr |
211 | 575k | if (tnode.__isset.projections) { |
212 | 245k | DCHECK(tnode.__isset.output_tuple_id); |
213 | 245k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
214 | 245k | } |
215 | 575k | if (!tnode.intermediate_projections_list.empty()) { |
216 | 2.89k | DCHECK(tnode.__isset.projections) << "no final projections"; |
217 | 2.89k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
218 | 3.79k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
219 | 3.79k | VExprContextSPtrs projections; |
220 | 3.79k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
221 | 3.79k | _intermediate_projections.push_back(projections); |
222 | 3.79k | } |
223 | 2.89k | } |
224 | 575k | return Status::OK(); |
225 | 575k | } |
226 | | |
227 | 603k | Status OperatorXBase::prepare(RuntimeState* state) { |
228 | 603k | for (auto& conjunct : _conjuncts) { |
229 | 260k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
230 | 260k | } |
231 | 603k | if (state->enable_adjust_conjunct_order_by_cost()) { |
232 | 554k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
233 | 343k | return a->execute_cost() < b->execute_cost(); |
234 | 343k | }); |
235 | 554k | }; |
236 | | |
237 | 607k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
238 | 3.79k | RETURN_IF_ERROR( |
239 | 3.79k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
240 | 3.79k | } |
241 | 603k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
242 | | |
243 | 603k | if (has_output_row_desc()) { |
244 | 245k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
245 | 245k | } |
246 | | |
247 | 603k | for (auto& conjunct : _conjuncts) { |
248 | 260k | RETURN_IF_ERROR(conjunct->open(state)); |
249 | 260k | } |
250 | 603k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
251 | 603k | for (auto& projections : _intermediate_projections) { |
252 | 3.79k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
253 | 3.79k | } |
254 | 603k | if (_child && !is_source()) { |
255 | 137k | RETURN_IF_ERROR(_child->prepare(state)); |
256 | 137k | } |
257 | | |
258 | 603k | if (VExpr::contains_blockable_function(_conjuncts) || |
259 | 603k | VExpr::contains_blockable_function(_projections)) { |
260 | 0 | _blockable = true; |
261 | 0 | } |
262 | | |
263 | 603k | return Status::OK(); |
264 | 603k | } |
265 | | |
266 | 8.56k | Status OperatorXBase::terminate(RuntimeState* state) { |
267 | 8.56k | if (_child && !is_source()) { |
268 | 1.17k | RETURN_IF_ERROR(_child->terminate(state)); |
269 | 1.17k | } |
270 | 8.56k | auto result = state->get_local_state_result(operator_id()); |
271 | 8.56k | if (!result) { |
272 | 0 | return result.error(); |
273 | 0 | } |
274 | 8.56k | return result.value()->terminate(state); |
275 | 8.56k | } |
276 | | |
277 | 6.44M | Status OperatorXBase::close(RuntimeState* state) { |
278 | 6.44M | if (_child && !is_source()) { |
279 | 1.45M | RETURN_IF_ERROR(_child->close(state)); |
280 | 1.45M | } |
281 | 6.44M | auto result = state->get_local_state_result(operator_id()); |
282 | 6.44M | if (!result) { |
283 | 0 | return result.error(); |
284 | 0 | } |
285 | 6.44M | return result.value()->close(state); |
286 | 6.44M | } |
287 | | |
288 | 28.4M | void PipelineXLocalStateBase::clear_origin_block() { |
289 | 28.4M | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
290 | 28.4M | } |
291 | | |
292 | 28.7M | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
293 | 28.7M | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
294 | | |
295 | 28.7M | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
296 | 28.7M | return Status::OK(); |
297 | 28.7M | } |
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 | 28.4M | Block* output_block) const { |
306 | 28.4M | auto* local_state = state->get_local_state(operator_id()); |
307 | 28.4M | SCOPED_TIMER(local_state->exec_time_counter()); |
308 | 28.4M | SCOPED_TIMER(local_state->_projection_timer); |
309 | 28.4M | const size_t rows = origin_block->rows(); |
310 | 28.4M | if (rows == 0) { |
311 | 28.3M | return Status::OK(); |
312 | 28.3M | } |
313 | 114k | Block input_block = *origin_block; |
314 | | |
315 | 114k | size_t bytes_usage = 0; |
316 | 114k | ColumnsWithTypeAndName new_columns; |
317 | 114k | for (const auto& projections : local_state->_intermediate_projections) { |
318 | 1.13k | if (projections.empty()) { |
319 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
320 | 0 | node_id()); |
321 | 0 | } |
322 | 1.13k | new_columns.resize(projections.size()); |
323 | 7.29k | for (int i = 0; i < projections.size(); i++) { |
324 | 6.16k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
325 | 6.16k | 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.16k | } |
333 | 1.13k | Block tmp_block {new_columns}; |
334 | 1.13k | bytes_usage += tmp_block.allocated_bytes(); |
335 | 1.13k | input_block.swap(tmp_block); |
336 | 1.13k | } |
337 | | |
338 | 114k | 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 | 601k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
345 | 601k | 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 | 601k | } else { |
355 | 601k | if (_keep_origin || !from->is_exclusive()) { |
356 | 595k | to->insert_range_from(*from, 0, rows); |
357 | 595k | bytes_usage += from->allocated_bytes(); |
358 | 595k | } else { |
359 | 6.27k | to = from->assume_mutable(); |
360 | 6.27k | } |
361 | 601k | } |
362 | 601k | }; |
363 | | |
364 | 114k | MutableBlock mutable_block = |
365 | 114k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
366 | 114k | if (rows != 0) { |
367 | 114k | auto& mutable_columns = mutable_block.mutable_columns(); |
368 | 114k | const size_t origin_columns_count = input_block.columns(); |
369 | 114k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 715k | for (int i = 0; i < mutable_columns.size(); ++i) { |
371 | 601k | auto result_column_id = -1; |
372 | 601k | ColumnPtr column_ptr; |
373 | 601k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
374 | 601k | 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 | 601k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
381 | 601k | if (result_column_id >= origin_columns_count) { |
382 | 601k | bytes_usage += column_ptr->allocated_bytes(); |
383 | 601k | } |
384 | 601k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
385 | 601k | } |
386 | 114k | DCHECK(mutable_block.rows() == rows); |
387 | 114k | output_block->set_columns(std::move(mutable_columns)); |
388 | 114k | } |
389 | | |
390 | 114k | local_state->_estimate_memory_usage += bytes_usage; |
391 | | |
392 | 114k | return Status::OK(); |
393 | 114k | } |
394 | | |
395 | 32.0M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
396 | 32.0M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
397 | 32.0M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
398 | 32.0M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
399 | 32.0M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
400 | 32.0M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
401 | 32.0M | if (_debug_point_count++ % 2 == 0) { |
402 | 32.0M | return Status::OK(); |
403 | 32.0M | } |
404 | 32.0M | } |
405 | 32.0M | }); |
406 | | |
407 | 32.0M | Status status; |
408 | 32.0M | auto* local_state = state->get_local_state(operator_id()); |
409 | 32.0M | Defer defer([&]() { |
410 | 32.0M | if (status.ok()) { |
411 | 32.0M | if (auto rows = block->rows()) { |
412 | 708k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
413 | 708k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
414 | 708k | } |
415 | 32.0M | } |
416 | 32.0M | }); |
417 | 32.0M | if (_output_row_descriptor) { |
418 | 28.4M | local_state->clear_origin_block(); |
419 | 28.4M | status = get_block(state, &local_state->_origin_block, eos); |
420 | 28.4M | if (UNLIKELY(!status.ok())) { |
421 | 14 | return status; |
422 | 14 | } |
423 | 28.4M | status = do_projections(state, &local_state->_origin_block, block); |
424 | 28.4M | return status; |
425 | 28.4M | } |
426 | 3.58M | status = get_block(state, block, eos); |
427 | 3.58M | RETURN_IF_ERROR(block->check_type_and_column()); |
428 | 3.58M | return status; |
429 | 3.58M | } |
430 | | |
431 | 30.5M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
432 | 30.5M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
433 | 1.64k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
434 | 1.64k | *eos = true; |
435 | 1.64k | } |
436 | | |
437 | 30.5M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
438 | 30.5M | auto op_name = to_lower(_parent->_op_name); |
439 | 30.5M | auto arg_op_name = dp->param<std::string>("op_name"); |
440 | 30.5M | arg_op_name = to_lower(arg_op_name); |
441 | | |
442 | 30.5M | if (op_name == arg_op_name) { |
443 | 30.5M | *eos = true; |
444 | 30.5M | } |
445 | 30.5M | }); |
446 | | |
447 | 30.5M | if (auto rows = block->rows()) { |
448 | 638k | _num_rows_returned += rows; |
449 | 638k | } |
450 | 30.5M | } |
451 | | |
452 | 31.3k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
453 | 31.3k | auto result = state->get_sink_local_state_result(); |
454 | 31.3k | if (!result) { |
455 | 0 | return result.error(); |
456 | 0 | } |
457 | 31.3k | return result.value()->terminate(state); |
458 | 31.3k | } |
459 | | |
460 | 56.1k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
461 | 56.1k | fmt::memory_buffer debug_string_buffer; |
462 | | |
463 | 56.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
464 | 56.1k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
465 | 56.1k | return fmt::to_string(debug_string_buffer); |
466 | 56.1k | } |
467 | | |
468 | 56.0k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
469 | 56.0k | return state->get_sink_local_state()->debug_string(indentation_level); |
470 | 56.0k | } |
471 | | |
472 | 339k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
473 | 339k | std::string op_name = "UNKNOWN_SINK"; |
474 | 339k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
475 | | |
476 | 339k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
477 | 339k | op_name = it->second; |
478 | 339k | } |
479 | 339k | _name = op_name + "_OPERATOR"; |
480 | 339k | return Status::OK(); |
481 | 339k | } |
482 | | |
483 | 172k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
484 | 172k | std::string op_name = print_plan_node_type(tnode.node_type); |
485 | 172k | _nereids_id = tnode.nereids_id; |
486 | 172k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
487 | 172k | _name = substr + "_SINK_OPERATOR"; |
488 | 172k | return Status::OK(); |
489 | 172k | } |
490 | | |
491 | | template <typename LocalStateType> |
492 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
493 | 1.89M | LocalSinkStateInfo& info) { |
494 | 1.89M | auto local_state = LocalStateType::create_unique(this, state); |
495 | 1.89M | RETURN_IF_ERROR(local_state->init(state, info)); |
496 | 1.89M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
497 | 1.89M | return Status::OK(); |
498 | 1.89M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 182k | LocalSinkStateInfo& info) { | 494 | 182k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 182k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 182k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 182k | return Status::OK(); | 498 | 182k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 391k | LocalSinkStateInfo& info) { | 494 | 391k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 391k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 391k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 391k | return Status::OK(); | 498 | 391k | } |
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 | 337 | LocalSinkStateInfo& info) { | 494 | 337 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 337 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 337 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 337 | return Status::OK(); | 498 | 337 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 67.0k | LocalSinkStateInfo& info) { | 494 | 67.0k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 67.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 67.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 67.0k | return Status::OK(); | 498 | 67.0k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 136 | LocalSinkStateInfo& info) { | 494 | 136 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 136 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 136 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 136 | return Status::OK(); | 498 | 136 | } |
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.35k | LocalSinkStateInfo& info) { | 494 | 8.35k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 8.35k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 8.35k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 8.35k | return Status::OK(); | 498 | 8.35k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_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_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 188k | LocalSinkStateInfo& info) { | 494 | 188k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 188k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 188k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 188k | return Status::OK(); | 498 | 188k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 17 | LocalSinkStateInfo& info) { | 494 | 17 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 17 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 17 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 17 | return Status::OK(); | 498 | 17 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 296k | LocalSinkStateInfo& info) { | 494 | 296k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 296k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 296k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 296k | return Status::OK(); | 498 | 296k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 124k | LocalSinkStateInfo& info) { | 494 | 124k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 124k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 124k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 124k | return Status::OK(); | 498 | 124k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 858 | LocalSinkStateInfo& info) { | 494 | 858 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 858 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 858 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 858 | return Status::OK(); | 498 | 858 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 603k | LocalSinkStateInfo& info) { | 494 | 603k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 603k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 603k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 603k | return Status::OK(); | 498 | 603k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 6.26k | LocalSinkStateInfo& info) { | 494 | 6.26k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 6.26k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 6.26k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 6.26k | return Status::OK(); | 498 | 6.26k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 7.31k | LocalSinkStateInfo& info) { | 494 | 7.31k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 7.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 7.31k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 7.31k | return Status::OK(); | 498 | 7.31k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.40k | LocalSinkStateInfo& info) { | 494 | 2.40k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.40k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.40k | return Status::OK(); | 498 | 2.40k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 270 | LocalSinkStateInfo& info) { | 494 | 270 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 270 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 270 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 270 | return Status::OK(); | 498 | 270 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 4.49k | LocalSinkStateInfo& info) { | 494 | 4.49k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 4.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 4.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 4.49k | return Status::OK(); | 498 | 4.49k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.41k | LocalSinkStateInfo& info) { | 494 | 2.41k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.41k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.41k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.41k | return Status::OK(); | 498 | 2.41k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.32k | LocalSinkStateInfo& info) { | 494 | 2.32k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.32k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.32k | return Status::OK(); | 498 | 2.32k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.37k | LocalSinkStateInfo& info) { | 494 | 2.37k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.37k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.37k | return Status::OK(); | 498 | 2.37k | } |
_ZN5doris17DataSinkOperatorXINS_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 | 364 | LocalSinkStateInfo& info) { | 494 | 364 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 364 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 364 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 364 | return Status::OK(); | 498 | 364 | } |
_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.56M | 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.56M | } else { |
509 | 1.56M | auto ss = LocalStateType::SharedStateType::create_shared(); |
510 | 1.56M | ss->id = operator_id(); |
511 | 1.56M | for (auto& dest : dests_id()) { |
512 | 1.55M | ss->related_op_ids.insert(dest); |
513 | 1.55M | } |
514 | 1.56M | return ss; |
515 | 1.56M | } |
516 | 1.56M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 166k | 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 | 166k | } else { | 509 | 166k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 166k | ss->id = operator_id(); | 511 | 166k | for (auto& dest : dests_id()) { | 512 | 166k | ss->related_op_ids.insert(dest); | 513 | 166k | } | 514 | 166k | return ss; | 515 | 166k | } | 516 | 166k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 391k | 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 | 391k | } else { | 509 | 391k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 391k | ss->id = operator_id(); | 511 | 391k | for (auto& dest : dests_id()) { | 512 | 390k | ss->related_op_ids.insert(dest); | 513 | 390k | } | 514 | 391k | return ss; | 515 | 391k | } | 516 | 391k | } |
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 | 337 | 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 | 337 | } else { | 509 | 337 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 337 | ss->id = operator_id(); | 511 | 337 | for (auto& dest : dests_id()) { | 512 | 337 | ss->related_op_ids.insert(dest); | 513 | 337 | } | 514 | 337 | return ss; | 515 | 337 | } | 516 | 337 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 66.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 | 66.1k | } else { | 509 | 66.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 66.1k | ss->id = operator_id(); | 511 | 66.1k | for (auto& dest : dests_id()) { | 512 | 66.0k | ss->related_op_ids.insert(dest); | 513 | 66.0k | } | 514 | 66.1k | return ss; | 515 | 66.1k | } | 516 | 66.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 136 | 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 | 136 | } else { | 509 | 136 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 136 | ss->id = operator_id(); | 511 | 136 | for (auto& dest : dests_id()) { | 512 | 136 | ss->related_op_ids.insert(dest); | 513 | 136 | } | 514 | 136 | return ss; | 515 | 136 | } | 516 | 136 | } |
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.36k | 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.36k | } else { | 509 | 8.36k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 8.36k | ss->id = operator_id(); | 511 | 8.36k | for (auto& dest : dests_id()) { | 512 | 8.34k | ss->related_op_ids.insert(dest); | 513 | 8.34k | } | 514 | 8.36k | return ss; | 515 | 8.36k | } | 516 | 8.36k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_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_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 188k | 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 | 188k | } else { | 509 | 188k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 188k | ss->id = operator_id(); | 511 | 188k | for (auto& dest : dests_id()) { | 512 | 188k | ss->related_op_ids.insert(dest); | 513 | 188k | } | 514 | 188k | return ss; | 515 | 188k | } | 516 | 188k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 19 | 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 | 19 | } else { | 509 | 19 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 19 | ss->id = operator_id(); | 511 | 19 | for (auto& dest : dests_id()) { | 512 | 19 | ss->related_op_ids.insert(dest); | 513 | 19 | } | 514 | 19 | return ss; | 515 | 19 | } | 516 | 19 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 124k | 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 | 124k | } else { | 509 | 124k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 124k | ss->id = operator_id(); | 511 | 124k | for (auto& dest : dests_id()) { | 512 | 124k | ss->related_op_ids.insert(dest); | 513 | 124k | } | 514 | 124k | return ss; | 515 | 124k | } | 516 | 124k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 857 | 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 | 857 | } else { | 509 | 857 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 857 | ss->id = operator_id(); | 511 | 857 | for (auto& dest : dests_id()) { | 512 | 857 | ss->related_op_ids.insert(dest); | 513 | 857 | } | 514 | 857 | return ss; | 515 | 857 | } | 516 | 857 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 603k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 603k | } else { | 509 | 603k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 603k | ss->id = operator_id(); | 511 | 603k | for (auto& dest : dests_id()) { | 512 | 601k | ss->related_op_ids.insert(dest); | 513 | 601k | } | 514 | 603k | return ss; | 515 | 603k | } | 516 | 603k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 6.26k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 6.26k | } else { | 509 | 6.26k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 6.26k | ss->id = operator_id(); | 511 | 6.26k | for (auto& dest : dests_id()) { | 512 | 6.25k | ss->related_op_ids.insert(dest); | 513 | 6.25k | } | 514 | 6.26k | return ss; | 515 | 6.26k | } | 516 | 6.26k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 370 | 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 | 370 | } else { | 509 | 370 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 370 | ss->id = operator_id(); | 511 | 372 | for (auto& dest : dests_id()) { | 512 | 372 | ss->related_op_ids.insert(dest); | 513 | 372 | } | 514 | 370 | return ss; | 515 | 370 | } | 516 | 370 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.32k | 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.32k | } else { | 509 | 2.32k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.32k | ss->id = operator_id(); | 511 | 2.32k | for (auto& dest : dests_id()) { | 512 | 2.31k | ss->related_op_ids.insert(dest); | 513 | 2.31k | } | 514 | 2.32k | return ss; | 515 | 2.32k | } | 516 | 2.32k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.38k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 2.38k | } else { | 509 | 2.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.38k | ss->id = operator_id(); | 511 | 2.38k | for (auto& dest : dests_id()) { | 512 | 2.37k | ss->related_op_ids.insert(dest); | 513 | 2.37k | } | 514 | 2.38k | return ss; | 515 | 2.38k | } | 516 | 2.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 165 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 165 | } else { | 509 | 165 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 165 | ss->id = operator_id(); | 511 | 165 | for (auto& dest : dests_id()) { | 512 | 165 | ss->related_op_ids.insert(dest); | 513 | 165 | } | 514 | 165 | return ss; | 515 | 165 | } | 516 | 165 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 104 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 104 | } else { | 509 | 104 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 104 | ss->id = operator_id(); | 511 | 104 | for (auto& dest : dests_id()) { | 512 | 104 | ss->related_op_ids.insert(dest); | 513 | 104 | } | 514 | 104 | return ss; | 515 | 104 | } | 516 | 104 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
517 | | |
518 | | template <typename LocalStateType> |
519 | 2.51M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
520 | 2.51M | auto local_state = LocalStateType::create_unique(state, this); |
521 | 2.51M | RETURN_IF_ERROR(local_state->init(state, info)); |
522 | 2.51M | state->emplace_local_state(operator_id(), std::move(local_state)); |
523 | 2.51M | return Status::OK(); |
524 | 2.51M | } _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 | 310k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 310k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 310k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 310k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 310k | return Status::OK(); | 524 | 310k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 79 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 79 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 79 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 79 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 79 | return Status::OK(); | 524 | 79 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.67k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.67k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.67k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.67k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.67k | return Status::OK(); | 524 | 2.67k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 8.33k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 8.33k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 8.33k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 8.33k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 8.33k | return Status::OK(); | 524 | 8.33k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 10.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 10.3k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 10.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 10.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 10.3k | return Status::OK(); | 524 | 10.3k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 14 | return Status::OK(); | 524 | 14 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 177k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 177k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 177k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 177k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 177k | return Status::OK(); | 524 | 177k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 124k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 124k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 124k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 124k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 124k | return Status::OK(); | 524 | 124k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 852 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 852 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 852 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 852 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 852 | return Status::OK(); | 524 | 852 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 3.88k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 3.88k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 3.88k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 3.88k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 3.88k | return Status::OK(); | 524 | 3.88k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 455k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 455k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 455k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 455k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 455k | return Status::OK(); | 524 | 455k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.41k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.41k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.41k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.41k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.41k | return Status::OK(); | 524 | 1.41k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 6.24k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 6.24k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 6.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 6.24k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 6.24k | return Status::OK(); | 524 | 6.24k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 21 | return Status::OK(); | 524 | 21 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.55k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.55k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.55k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.55k | return Status::OK(); | 524 | 1.55k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 39.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 39.7k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 39.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 39.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 39.7k | return Status::OK(); | 524 | 39.7k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 6.71k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 6.71k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 6.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 6.71k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 6.71k | return Status::OK(); | 524 | 6.71k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 270 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 270 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 270 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 270 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 270 | return Status::OK(); | 524 | 270 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.32k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.32k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.32k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.32k | return Status::OK(); | 524 | 2.32k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.38k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.38k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.38k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.38k | return Status::OK(); | 524 | 2.38k | } |
_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 | 5.00k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 5.00k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 5.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 5.00k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 5.00k | return Status::OK(); | 524 | 5.00k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 668k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 668k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 668k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 668k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 668k | return Status::OK(); | 524 | 668k | } |
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.85k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.85k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.85k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.85k | return Status::OK(); | 524 | 1.85k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 668 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 668 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 668 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 668 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 668 | return Status::OK(); | 524 | 668 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.17k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.17k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.17k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.17k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.17k | return Status::OK(); | 524 | 1.17k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 6.89k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 6.89k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 6.89k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 6.89k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 6.89k | return Status::OK(); | 524 | 6.89k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 544k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 544k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 544k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 544k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 544k | return Status::OK(); | 524 | 544k | } |
|
525 | | |
526 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
527 | | RuntimeState* state) |
528 | 1.89M | : _parent(parent), _state(state) {} |
529 | | |
530 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
531 | 2.51M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
532 | | |
533 | | template <typename SharedStateArg> |
534 | 2.52M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
535 | 2.52M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
536 | 2.52M | _common_profile.reset(new RuntimeProfile("CommonCounters")); |
537 | 2.52M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); |
538 | 2.52M | _operator_profile->set_metadata(_parent->node_id()); |
539 | | // indent is false so that source operator will have same |
540 | | // indentation_level with its parent operator. |
541 | 2.52M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
542 | 2.52M | _operator_profile->add_child(_common_profile.get(), true); |
543 | 2.52M | _operator_profile->add_child(_custom_profile.get(), true); |
544 | 2.52M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
545 | 2.52M | if constexpr (!is_fake_shared) { |
546 | 1.18M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
547 | 683k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
548 | 683k | .first.get() |
549 | 683k | ->template cast<SharedStateArg>(); |
550 | | |
551 | 683k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
552 | 683k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
553 | 683k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
554 | 683k | } else if (info.shared_state) { |
555 | 456k | 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 | 456k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
560 | | |
561 | 456k | _dependency = _shared_state->create_source_dependency( |
562 | 456k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
563 | 456k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
564 | 456k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
565 | 456k | } else { |
566 | 42.7k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
567 | 292 | DCHECK(false); |
568 | 292 | } |
569 | 42.7k | } |
570 | 1.18M | } |
571 | | |
572 | 2.52M | if (must_set_shared_state() && _shared_state == nullptr) { |
573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
574 | 0 | } |
575 | | |
576 | 2.52M | _rows_returned_counter = |
577 | 2.52M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); |
578 | 2.52M | _blocks_returned_counter = |
579 | 2.52M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); |
580 | 2.52M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); |
581 | 2.52M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
582 | 2.52M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
583 | 2.52M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
584 | 2.52M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
585 | 2.52M | _memory_used_counter = |
586 | 2.52M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
587 | 2.52M | _common_profile->add_info_string("IsColocate", |
588 | 2.52M | std::to_string(_parent->is_colocated_operator())); |
589 | 2.52M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
590 | 2.52M | _common_profile->add_info_string("FollowedByShuffledOperator", |
591 | 2.52M | std::to_string(_parent->followed_by_shuffled_operator())); |
592 | 2.52M | return Status::OK(); |
593 | 2.52M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 134k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 134k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 134k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 134k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 134k | _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 | 134k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 134k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 134k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 134k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 134k | if constexpr (!is_fake_shared) { | 546 | 134k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 15.7k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 15.7k | .first.get() | 549 | 15.7k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 15.7k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 15.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 15.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 119k | } 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 | 117k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 117k | _dependency = _shared_state->create_source_dependency( | 562 | 117k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 117k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 117k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 117k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1.24k | } | 570 | 134k | } | 571 | | | 572 | 134k | 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 | 134k | _rows_returned_counter = | 577 | 134k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 134k | _blocks_returned_counter = | 579 | 134k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 134k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 134k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 134k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 134k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 134k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 134k | _memory_used_counter = | 586 | 134k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 134k | _common_profile->add_info_string("IsColocate", | 588 | 134k | std::to_string(_parent->is_colocated_operator())); | 589 | 134k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 134k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 134k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 134k | return Status::OK(); | 593 | 134k | } |
_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 | 187k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 187k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 187k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 187k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 187k | _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 | 187k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 187k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 187k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 187k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 187k | if constexpr (!is_fake_shared) { | 546 | 187k | 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 | 187k | } 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 | 184k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 184k | _dependency = _shared_state->create_source_dependency( | 562 | 184k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 184k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 184k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 184k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 3.75k | } | 570 | 187k | } | 571 | | | 572 | 187k | 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 | 187k | _rows_returned_counter = | 577 | 187k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 187k | _blocks_returned_counter = | 579 | 187k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 187k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 187k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 187k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 187k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 187k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 187k | _memory_used_counter = | 586 | 187k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 187k | _common_profile->add_info_string("IsColocate", | 588 | 187k | std::to_string(_parent->is_colocated_operator())); | 589 | 187k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 187k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 187k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 187k | return Status::OK(); | 593 | 187k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 14 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 14 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 14 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 14 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 14 | _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 | 14 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 14 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 14 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 14 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 14 | if constexpr (!is_fake_shared) { | 546 | 14 | 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 | 14 | } 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 | 14 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 14 | _dependency = _shared_state->create_source_dependency( | 562 | 14 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 14 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 14 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 14 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 14 | } | 571 | | | 572 | 14 | 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 | 14 | _rows_returned_counter = | 577 | 14 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 14 | _blocks_returned_counter = | 579 | 14 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 14 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 14 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 14 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 14 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 14 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 14 | _memory_used_counter = | 586 | 14 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 14 | _common_profile->add_info_string("IsColocate", | 588 | 14 | std::to_string(_parent->is_colocated_operator())); | 589 | 14 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 14 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 14 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 14 | return Status::OK(); | 593 | 14 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 6.22k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 6.22k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 6.22k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 6.22k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 6.22k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 6.22k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 6.22k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 6.22k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 6.22k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 6.22k | if constexpr (!is_fake_shared) { | 546 | 6.22k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 6.22k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 6.21k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 6.21k | _dependency = _shared_state->create_source_dependency( | 562 | 6.21k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 6.21k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 6.21k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 6.21k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 16 | } | 570 | 6.22k | } | 571 | | | 572 | 6.22k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 6.22k | _rows_returned_counter = | 577 | 6.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 6.22k | _blocks_returned_counter = | 579 | 6.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 6.22k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 6.22k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 6.22k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 6.22k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 6.22k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 6.22k | _memory_used_counter = | 586 | 6.22k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 6.22k | _common_profile->add_info_string("IsColocate", | 588 | 6.22k | std::to_string(_parent->is_colocated_operator())); | 589 | 6.22k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 6.22k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 6.22k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 6.22k | return Status::OK(); | 593 | 6.22k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 8.34k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 8.34k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 8.34k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 8.34k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 8.34k | _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.34k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 8.34k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 8.34k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 8.34k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 8.34k | if constexpr (!is_fake_shared) { | 546 | 8.34k | 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.34k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 8.32k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 8.32k | _dependency = _shared_state->create_source_dependency( | 562 | 8.32k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 8.32k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 8.32k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 8.32k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 27 | } | 570 | 8.34k | } | 571 | | | 572 | 8.34k | 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.34k | _rows_returned_counter = | 577 | 8.34k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 8.34k | _blocks_returned_counter = | 579 | 8.34k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 8.34k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 8.34k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 8.34k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 8.34k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 8.34k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 8.34k | _memory_used_counter = | 586 | 8.34k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 8.34k | _common_profile->add_info_string("IsColocate", | 588 | 8.34k | std::to_string(_parent->is_colocated_operator())); | 589 | 8.34k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 8.34k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 8.34k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 8.34k | return Status::OK(); | 593 | 8.34k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 124k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 124k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 124k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 124k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 124k | _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 | 124k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 124k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 124k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 124k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 124k | if constexpr (!is_fake_shared) { | 546 | 124k | 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 | 124k | } 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 | 123k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 123k | _dependency = _shared_state->create_source_dependency( | 562 | 123k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 123k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 123k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 123k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 1.05k | } | 570 | 124k | } | 571 | | | 572 | 124k | 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 | 124k | _rows_returned_counter = | 577 | 124k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 124k | _blocks_returned_counter = | 579 | 124k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 124k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 124k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 124k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 124k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 124k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 124k | _memory_used_counter = | 586 | 124k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 124k | _common_profile->add_info_string("IsColocate", | 588 | 124k | std::to_string(_parent->is_colocated_operator())); | 589 | 124k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 124k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 124k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 124k | return Status::OK(); | 593 | 124k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 852 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 852 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 852 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 852 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 852 | _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 | 852 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 852 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 852 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 852 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 852 | if constexpr (!is_fake_shared) { | 546 | 852 | 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 | 852 | } 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 | 852 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 852 | _dependency = _shared_state->create_source_dependency( | 562 | 852 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 852 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 852 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 852 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 852 | } | 571 | | | 572 | 852 | 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 | 852 | _rows_returned_counter = | 577 | 852 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 852 | _blocks_returned_counter = | 579 | 852 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 852 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 852 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 852 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 852 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 852 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 852 | _memory_used_counter = | 586 | 852 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 852 | _common_profile->add_info_string("IsColocate", | 588 | 852 | std::to_string(_parent->is_colocated_operator())); | 589 | 852 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 852 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 852 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 852 | return Status::OK(); | 593 | 852 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 1.33M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 1.33M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 1.33M | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 1.33M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 1.33M | _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.33M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 1.33M | _operator_profile->add_child(_common_profile.get(), true); | 543 | 1.33M | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 1.33M | 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.33M | 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.33M | _rows_returned_counter = | 577 | 1.33M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 1.33M | _blocks_returned_counter = | 579 | 1.33M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 1.33M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 1.33M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 1.33M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 1.33M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 1.33M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 1.33M | _memory_used_counter = | 586 | 1.33M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 1.33M | _common_profile->add_info_string("IsColocate", | 588 | 1.33M | std::to_string(_parent->is_colocated_operator())); | 589 | 1.33M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 1.33M | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 1.33M | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 1.33M | return Status::OK(); | 593 | 1.33M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 39.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 39.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 39.6k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 39.6k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 39.6k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 39.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 39.6k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 39.6k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 39.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 39.6k | if constexpr (!is_fake_shared) { | 546 | 39.6k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 39.6k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 3.32k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 3.32k | _dependency = _shared_state->create_source_dependency( | 562 | 3.32k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 3.32k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 3.32k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 36.3k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 36.3k | } | 570 | 39.6k | } | 571 | | | 572 | 39.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 39.6k | _rows_returned_counter = | 577 | 39.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 39.6k | _blocks_returned_counter = | 579 | 39.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 39.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 39.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 39.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 39.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 39.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 39.6k | _memory_used_counter = | 586 | 39.6k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 39.6k | _common_profile->add_info_string("IsColocate", | 588 | 39.6k | std::to_string(_parent->is_colocated_operator())); | 589 | 39.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 39.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 39.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 39.6k | return Status::OK(); | 593 | 39.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 367 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 367 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 367 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 367 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 367 | _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 | 367 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 367 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 367 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 367 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 367 | if constexpr (!is_fake_shared) { | 546 | 367 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 369 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 369 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 369 | _dependency = _shared_state->create_source_dependency( | 562 | 369 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 369 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 369 | _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 | 367 | } | 571 | | | 572 | 369 | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 367 | _rows_returned_counter = | 577 | 367 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 367 | _blocks_returned_counter = | 579 | 367 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 367 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 367 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 367 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 367 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 367 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 367 | _memory_used_counter = | 586 | 367 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 367 | _common_profile->add_info_string("IsColocate", | 588 | 367 | std::to_string(_parent->is_colocated_operator())); | 589 | 367 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 367 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 367 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 367 | return Status::OK(); | 593 | 367 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 6.71k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 6.71k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 6.71k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 6.71k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 6.71k | _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.71k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 6.71k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 6.71k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 6.71k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 6.71k | if constexpr (!is_fake_shared) { | 546 | 6.71k | 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.71k | } 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.71k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 6.71k | _dependency = _shared_state->create_source_dependency( | 562 | 6.71k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 6.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 6.71k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 6.71k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 2 | } | 570 | 6.71k | } | 571 | | | 572 | 6.71k | 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.71k | _rows_returned_counter = | 577 | 6.71k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 6.71k | _blocks_returned_counter = | 579 | 6.71k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 6.71k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 6.71k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 6.71k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 6.71k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 6.71k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 6.71k | _memory_used_counter = | 586 | 6.71k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 6.71k | _common_profile->add_info_string("IsColocate", | 588 | 6.71k | std::to_string(_parent->is_colocated_operator())); | 589 | 6.71k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 6.71k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 6.71k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 6.71k | return Status::OK(); | 593 | 6.71k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 371 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 371 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 371 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 371 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 371 | _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 | 371 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 371 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 371 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 371 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 371 | if constexpr (!is_fake_shared) { | 546 | 371 | 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 | 372 | } 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 | 372 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 372 | _dependency = _shared_state->create_source_dependency( | 562 | 372 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 372 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 372 | _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 | 371 | } | 571 | | | 572 | 372 | 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 | 371 | _rows_returned_counter = | 577 | 371 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 371 | _blocks_returned_counter = | 579 | 371 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 371 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 371 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 371 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 371 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 371 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 371 | _memory_used_counter = | 586 | 371 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 371 | _common_profile->add_info_string("IsColocate", | 588 | 371 | std::to_string(_parent->is_colocated_operator())); | 589 | 371 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 371 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 371 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 371 | return Status::OK(); | 593 | 371 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 4.72k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 4.72k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 4.72k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 4.72k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 4.72k | _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.72k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 4.72k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 4.72k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 4.72k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 4.72k | if constexpr (!is_fake_shared) { | 546 | 4.72k | 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.72k | } 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.70k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 4.70k | _dependency = _shared_state->create_source_dependency( | 562 | 4.70k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 4.70k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 4.70k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 4.70k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 14 | } | 570 | 4.72k | } | 571 | | | 572 | 4.72k | 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.72k | _rows_returned_counter = | 577 | 4.72k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 4.72k | _blocks_returned_counter = | 579 | 4.72k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 4.72k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 4.72k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 4.72k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 4.72k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 4.72k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 4.72k | _memory_used_counter = | 586 | 4.72k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 4.72k | _common_profile->add_info_string("IsColocate", | 588 | 4.72k | std::to_string(_parent->is_colocated_operator())); | 589 | 4.72k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 4.72k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 4.72k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 4.72k | return Status::OK(); | 593 | 4.72k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 667k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 667k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 667k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 667k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 667k | _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 | 667k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 667k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 667k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 667k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 667k | if constexpr (!is_fake_shared) { | 546 | 667k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 667k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 667k | .first.get() | 549 | 667k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 667k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 667k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 667k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 667k | } 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 | 292 | } else { | 566 | 292 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | 292 | DCHECK(false); | 568 | 292 | } | 569 | 292 | } | 570 | 667k | } | 571 | | | 572 | 667k | 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 | 667k | _rows_returned_counter = | 577 | 667k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 667k | _blocks_returned_counter = | 579 | 667k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 667k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 667k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 667k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 667k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 667k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 667k | _memory_used_counter = | 586 | 667k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 667k | _common_profile->add_info_string("IsColocate", | 588 | 667k | std::to_string(_parent->is_colocated_operator())); | 589 | 667k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 667k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 667k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 667k | return Status::OK(); | 593 | 667k | } |
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.52M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
597 | 2.52M | _conjuncts.resize(_parent->_conjuncts.size()); |
598 | 2.52M | _projections.resize(_parent->_projections.size()); |
599 | 2.85M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
600 | 328k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
601 | 328k | } |
602 | 5.08M | for (size_t i = 0; i < _projections.size(); i++) { |
603 | 2.55M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
604 | 2.55M | } |
605 | 2.52M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
606 | 2.53M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
607 | 6.28k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
608 | 40.8k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
609 | 34.6k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
610 | 34.6k | state, _intermediate_projections[i][j])); |
611 | 34.6k | } |
612 | 6.28k | } |
613 | 2.52M | return Status::OK(); |
614 | 2.52M | } _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 | 136k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.24k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.24k | } | 602 | 711k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 576k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 576k | } | 605 | 135k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 135k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 587 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 5.47k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 4.88k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 4.88k | state, _intermediate_projections[i][j])); | 611 | 4.88k | } | 612 | 587 | } | 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 | 188k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 188k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 188k | _projections.resize(_parent->_projections.size()); | 599 | 188k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 207k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 18.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 18.8k | } | 605 | 188k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 188k | 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 | 188k | return Status::OK(); | 614 | 188k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 14 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 14 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 14 | _projections.resize(_parent->_projections.size()); | 599 | 14 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 14 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 14 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 14 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 14 | return Status::OK(); | 614 | 14 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 6.26k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 6.26k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 6.26k | _projections.resize(_parent->_projections.size()); | 599 | 6.37k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 113 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 113 | } | 602 | 35.2k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 28.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 28.9k | } | 605 | 6.26k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 6.29k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 32 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 228 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 196 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 196 | state, _intermediate_projections[i][j])); | 611 | 196 | } | 612 | 32 | } | 613 | 6.26k | return Status::OK(); | 614 | 6.26k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 8.36k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 8.36k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 8.36k | _projections.resize(_parent->_projections.size()); | 599 | 9.12k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 757 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 757 | } | 602 | 22.1k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 13.7k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 13.7k | } | 605 | 8.36k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 8.53k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 170 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 1.28k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 1.11k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 1.11k | state, _intermediate_projections[i][j])); | 611 | 1.11k | } | 612 | 170 | } | 613 | 8.36k | return Status::OK(); | 614 | 8.36k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 124k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 124k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 124k | _projections.resize(_parent->_projections.size()); | 599 | 126k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.79k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.79k | } | 602 | 449k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 325k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 325k | } | 605 | 124k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 124k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 131 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 1.00k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 871 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 871 | state, _intermediate_projections[i][j])); | 611 | 871 | } | 612 | 131 | } | 613 | 124k | return Status::OK(); | 614 | 124k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 856 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 856 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 856 | _projections.resize(_parent->_projections.size()); | 599 | 856 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 2.05k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 1.20k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 1.20k | } | 605 | 856 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 856 | 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 | 856 | return Status::OK(); | 614 | 856 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 1.34M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 1.34M | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 1.34M | _projections.resize(_parent->_projections.size()); | 599 | 1.66M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 323k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 323k | } | 602 | 2.83M | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 1.49M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 1.49M | } | 605 | 1.34M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 1.34M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 5.36k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 32.9k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 27.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 27.5k | state, _intermediate_projections[i][j])); | 611 | 27.5k | } | 612 | 5.36k | } | 613 | 1.34M | return Status::OK(); | 614 | 1.34M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 39.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 39.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 39.7k | _projections.resize(_parent->_projections.size()); | 599 | 39.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 135k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 95.2k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 95.2k | } | 605 | 39.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 39.7k | 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 | 39.7k | return Status::OK(); | 614 | 39.7k | } |
_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.71k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 6.71k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 6.71k | _projections.resize(_parent->_projections.size()); | 599 | 8.14k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.42k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.42k | } | 602 | 6.71k | 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.71k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 6.71k | 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.71k | return Status::OK(); | 614 | 6.71k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 371 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 371 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 371 | _projections.resize(_parent->_projections.size()); | 599 | 371 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 371 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 371 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 371 | 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 | 371 | return Status::OK(); | 614 | 371 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 4.72k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 4.72k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 4.72k | _projections.resize(_parent->_projections.size()); | 599 | 4.72k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 4.72k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 4.72k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 4.72k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 4.72k | return Status::OK(); | 614 | 4.72k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 671k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 671k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 671k | _projections.resize(_parent->_projections.size()); | 599 | 671k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 671k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 671k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 671k | 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 | 671k | return Status::OK(); | 614 | 671k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 150 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 150 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 150 | _projections.resize(_parent->_projections.size()); | 599 | 157 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 7 | } | 602 | 443 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 293 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 293 | } | 605 | 150 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 151 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 2 | state, _intermediate_projections[i][j])); | 611 | 2 | } | 612 | 1 | } | 613 | 150 | return Status::OK(); | 614 | 150 | } |
|
615 | | |
616 | | template <typename SharedStateArg> |
617 | 8.56k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
618 | 8.56k | if (_terminated) { |
619 | 0 | return Status::OK(); |
620 | 0 | } |
621 | 8.56k | _terminated = true; |
622 | 8.56k | return Status::OK(); |
623 | 8.56k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 526 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 526 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 526 | _terminated = true; | 622 | 526 | return Status::OK(); | 623 | 526 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 129 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 129 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 129 | _terminated = true; | 622 | 129 | return Status::OK(); | 623 | 129 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 124 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 124 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 124 | _terminated = true; | 622 | 124 | return Status::OK(); | 623 | 124 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 1.33k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 1.33k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 1.33k | _terminated = true; | 622 | 1.33k | return Status::OK(); | 623 | 1.33k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 5.51k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 5.51k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 5.51k | _terminated = true; | 622 | 5.51k | return Status::OK(); | 623 | 5.51k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 6 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 6 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 6 | _terminated = true; | 622 | 6 | return Status::OK(); | 623 | 6 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 61 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 61 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 61 | _terminated = true; | 622 | 61 | return Status::OK(); | 623 | 61 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 3 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 3 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 3 | _terminated = true; | 622 | 3 | return Status::OK(); | 623 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 849 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 849 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 849 | _terminated = true; | 622 | 849 | return Status::OK(); | 623 | 849 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 17 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 17 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 17 | _terminated = true; | 622 | 17 | return Status::OK(); | 623 | 17 | } |
|
624 | | |
625 | | template <typename SharedStateArg> |
626 | 2.74M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
627 | 2.74M | if (_closed) { |
628 | 217k | return Status::OK(); |
629 | 217k | } |
630 | 2.53M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
631 | 1.18M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
632 | 1.18M | } |
633 | 2.53M | _closed = true; |
634 | 2.53M | return Status::OK(); |
635 | 2.74M | } _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 | 376k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 376k | if (_closed) { | 628 | 188k | return Status::OK(); | 629 | 188k | } | 630 | 188k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 188k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 188k | } | 633 | 188k | _closed = true; | 634 | 188k | return Status::OK(); | 635 | 376k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 14 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 14 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 14 | } | 633 | 14 | _closed = true; | 634 | 14 | return Status::OK(); | 635 | 14 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 6.26k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 6.26k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 6.26k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 6.26k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 6.26k | } | 633 | 6.26k | _closed = true; | 634 | 6.26k | return Status::OK(); | 635 | 6.26k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 16.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 16.7k | if (_closed) { | 628 | 8.44k | return Status::OK(); | 629 | 8.44k | } | 630 | 8.35k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 8.35k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 8.35k | } | 633 | 8.35k | _closed = true; | 634 | 8.35k | return Status::OK(); | 635 | 16.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 123k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 123k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 123k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 123k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 123k | } | 633 | 123k | _closed = true; | 634 | 123k | return Status::OK(); | 635 | 123k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 849 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 849 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 849 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 849 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 849 | } | 633 | 849 | _closed = true; | 634 | 849 | return Status::OK(); | 635 | 849 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1.35M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1.35M | if (_closed) { | 628 | 15.1k | return Status::OK(); | 629 | 15.1k | } | 630 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | | } | 633 | 1.34M | _closed = true; | 634 | 1.34M | return Status::OK(); | 635 | 1.35M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 39.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 39.8k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 39.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 39.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 39.8k | } | 633 | 39.8k | _closed = true; | 634 | 39.8k | return Status::OK(); | 635 | 39.8k | } |
_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.69k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 6.69k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 6.69k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 6.69k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 6.69k | } | 633 | 6.69k | _closed = true; | 634 | 6.69k | return Status::OK(); | 635 | 6.69k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 538 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 538 | if (_closed) { | 628 | 269 | return Status::OK(); | 629 | 269 | } | 630 | 269 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 269 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 269 | } | 633 | 269 | _closed = true; | 634 | 269 | return Status::OK(); | 635 | 538 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 9.48k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 9.48k | if (_closed) { | 628 | 4.76k | return Status::OK(); | 629 | 4.76k | } | 630 | 4.71k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 4.71k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 4.71k | } | 633 | 4.71k | _closed = true; | 634 | 4.71k | return Status::OK(); | 635 | 9.48k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 672k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 672k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 672k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 672k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 672k | } | 633 | 672k | _closed = true; | 634 | 672k | return Status::OK(); | 635 | 672k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 366 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 366 | if (_closed) { | 628 | 216 | return Status::OK(); | 629 | 216 | } | 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 | 366 | } |
|
636 | | |
637 | | template <typename SharedState> |
638 | 1.89M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
639 | | // create profile |
640 | 1.89M | _operator_profile = |
641 | 1.89M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
642 | 1.89M | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); |
643 | 1.89M | _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.89M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
649 | 1.89M | _operator_profile->add_child(_common_profile, true); |
650 | 1.89M | _operator_profile->add_child(_custom_profile, true); |
651 | | |
652 | 1.89M | _operator_profile->set_metadata(_parent->node_id()); |
653 | 1.89M | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); |
654 | 1.89M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
655 | 1.89M | if constexpr (!is_fake_shared) { |
656 | 1.29M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
657 | 1.29M | info.shared_state_map.end()) { |
658 | 313k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
659 | 296k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
660 | 296k | } |
661 | 313k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
662 | 313k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
663 | 313k | ? 0 |
664 | 313k | : info.task_idx] |
665 | 313k | .get(); |
666 | 313k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
667 | 976k | } else { |
668 | 976k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
669 | 141 | DCHECK(false); |
670 | 141 | } |
671 | 976k | _shared_state = info.shared_state->template cast<SharedState>(); |
672 | 976k | _dependency = _shared_state->create_sink_dependency( |
673 | 976k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
674 | 976k | } |
675 | 1.29M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
676 | 1.29M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
677 | 1.29M | } |
678 | | |
679 | 1.89M | 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.89M | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); |
684 | 1.89M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
685 | 1.89M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
686 | 1.89M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
687 | 1.89M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
688 | 1.89M | _memory_used_counter = |
689 | 1.89M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
690 | 1.89M | _common_profile->add_info_string("IsColocate", |
691 | 1.89M | std::to_string(_parent->is_colocated_operator())); |
692 | 1.89M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
693 | 1.89M | _common_profile->add_info_string("FollowedByShuffledOperator", |
694 | 1.89M | std::to_string(_parent->followed_by_shuffled_operator())); |
695 | 1.89M | return Status::OK(); |
696 | 1.89M | } _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 | 15.9k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 15.9k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 15.9k | ? 0 | 664 | 15.9k | : info.task_idx] | 665 | 15.9k | .get(); | 666 | 15.9k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 167k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 167k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 167k | _dependency = _shared_state->create_sink_dependency( | 673 | 167k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 167k | } | 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 | 188k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 188k | _operator_profile = | 641 | 188k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 188k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 188k | _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 | 188k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 188k | _operator_profile->add_child(_common_profile, true); | 650 | 188k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 188k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 188k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 188k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 188k | if constexpr (!is_fake_shared) { | 656 | 188k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 188k | 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 | 188k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 188k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 188k | _dependency = _shared_state->create_sink_dependency( | 673 | 188k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 188k | } | 675 | 188k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 188k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 188k | } | 678 | | | 679 | 188k | 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 | 188k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 188k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 188k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 188k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 188k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 188k | _memory_used_counter = | 689 | 188k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 188k | _common_profile->add_info_string("IsColocate", | 691 | 188k | std::to_string(_parent->is_colocated_operator())); | 692 | 188k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 188k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 188k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 188k | return Status::OK(); | 696 | 188k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 17 | _operator_profile = | 641 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 17 | _operator_profile->add_child(_common_profile, true); | 650 | 17 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 17 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 17 | if constexpr (!is_fake_shared) { | 656 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 17 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 17 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 17 | _dependency = _shared_state->create_sink_dependency( | 673 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 17 | } | 675 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 17 | } | 678 | | | 679 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 17 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 17 | _memory_used_counter = | 689 | 17 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 17 | _common_profile->add_info_string("IsColocate", | 691 | 17 | std::to_string(_parent->is_colocated_operator())); | 692 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 17 | return Status::OK(); | 696 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 6.26k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 6.26k | _operator_profile = | 641 | 6.26k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 6.26k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 6.26k | _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.26k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 6.26k | _operator_profile->add_child(_common_profile, true); | 650 | 6.26k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 6.26k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 6.26k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 6.26k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 6.26k | if constexpr (!is_fake_shared) { | 656 | 6.26k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 6.26k | 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.26k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 6.26k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 6.26k | _dependency = _shared_state->create_sink_dependency( | 673 | 6.26k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 6.26k | } | 675 | 6.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 6.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 6.26k | } | 678 | | | 679 | 6.26k | 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.26k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 6.26k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 6.26k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 6.26k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 6.26k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 6.26k | _memory_used_counter = | 689 | 6.26k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 6.26k | _common_profile->add_info_string("IsColocate", | 691 | 6.26k | std::to_string(_parent->is_colocated_operator())); | 692 | 6.26k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 6.26k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 6.26k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 6.26k | return Status::OK(); | 696 | 6.26k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 8.34k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 8.34k | _operator_profile = | 641 | 8.34k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 8.34k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 8.34k | _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.34k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 8.34k | _operator_profile->add_child(_common_profile, true); | 650 | 8.34k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 8.34k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 8.34k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 8.34k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 8.34k | if constexpr (!is_fake_shared) { | 656 | 8.34k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 8.34k | 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.34k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 8.34k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 8.34k | _dependency = _shared_state->create_sink_dependency( | 673 | 8.34k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 8.34k | } | 675 | 8.34k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 8.34k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 8.34k | } | 678 | | | 679 | 8.34k | 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.34k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 8.34k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 8.34k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 8.34k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 8.34k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 8.34k | _memory_used_counter = | 689 | 8.34k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 8.34k | _common_profile->add_info_string("IsColocate", | 691 | 8.34k | std::to_string(_parent->is_colocated_operator())); | 692 | 8.34k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 8.34k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 8.34k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 8.34k | return Status::OK(); | 696 | 8.34k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 124k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 124k | _operator_profile = | 641 | 124k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 124k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 124k | _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 | 124k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 124k | _operator_profile->add_child(_common_profile, true); | 650 | 124k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 124k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 124k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 124k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 124k | if constexpr (!is_fake_shared) { | 656 | 124k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 124k | 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 | 124k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 124k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 124k | _dependency = _shared_state->create_sink_dependency( | 673 | 124k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 124k | } | 675 | 124k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 124k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 124k | } | 678 | | | 679 | 124k | 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 | 124k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 124k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 124k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 124k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 124k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 124k | _memory_used_counter = | 689 | 124k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 124k | _common_profile->add_info_string("IsColocate", | 691 | 124k | std::to_string(_parent->is_colocated_operator())); | 692 | 124k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 124k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 124k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 124k | return Status::OK(); | 696 | 124k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 858 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 858 | _operator_profile = | 641 | 858 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 858 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 858 | _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 | 858 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 858 | _operator_profile->add_child(_common_profile, true); | 650 | 858 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 858 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 858 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 858 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 858 | if constexpr (!is_fake_shared) { | 656 | 858 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 858 | 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 | 858 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 858 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 858 | _dependency = _shared_state->create_sink_dependency( | 673 | 858 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 858 | } | 675 | 858 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 858 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 858 | } | 678 | | | 679 | 858 | 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 | 858 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 858 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 858 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 858 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 858 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 858 | _memory_used_counter = | 689 | 858 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 858 | _common_profile->add_info_string("IsColocate", | 691 | 858 | std::to_string(_parent->is_colocated_operator())); | 692 | 858 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 858 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 858 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 858 | return Status::OK(); | 696 | 858 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 605k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 605k | _operator_profile = | 641 | 605k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 605k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 605k | _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 | 605k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 605k | _operator_profile->add_child(_common_profile, true); | 650 | 605k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 605k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 605k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 605k | 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 | 605k | 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 | 605k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 605k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 605k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 605k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 605k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 605k | _memory_used_counter = | 689 | 605k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 605k | _common_profile->add_info_string("IsColocate", | 691 | 605k | std::to_string(_parent->is_colocated_operator())); | 692 | 605k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 605k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 605k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 605k | return Status::OK(); | 696 | 605k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 7.31k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 7.31k | _operator_profile = | 641 | 7.31k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 7.31k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 7.31k | _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.31k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 7.31k | _operator_profile->add_child(_common_profile, true); | 650 | 7.31k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 7.31k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 7.31k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 7.31k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 7.31k | if constexpr (!is_fake_shared) { | 656 | 7.31k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 7.31k | 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.31k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 7.31k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 7.31k | _dependency = _shared_state->create_sink_dependency( | 673 | 7.31k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 7.31k | } | 675 | 7.31k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 7.31k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 7.31k | } | 678 | | | 679 | 7.31k | 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.31k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 7.31k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 7.31k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 7.31k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 7.31k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 7.31k | _memory_used_counter = | 689 | 7.31k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 7.31k | _common_profile->add_info_string("IsColocate", | 691 | 7.31k | std::to_string(_parent->is_colocated_operator())); | 692 | 7.31k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 7.31k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 7.31k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 7.31k | return Status::OK(); | 696 | 7.31k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 372 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 372 | _operator_profile = | 641 | 372 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 372 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 372 | _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 | 372 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 372 | _operator_profile->add_child(_common_profile, true); | 650 | 372 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 372 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 372 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 372 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 372 | if constexpr (!is_fake_shared) { | 656 | 372 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 372 | 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 | 372 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 372 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 372 | _dependency = _shared_state->create_sink_dependency( | 673 | 372 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 372 | } | 675 | 372 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 372 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 372 | } | 678 | | | 679 | 372 | 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 | 372 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 372 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 372 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 372 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 372 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 372 | _memory_used_counter = | 689 | 372 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 372 | _common_profile->add_info_string("IsColocate", | 691 | 372 | std::to_string(_parent->is_colocated_operator())); | 692 | 372 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 372 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 372 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 372 | return Status::OK(); | 696 | 372 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 2.40k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 2.40k | _operator_profile = | 641 | 2.40k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 2.40k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 2.40k | _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.40k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 2.40k | _operator_profile->add_child(_common_profile, true); | 650 | 2.40k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 2.40k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 2.40k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 2.40k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 2.40k | if constexpr (!is_fake_shared) { | 656 | 2.40k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 2.40k | 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.40k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 2.40k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 2.40k | _dependency = _shared_state->create_sink_dependency( | 673 | 2.40k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 2.40k | } | 675 | 2.40k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 2.40k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 2.40k | } | 678 | | | 679 | 2.40k | 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.40k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 2.40k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 2.40k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 2.40k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 2.40k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 2.40k | _memory_used_counter = | 689 | 2.40k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 2.40k | _common_profile->add_info_string("IsColocate", | 691 | 2.40k | std::to_string(_parent->is_colocated_operator())); | 692 | 2.40k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 2.40k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 2.40k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 2.40k | return Status::OK(); | 696 | 2.40k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 11.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 11.6k | _operator_profile = | 641 | 11.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 11.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 11.6k | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 11.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 11.6k | _operator_profile->add_child(_common_profile, true); | 650 | 11.6k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 11.6k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 11.6k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 11.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 11.6k | if constexpr (!is_fake_shared) { | 656 | 11.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 11.6k | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 11.6k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 11.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 11.6k | _dependency = _shared_state->create_sink_dependency( | 673 | 11.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 11.6k | } | 675 | 11.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 11.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 11.6k | } | 678 | | | 679 | 11.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 11.6k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 11.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 11.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 11.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 11.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 11.6k | _memory_used_counter = | 689 | 11.6k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 11.6k | _common_profile->add_info_string("IsColocate", | 691 | 11.6k | std::to_string(_parent->is_colocated_operator())); | 692 | 11.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 11.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 11.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 11.6k | return Status::OK(); | 696 | 11.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 296k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 296k | _operator_profile = | 641 | 296k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 296k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 296k | _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 | 296k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 296k | _operator_profile->add_child(_common_profile, true); | 650 | 296k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 296k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 296k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 296k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 296k | if constexpr (!is_fake_shared) { | 656 | 296k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 296k | info.shared_state_map.end()) { | 658 | 296k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | 296k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | 296k | } | 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 | 296k | } else { | 668 | 141 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | 141 | DCHECK(false); | 670 | 141 | } | 671 | 141 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 141 | _dependency = _shared_state->create_sink_dependency( | 673 | 141 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 141 | } | 675 | 296k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 296k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 296k | } | 678 | | | 679 | 296k | 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 | 296k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 296k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 296k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 296k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 296k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 296k | _memory_used_counter = | 689 | 296k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 296k | _common_profile->add_info_string("IsColocate", | 691 | 296k | std::to_string(_parent->is_colocated_operator())); | 692 | 296k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 296k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 296k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 296k | return Status::OK(); | 696 | 296k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 459k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 459k | _operator_profile = | 641 | 459k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 459k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 459k | _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 | 459k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 459k | _operator_profile->add_child(_common_profile, true); | 650 | 459k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 459k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 459k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 459k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 459k | if constexpr (!is_fake_shared) { | 656 | 459k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 459k | 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 | 921 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 921 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 921 | ? 0 | 664 | 921 | : info.task_idx] | 665 | 921 | .get(); | 666 | 921 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 458k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 458k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 458k | _dependency = _shared_state->create_sink_dependency( | 673 | 458k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 458k | } | 675 | 459k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 459k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 459k | } | 678 | | | 679 | 459k | 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 | 459k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 459k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 459k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 459k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 459k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 459k | _memory_used_counter = | 689 | 459k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 459k | _common_profile->add_info_string("IsColocate", | 691 | 459k | std::to_string(_parent->is_colocated_operator())); | 692 | 459k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 459k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 459k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 459k | return Status::OK(); | 696 | 459k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 369 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 369 | _operator_profile = | 641 | 369 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 369 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 369 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 369 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 369 | _operator_profile->add_child(_common_profile, true); | 650 | 369 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 369 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 369 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 369 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 369 | if constexpr (!is_fake_shared) { | 656 | 369 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 369 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 369 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 369 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 369 | _dependency = _shared_state->create_sink_dependency( | 673 | 369 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 369 | } | 675 | 369 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 369 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 369 | } | 678 | | | 679 | 369 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 369 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 369 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 369 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 369 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 369 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 369 | _memory_used_counter = | 689 | 369 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 369 | _common_profile->add_info_string("IsColocate", | 691 | 369 | std::to_string(_parent->is_colocated_operator())); | 692 | 369 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 369 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 369 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 369 | return Status::OK(); | 696 | 369 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 300 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 300 | _operator_profile = | 641 | 300 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 300 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 300 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 300 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 300 | _operator_profile->add_child(_common_profile, true); | 650 | 300 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 300 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 300 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 300 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 300 | if constexpr (!is_fake_shared) { | 656 | 300 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 300 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 300 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 300 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 300 | _dependency = _shared_state->create_sink_dependency( | 673 | 300 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 300 | } | 675 | 300 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 300 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 300 | } | 678 | | | 679 | 300 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 300 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 300 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 300 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 300 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 300 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 300 | _memory_used_counter = | 689 | 300 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 300 | _common_profile->add_info_string("IsColocate", | 691 | 300 | std::to_string(_parent->is_colocated_operator())); | 692 | 300 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 300 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 300 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 300 | return Status::OK(); | 696 | 300 | } |
|
697 | | |
698 | | template <typename SharedState> |
699 | 1.89M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
700 | 1.89M | if (_closed) { |
701 | 2 | return Status::OK(); |
702 | 2 | } |
703 | 1.89M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
704 | 1.29M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
705 | 1.29M | } |
706 | 1.89M | _closed = true; |
707 | 1.89M | return Status::OK(); |
708 | 1.89M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 182k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 182k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 182k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 182k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 182k | } | 706 | 182k | _closed = true; | 707 | 182k | return Status::OK(); | 708 | 182k | } |
_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 | 188k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 188k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 188k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 188k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 188k | } | 706 | 188k | _closed = true; | 707 | 188k | return Status::OK(); | 708 | 188k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 13 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 13 | if (_closed) { | 701 | 2 | return Status::OK(); | 702 | 2 | } | 703 | 11 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 11 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 11 | } | 706 | 11 | _closed = true; | 707 | 11 | return Status::OK(); | 708 | 13 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 6.24k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 6.24k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 6.24k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 6.24k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 6.24k | } | 706 | 6.24k | _closed = true; | 707 | 6.24k | return Status::OK(); | 708 | 6.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 8.32k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 8.32k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 8.32k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 8.32k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 8.32k | } | 706 | 8.32k | _closed = true; | 707 | 8.32k | return Status::OK(); | 708 | 8.32k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 123k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 123k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 123k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 123k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 123k | } | 706 | 123k | _closed = true; | 707 | 123k | return Status::OK(); | 708 | 123k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 851 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 851 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 851 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 851 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 851 | } | 706 | 851 | _closed = true; | 707 | 851 | return Status::OK(); | 708 | 851 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 605k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 605k | 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 | 605k | _closed = true; | 707 | 605k | return Status::OK(); | 708 | 605k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 7.31k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 7.31k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 7.31k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 7.31k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 7.31k | } | 706 | 7.31k | _closed = true; | 707 | 7.31k | return Status::OK(); | 708 | 7.31k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 268 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 268 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 268 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 268 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 268 | } | 706 | 268 | _closed = true; | 707 | 268 | return Status::OK(); | 708 | 268 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 2.40k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 2.40k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 2.40k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 2.40k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 2.40k | } | 706 | 2.40k | _closed = true; | 707 | 2.40k | return Status::OK(); | 708 | 2.40k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 11.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 11.6k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 11.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 11.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 11.6k | } | 706 | 11.6k | _closed = true; | 707 | 11.6k | return Status::OK(); | 708 | 11.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 297k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 297k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 297k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 297k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 297k | } | 706 | 297k | _closed = true; | 707 | 297k | return Status::OK(); | 708 | 297k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 461k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 461k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 461k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 461k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 461k | } | 706 | 461k | _closed = true; | 707 | 461k | return Status::OK(); | 708 | 461k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 365 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 365 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 365 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 365 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 365 | } | 706 | 365 | _closed = true; | 707 | 365 | return Status::OK(); | 708 | 365 | } |
_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 | 7.72k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
712 | 7.72k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
713 | 7.72k | return pull(state, block, eos); |
714 | 7.72k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 32 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 32 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 32 | return pull(state, block, eos); | 714 | 32 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 7.69k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 7.69k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 7.69k | return pull(state, block, eos); | 714 | 7.69k | } |
|
715 | | |
716 | | template <typename LocalStateType> |
717 | 29.0M | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
718 | 29.0M | auto& local_state = get_local_state(state); |
719 | 29.0M | if (need_more_input_data(state)) { |
720 | 784k | local_state._child_block->clear_column_data( |
721 | 784k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
722 | 784k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
723 | 784k | state, local_state._child_block.get(), &local_state._child_eos)); |
724 | 784k | *eos = local_state._child_eos; |
725 | 784k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
726 | 81.7k | return Status::OK(); |
727 | 81.7k | } |
728 | 702k | { |
729 | 702k | SCOPED_TIMER(local_state.exec_time_counter()); |
730 | 702k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
731 | 702k | } |
732 | 702k | } |
733 | | |
734 | 28.9M | if (!need_more_input_data(state)) { |
735 | 28.8M | SCOPED_TIMER(local_state.exec_time_counter()); |
736 | 28.8M | bool new_eos = false; |
737 | 28.8M | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
738 | 28.8M | if (new_eos) { |
739 | 671k | *eos = true; |
740 | 28.2M | } else if (!need_more_input_data(state)) { |
741 | 28.1M | *eos = false; |
742 | 28.1M | } |
743 | 28.8M | } |
744 | 28.9M | return Status::OK(); |
745 | 28.9M | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 182k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 182k | auto& local_state = get_local_state(state); | 719 | 182k | if (need_more_input_data(state)) { | 720 | 120k | local_state._child_block->clear_column_data( | 721 | 120k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 120k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 120k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 120k | *eos = local_state._child_eos; | 725 | 120k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 28.2k | return Status::OK(); | 727 | 28.2k | } | 728 | 91.8k | { | 729 | 91.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 91.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 91.8k | } | 732 | 91.8k | } | 733 | | | 734 | 153k | if (!need_more_input_data(state)) { | 735 | 153k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 153k | bool new_eos = false; | 737 | 153k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 153k | if (new_eos) { | 739 | 109k | *eos = true; | 740 | 109k | } else if (!need_more_input_data(state)) { | 741 | 11.4k | *eos = false; | 742 | 11.4k | } | 743 | 153k | } | 744 | 153k | return Status::OK(); | 745 | 153k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 3.22k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 3.22k | auto& local_state = get_local_state(state); | 719 | 3.22k | if (need_more_input_data(state)) { | 720 | 1.83k | local_state._child_block->clear_column_data( | 721 | 1.83k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 1.83k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 1.83k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 1.83k | *eos = local_state._child_eos; | 725 | 1.83k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 157 | return Status::OK(); | 727 | 157 | } | 728 | 1.68k | { | 729 | 1.68k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 1.68k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 1.68k | } | 732 | 1.68k | } | 733 | | | 734 | 3.07k | if (!need_more_input_data(state)) { | 735 | 3.07k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 3.07k | bool new_eos = false; | 737 | 3.07k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 3.07k | if (new_eos) { | 739 | 1.40k | *eos = true; | 740 | 1.66k | } else if (!need_more_input_data(state)) { | 741 | 1.38k | *eos = false; | 742 | 1.38k | } | 743 | 3.07k | } | 744 | 3.06k | return Status::OK(); | 745 | 3.06k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 1.56k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 1.56k | auto& local_state = get_local_state(state); | 719 | 1.56k | if (need_more_input_data(state)) { | 720 | 1.56k | local_state._child_block->clear_column_data( | 721 | 1.56k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 1.56k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 1.56k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 1.56k | *eos = local_state._child_eos; | 725 | 1.56k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 642 | return Status::OK(); | 727 | 642 | } | 728 | 921 | { | 729 | 921 | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 921 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 921 | } | 732 | 921 | } | 733 | | | 734 | 921 | if (!need_more_input_data(state)) { | 735 | 921 | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 921 | bool new_eos = false; | 737 | 921 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 921 | if (new_eos) { | 739 | 664 | *eos = true; | 740 | 664 | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 921 | } | 744 | 921 | return Status::OK(); | 745 | 921 | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 16.4k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 16.4k | auto& local_state = get_local_state(state); | 719 | 16.4k | if (need_more_input_data(state)) { | 720 | 16.3k | local_state._child_block->clear_column_data( | 721 | 16.3k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 16.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 16.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 16.3k | *eos = local_state._child_eos; | 725 | 16.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 3.66k | return Status::OK(); | 727 | 3.66k | } | 728 | 12.7k | { | 729 | 12.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 12.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 12.7k | } | 732 | 12.7k | } | 733 | | | 734 | 12.7k | if (!need_more_input_data(state)) { | 735 | 7.20k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 7.20k | bool new_eos = false; | 737 | 7.20k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 7.20k | if (new_eos) { | 739 | 6.85k | *eos = true; | 740 | 6.85k | } else if (!need_more_input_data(state)) { | 741 | 88 | *eos = false; | 742 | 88 | } | 743 | 7.20k | } | 744 | 12.7k | return Status::OK(); | 745 | 12.7k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 623k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 623k | auto& local_state = get_local_state(state); | 719 | 624k | if (need_more_input_data(state)) { | 720 | 624k | local_state._child_block->clear_column_data( | 721 | 624k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 624k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 624k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 624k | *eos = local_state._child_eos; | 725 | 624k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 46.3k | return Status::OK(); | 727 | 46.3k | } | 728 | 578k | { | 729 | 578k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 578k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 578k | } | 732 | 578k | } | 733 | | | 734 | 576k | if (!need_more_input_data(state)) { | 735 | 544k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 544k | bool new_eos = false; | 737 | 544k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 544k | if (new_eos) { | 739 | 542k | *eos = true; | 740 | 542k | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 544k | } | 744 | 576k | return Status::OK(); | 745 | 576k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 28.1M | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 28.1M | auto& local_state = get_local_state(state); | 719 | 28.1M | if (need_more_input_data(state)) { | 720 | 14.0k | local_state._child_block->clear_column_data( | 721 | 14.0k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 14.0k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 14.0k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 14.0k | *eos = local_state._child_eos; | 725 | 14.0k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 2.23k | return Status::OK(); | 727 | 2.23k | } | 728 | 11.7k | { | 729 | 11.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 11.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 11.7k | } | 732 | 11.7k | } | 733 | | | 734 | 28.1M | if (!need_more_input_data(state)) { | 735 | 28.1M | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 28.1M | bool new_eos = false; | 737 | 28.1M | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 28.1M | if (new_eos) { | 739 | 6.24k | *eos = true; | 740 | 28.1M | } else if (!need_more_input_data(state)) { | 741 | 28.1M | *eos = false; | 742 | 28.1M | } | 743 | 28.1M | } | 744 | 28.1M | return Status::OK(); | 745 | 28.1M | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 6.19k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 6.19k | auto& local_state = get_local_state(state); | 719 | 6.19k | if (need_more_input_data(state)) { | 720 | 5.81k | local_state._child_block->clear_column_data( | 721 | 5.81k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 5.81k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 5.81k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 5.81k | *eos = local_state._child_eos; | 725 | 5.81k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 474 | return Status::OK(); | 727 | 474 | } | 728 | 5.34k | { | 729 | 5.34k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 5.34k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 5.34k | } | 732 | 5.34k | } | 733 | | | 734 | 5.71k | if (!need_more_input_data(state)) { | 735 | 5.71k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 5.71k | bool new_eos = false; | 737 | 5.71k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 5.71k | if (new_eos) { | 739 | 3.89k | *eos = true; | 740 | 3.89k | } else if (!need_more_input_data(state)) { | 741 | 374 | *eos = false; | 742 | 374 | } | 743 | 5.71k | } | 744 | 5.71k | return Status::OK(); | 745 | 5.71k | } |
|
746 | | |
747 | | template <typename Writer, typename Parent> |
748 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
749 | 67.3k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
750 | 67.3k | RETURN_IF_ERROR(Base::init(state, info)); |
751 | 67.3k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
752 | 67.3k | "AsyncWriterDependency", true); |
753 | 67.3k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
754 | 67.3k | _finish_dependency)); |
755 | | |
756 | 67.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
757 | 67.3k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
758 | 67.3k | return Status::OK(); |
759 | 67.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 337 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 337 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 337 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 337 | "AsyncWriterDependency", true); | 753 | 337 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 337 | _finish_dependency)); | 755 | | | 756 | 337 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 337 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 337 | return Status::OK(); | 759 | 337 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 66.9k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 66.9k | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 66.9k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 66.9k | "AsyncWriterDependency", true); | 753 | 66.9k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 66.9k | _finish_dependency)); | 755 | | | 756 | 66.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 66.9k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 66.9k | return Status::OK(); | 759 | 66.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 136 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 136 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 136 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 136 | "AsyncWriterDependency", true); | 753 | 136 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 136 | _finish_dependency)); | 755 | | | 756 | 136 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 136 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 136 | return Status::OK(); | 759 | 136 | } |
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 | 67.9k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
764 | 67.9k | RETURN_IF_ERROR(Base::open(state)); |
765 | 67.9k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
766 | 487k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
767 | 419k | RETURN_IF_ERROR( |
768 | 419k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
769 | 419k | } |
770 | 67.9k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
771 | 67.9k | return Status::OK(); |
772 | 67.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 336 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 336 | RETURN_IF_ERROR(Base::open(state)); | 765 | 336 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 1.76k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 1.43k | RETURN_IF_ERROR( | 768 | 1.43k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 1.43k | } | 770 | 336 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 336 | return Status::OK(); | 772 | 336 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 67.4k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 67.4k | RETURN_IF_ERROR(Base::open(state)); | 765 | 67.4k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 483k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 416k | RETURN_IF_ERROR( | 768 | 416k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 416k | } | 770 | 67.4k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 67.4k | return Status::OK(); | 772 | 67.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 136 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 136 | RETURN_IF_ERROR(Base::open(state)); | 765 | 136 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 2.44k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 2.31k | RETURN_IF_ERROR( | 768 | 2.31k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 2.31k | } | 770 | 136 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 136 | return Status::OK(); | 772 | 136 | } |
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 | 79.9k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
777 | 79.9k | return _writer->sink(block, eos); |
778 | 79.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 1.36k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 1.36k | return _writer->sink(block, eos); | 778 | 1.36k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 78.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 78.4k | return _writer->sink(block, eos); | 778 | 78.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 136 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 136 | return _writer->sink(block, eos); | 778 | 136 | } |
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 | 68.0k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
783 | 68.0k | if (_closed) { |
784 | 0 | return Status::OK(); |
785 | 0 | } |
786 | 68.0k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
787 | 68.0k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
788 | | // if the init failed, the _writer may be nullptr. so here need check |
789 | 68.0k | if (_writer) { |
790 | 68.0k | Status st = _writer->get_writer_status(); |
791 | 68.0k | if (exec_status.ok()) { |
792 | 67.8k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
793 | 67.8k | : Status::Cancelled("force close")); |
794 | 67.8k | } else { |
795 | 143 | _writer->force_close(exec_status); |
796 | 143 | } |
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 | 68.0k | RETURN_IF_ERROR(st); |
801 | 68.0k | } |
802 | 67.9k | return Base::close(state, exec_status); |
803 | 68.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 325 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 325 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 325 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 325 | 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 | 325 | if (_writer) { | 790 | 325 | Status st = _writer->get_writer_status(); | 791 | 325 | if (exec_status.ok()) { | 792 | 325 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 325 | : Status::Cancelled("force close")); | 794 | 325 | } 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 | 325 | RETURN_IF_ERROR(st); | 801 | 325 | } | 802 | 325 | return Base::close(state, exec_status); | 803 | 325 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 67.5k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 67.5k | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 67.5k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 67.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 | 67.5k | if (_writer) { | 790 | 67.5k | Status st = _writer->get_writer_status(); | 791 | 67.5k | if (exec_status.ok()) { | 792 | 67.4k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 67.4k | : Status::Cancelled("force close")); | 794 | 67.4k | } else { | 795 | 143 | _writer->force_close(exec_status); | 796 | 143 | } | 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 | 67.5k | RETURN_IF_ERROR(st); | 801 | 67.5k | } | 802 | 67.5k | return Base::close(state, exec_status); | 803 | 67.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 136 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 136 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 136 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 136 | 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 | 136 | if (_writer) { | 790 | 136 | Status st = _writer->get_writer_status(); | 791 | 136 | if (exec_status.ok()) { | 792 | 136 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 136 | : Status::Cancelled("force close")); | 794 | 136 | } 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 | 136 | RETURN_IF_ERROR(st); | 801 | 136 | } | 802 | 136 | return Base::close(state, exec_status); | 803 | 136 | } |
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 |