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.47M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
116 | 2.47M | if (_parent->nereids_id() == -1) { |
117 | 1.32M | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
118 | 1.32M | } else { |
119 | 1.15M | return fmt::format("(nereids_id={})" + operator_name_suffix, |
120 | 1.15M | std::to_string(_parent->nereids_id()), |
121 | 1.15M | std::to_string(_parent->node_id())); |
122 | 1.15M | } |
123 | 2.47M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 138k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 138k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 138k | } else { | 119 | 138k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 138k | std::to_string(_parent->nereids_id()), | 121 | 138k | std::to_string(_parent->node_id())); | 122 | 138k | } | 123 | 138k | } |
_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 | 190k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 190k | if (_parent->nereids_id() == -1) { | 117 | 12 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 190k | } else { | 119 | 190k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 190k | std::to_string(_parent->nereids_id()), | 121 | 190k | std::to_string(_parent->node_id())); | 122 | 190k | } | 123 | 190k | } |
_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.83k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 6.83k | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 6.83k | } else { | 119 | 6.83k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 6.83k | std::to_string(_parent->nereids_id()), | 121 | 6.83k | std::to_string(_parent->node_id())); | 122 | 6.83k | } | 123 | 6.83k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 12.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 12.3k | if (_parent->nereids_id() == -1) { | 117 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 12.3k | } else { | 119 | 12.3k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 12.3k | std::to_string(_parent->nereids_id()), | 121 | 12.3k | std::to_string(_parent->node_id())); | 122 | 12.3k | } | 123 | 12.3k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 120k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 120k | if (_parent->nereids_id() == -1) { | 117 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 120k | } else { | 119 | 120k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 120k | std::to_string(_parent->nereids_id()), | 121 | 120k | std::to_string(_parent->node_id())); | 122 | 120k | } | 123 | 120k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 300 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 300 | if (_parent->nereids_id() == -1) { | 117 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 300 | } else { | 119 | 300 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 300 | std::to_string(_parent->nereids_id()), | 121 | 300 | std::to_string(_parent->node_id())); | 122 | 300 | } | 123 | 300 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 1.12M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 1.12M | if (_parent->nereids_id() == -1) { | 117 | 488k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 636k | } else { | 119 | 636k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 636k | std::to_string(_parent->nereids_id()), | 121 | 636k | std::to_string(_parent->node_id())); | 122 | 636k | } | 123 | 1.12M | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 40.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 40.1k | if (_parent->nereids_id() == -1) { | 117 | 2 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 40.1k | } else { | 119 | 40.1k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 40.1k | std::to_string(_parent->nereids_id()), | 121 | 40.1k | std::to_string(_parent->node_id())); | 122 | 40.1k | } | 123 | 40.1k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 366 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 366 | if (_parent->nereids_id() == -1) { | 117 | 366 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 366 | } 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 | 366 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 9.23k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 9.23k | if (_parent->nereids_id() == -1) { | 117 | 9.23k | 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 | 9.23k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 502 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 502 | if (_parent->nereids_id() == -1) { | 117 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 400 | } else { | 119 | 400 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 400 | std::to_string(_parent->nereids_id()), | 121 | 400 | std::to_string(_parent->node_id())); | 122 | 400 | } | 123 | 502 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 4.85k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 4.85k | if (_parent->nereids_id() == -1) { | 117 | 10 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 118 | 4.84k | } else { | 119 | 4.84k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 120 | 4.84k | std::to_string(_parent->nereids_id()), | 121 | 4.84k | std::to_string(_parent->node_id())); | 122 | 4.84k | } | 123 | 4.85k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 115 | 825k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 116 | 825k | if (_parent->nereids_id() == -1) { | 117 | 825k | 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 | 825k | } |
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.43M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
127 | 1.43M | if (_parent->nereids_id() == -1) { |
128 | 910k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); |
129 | 910k | } else { |
130 | 528k | return fmt::format("(nereids_id={})" + operator_name_suffix, |
131 | 528k | std::to_string(_parent->nereids_id()), |
132 | 528k | std::to_string(_parent->node_id())); |
133 | 528k | } |
134 | 1.43M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 187k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 187k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 187k | } else { | 130 | 187k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 187k | std::to_string(_parent->nereids_id()), | 132 | 187k | std::to_string(_parent->node_id())); | 133 | 187k | } | 134 | 187k | } |
_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 | 192k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 192k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 192k | } else { | 130 | 192k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 192k | std::to_string(_parent->nereids_id()), | 132 | 192k | std::to_string(_parent->node_id())); | 133 | 192k | } | 134 | 192k | } |
_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.86k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 6.86k | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 6.86k | } else { | 130 | 6.86k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 6.86k | std::to_string(_parent->nereids_id()), | 132 | 6.86k | std::to_string(_parent->node_id())); | 133 | 6.86k | } | 134 | 6.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 12.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 12.3k | if (_parent->nereids_id() == -1) { | 128 | 9 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 12.3k | } else { | 130 | 12.3k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 12.3k | std::to_string(_parent->nereids_id()), | 132 | 12.3k | std::to_string(_parent->node_id())); | 133 | 12.3k | } | 134 | 12.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 120k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 120k | if (_parent->nereids_id() == -1) { | 128 | 27 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 120k | } else { | 130 | 120k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 120k | std::to_string(_parent->nereids_id()), | 132 | 120k | std::to_string(_parent->node_id())); | 133 | 120k | } | 134 | 120k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 306 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 306 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 306 | } else { | 130 | 306 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 306 | std::to_string(_parent->nereids_id()), | 132 | 306 | std::to_string(_parent->node_id())); | 133 | 306 | } | 134 | 306 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 12 | if (_parent->nereids_id() == -1) { | 128 | 12 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 12 | } else { | 130 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 0 | std::to_string(_parent->nereids_id()), | 132 | 0 | std::to_string(_parent->node_id())); | 133 | 0 | } | 134 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 8.23k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 8.23k | if (_parent->nereids_id() == -1) { | 128 | 3 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 8.23k | } else { | 130 | 8.23k | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 8.23k | std::to_string(_parent->nereids_id()), | 132 | 8.23k | std::to_string(_parent->node_id())); | 133 | 8.23k | } | 134 | 8.23k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 501 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 501 | if (_parent->nereids_id() == -1) { | 128 | 102 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 399 | } else { | 130 | 399 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 399 | std::to_string(_parent->nereids_id()), | 132 | 399 | std::to_string(_parent->node_id())); | 133 | 399 | } | 134 | 501 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 12.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 12.0k | if (_parent->nereids_id() == -1) { | 128 | 12.0k | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 18.4E | } else { | 130 | 18.4E | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 18.4E | std::to_string(_parent->nereids_id()), | 132 | 18.4E | std::to_string(_parent->node_id())); | 133 | 18.4E | } | 134 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 409k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 409k | if (_parent->nereids_id() == -1) { | 128 | 409k | 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 | 409k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 488k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 488k | if (_parent->nereids_id() == -1) { | 128 | 488k | 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 | 488k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 368 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 368 | if (_parent->nereids_id() == -1) { | 128 | 368 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 368 | } else { | 130 | 0 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 0 | std::to_string(_parent->nereids_id()), | 132 | 0 | std::to_string(_parent->node_id())); | 133 | 0 | } | 134 | 368 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 126 | 300 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 127 | 300 | if (_parent->nereids_id() == -1) { | 128 | 0 | return fmt::format(operator_name_suffix, std::to_string(_parent->node_id())); | 129 | 300 | } else { | 130 | 300 | return fmt::format("(nereids_id={})" + operator_name_suffix, | 131 | 300 | std::to_string(_parent->nereids_id()), | 132 | 300 | std::to_string(_parent->node_id())); | 133 | 300 | } | 134 | 300 | } |
|
135 | | |
136 | | template <typename SharedStateArg> |
137 | 30.2k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
138 | 30.2k | if (_terminated) { |
139 | 0 | return Status::OK(); |
140 | 0 | } |
141 | 30.2k | _terminated = true; |
142 | 30.2k | return Status::OK(); |
143 | 30.2k | } _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 | 387 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 387 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 387 | _terminated = true; | 142 | 387 | return Status::OK(); | 143 | 387 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 5 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 5 | _terminated = true; | 142 | 5 | return Status::OK(); | 143 | 5 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 1 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 1 | _terminated = true; | 142 | 1 | return Status::OK(); | 143 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 3.10k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 3.10k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 3.10k | _terminated = true; | 142 | 3.10k | return Status::OK(); | 143 | 3.10k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 2.30k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 2.30k | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 2.30k | _terminated = true; | 142 | 2.30k | return Status::OK(); | 143 | 2.30k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 53 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 53 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 53 | _terminated = true; | 142 | 53 | return Status::OK(); | 143 | 53 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 25 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 25 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 25 | _terminated = true; | 142 | 25 | return Status::OK(); | 143 | 25 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 239 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 239 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 239 | _terminated = true; | 142 | 239 | return Status::OK(); | 143 | 239 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 137 | 134 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 138 | 134 | if (_terminated) { | 139 | 0 | return Status::OK(); | 140 | 0 | } | 141 | 134 | _terminated = true; | 142 | 134 | return Status::OK(); | 143 | 134 | } |
|
144 | | |
145 | 596k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
146 | 596k | return _child && _child->is_serial_operator() && !is_source() |
147 | 596k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
148 | 596k | : DataDistribution(ExchangeType::NOOP); |
149 | 596k | } |
150 | | |
151 | 81.0k | const RowDescriptor& OperatorBase::row_desc() const { |
152 | 81.0k | return _child->row_desc(); |
153 | 81.0k | } |
154 | | |
155 | | template <typename SharedStateArg> |
156 | 48.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
157 | 48.4k | fmt::memory_buffer debug_string_buffer; |
158 | 48.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
159 | 48.4k | return fmt::to_string(debug_string_buffer); |
160 | 48.4k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 6 | fmt::memory_buffer debug_string_buffer; | 158 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 6 | return fmt::to_string(debug_string_buffer); | 160 | 6 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 3 | fmt::memory_buffer debug_string_buffer; | 158 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 3 | return fmt::to_string(debug_string_buffer); | 160 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 6 | fmt::memory_buffer debug_string_buffer; | 158 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 6 | return fmt::to_string(debug_string_buffer); | 160 | 6 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 12 | fmt::memory_buffer debug_string_buffer; | 158 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 12 | return fmt::to_string(debug_string_buffer); | 160 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 48.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 48.4k | fmt::memory_buffer debug_string_buffer; | 158 | 48.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 48.4k | return fmt::to_string(debug_string_buffer); | 160 | 48.4k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 1 | fmt::memory_buffer debug_string_buffer; | 158 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 1 | return fmt::to_string(debug_string_buffer); | 160 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 156 | 18 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 157 | 18 | fmt::memory_buffer debug_string_buffer; | 158 | 18 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 159 | 18 | return fmt::to_string(debug_string_buffer); | 160 | 18 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
161 | | |
162 | | template <typename SharedStateArg> |
163 | 48.4k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
164 | 48.4k | fmt::memory_buffer debug_string_buffer; |
165 | 48.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
166 | 48.4k | return fmt::to_string(debug_string_buffer); |
167 | 48.4k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 6 | fmt::memory_buffer debug_string_buffer; | 165 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 6 | return fmt::to_string(debug_string_buffer); | 167 | 6 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 12 | fmt::memory_buffer debug_string_buffer; | 165 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 12 | return fmt::to_string(debug_string_buffer); | 167 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 12 | fmt::memory_buffer debug_string_buffer; | 165 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 12 | return fmt::to_string(debug_string_buffer); | 167 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 13 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 13 | fmt::memory_buffer debug_string_buffer; | 165 | 13 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 13 | return fmt::to_string(debug_string_buffer); | 167 | 13 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 163 | 48.4k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 164 | 48.4k | fmt::memory_buffer debug_string_buffer; | 165 | 48.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 166 | 48.4k | return fmt::to_string(debug_string_buffer); | 167 | 48.4k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
168 | | |
169 | 48.6k | std::string OperatorXBase::debug_string(int indentation_level) const { |
170 | 48.6k | fmt::memory_buffer debug_string_buffer; |
171 | 48.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
172 | 48.6k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
173 | 48.6k | _is_serial_operator); |
174 | 48.6k | return fmt::to_string(debug_string_buffer); |
175 | 48.6k | } |
176 | | |
177 | 48.4k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
178 | 48.4k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
179 | 48.4k | } |
180 | | |
181 | 570k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
182 | 570k | std::string node_name = print_plan_node_type(tnode.node_type); |
183 | 570k | _nereids_id = tnode.nereids_id; |
184 | 570k | 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 | 570k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
198 | 570k | _op_name = substr + "_OPERATOR"; |
199 | | |
200 | 570k | if (tnode.__isset.vconjunct) { |
201 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
202 | 570k | } else if (tnode.__isset.conjuncts) { |
203 | 258k | for (const auto& conjunct : tnode.conjuncts) { |
204 | 258k | VExprContextSPtr context; |
205 | 258k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
206 | 258k | _conjuncts.emplace_back(context); |
207 | 258k | } |
208 | 87.9k | } |
209 | | |
210 | | // create the projections expr |
211 | 570k | 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 | 570k | 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 | 570k | return Status::OK(); |
225 | 570k | } |
226 | | |
227 | 597k | Status OperatorXBase::prepare(RuntimeState* state) { |
228 | 597k | for (auto& conjunct : _conjuncts) { |
229 | 258k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
230 | 258k | } |
231 | 597k | if (state->enable_adjust_conjunct_order_by_cost()) { |
232 | 547k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
233 | 340k | return a->execute_cost() < b->execute_cost(); |
234 | 340k | }); |
235 | 547k | }; |
236 | | |
237 | 601k | 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 | 597k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
242 | | |
243 | 597k | if (has_output_row_desc()) { |
244 | 245k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
245 | 245k | } |
246 | | |
247 | 597k | for (auto& conjunct : _conjuncts) { |
248 | 258k | RETURN_IF_ERROR(conjunct->open(state)); |
249 | 258k | } |
250 | 597k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
251 | 597k | for (auto& projections : _intermediate_projections) { |
252 | 3.79k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
253 | 3.79k | } |
254 | 597k | if (_child && !is_source()) { |
255 | 138k | RETURN_IF_ERROR(_child->prepare(state)); |
256 | 138k | } |
257 | | |
258 | 597k | if (VExpr::contains_blockable_function(_conjuncts) || |
259 | 597k | VExpr::contains_blockable_function(_projections)) { |
260 | 0 | _blockable = true; |
261 | 0 | } |
262 | | |
263 | 597k | return Status::OK(); |
264 | 597k | } |
265 | | |
266 | 8.63k | Status OperatorXBase::terminate(RuntimeState* state) { |
267 | 8.63k | if (_child && !is_source()) { |
268 | 2.35k | RETURN_IF_ERROR(_child->terminate(state)); |
269 | 2.35k | } |
270 | 8.63k | auto result = state->get_local_state_result(operator_id()); |
271 | 8.63k | if (!result) { |
272 | 0 | return result.error(); |
273 | 0 | } |
274 | 8.63k | return result.value()->terminate(state); |
275 | 8.63k | } |
276 | | |
277 | 7.14M | Status OperatorXBase::close(RuntimeState* state) { |
278 | 7.14M | if (_child && !is_source()) { |
279 | 1.60M | RETURN_IF_ERROR(_child->close(state)); |
280 | 1.60M | } |
281 | 7.14M | auto result = state->get_local_state_result(operator_id()); |
282 | 7.14M | if (!result) { |
283 | 0 | return result.error(); |
284 | 0 | } |
285 | 7.14M | return result.value()->close(state); |
286 | 7.14M | } |
287 | | |
288 | 350k | void PipelineXLocalStateBase::clear_origin_block() { |
289 | 350k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
290 | 350k | } |
291 | | |
292 | 738k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
293 | 738k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
294 | | |
295 | 738k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
296 | 738k | return Status::OK(); |
297 | 738k | } |
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 | 350k | Block* output_block) const { |
306 | 350k | auto* local_state = state->get_local_state(operator_id()); |
307 | 350k | SCOPED_TIMER(local_state->exec_time_counter()); |
308 | 350k | SCOPED_TIMER(local_state->_projection_timer); |
309 | 350k | const size_t rows = origin_block->rows(); |
310 | 350k | if (rows == 0) { |
311 | 228k | return Status::OK(); |
312 | 228k | } |
313 | 122k | Block input_block = *origin_block; |
314 | | |
315 | 122k | size_t bytes_usage = 0; |
316 | 122k | ColumnsWithTypeAndName new_columns; |
317 | 122k | for (const auto& projections : local_state->_intermediate_projections) { |
318 | 967 | if (projections.empty()) { |
319 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
320 | 0 | node_id()); |
321 | 0 | } |
322 | 967 | new_columns.resize(projections.size()); |
323 | 6.59k | for (int i = 0; i < projections.size(); i++) { |
324 | 5.62k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
325 | 5.62k | 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 | 5.62k | } |
333 | 967 | Block tmp_block {new_columns}; |
334 | 967 | bytes_usage += tmp_block.allocated_bytes(); |
335 | 967 | input_block.swap(tmp_block); |
336 | 967 | } |
337 | | |
338 | 122k | 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 | 598k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
345 | 598k | 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 | 598k | } else { |
355 | 598k | if (_keep_origin || !from->is_exclusive()) { |
356 | 589k | to->insert_range_from(*from, 0, rows); |
357 | 589k | bytes_usage += from->allocated_bytes(); |
358 | 589k | } else { |
359 | 9.29k | to = from->assume_mutable(); |
360 | 9.29k | } |
361 | 598k | } |
362 | 598k | }; |
363 | | |
364 | 122k | MutableBlock mutable_block = |
365 | 122k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
366 | 122k | if (rows != 0) { |
367 | 122k | auto& mutable_columns = mutable_block.mutable_columns(); |
368 | 122k | const size_t origin_columns_count = input_block.columns(); |
369 | 122k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 721k | for (int i = 0; i < mutable_columns.size(); ++i) { |
371 | 598k | auto result_column_id = -1; |
372 | 598k | ColumnPtr column_ptr; |
373 | 598k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
374 | 598k | 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 | 598k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
381 | 598k | if (result_column_id >= origin_columns_count) { |
382 | 598k | bytes_usage += column_ptr->allocated_bytes(); |
383 | 598k | } |
384 | 598k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
385 | 598k | } |
386 | 122k | DCHECK(mutable_block.rows() == rows); |
387 | 122k | output_block->set_columns(std::move(mutable_columns)); |
388 | 122k | } |
389 | | |
390 | 122k | local_state->_estimate_memory_usage += bytes_usage; |
391 | | |
392 | 122k | return Status::OK(); |
393 | 122k | } |
394 | | |
395 | 4.13M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
396 | 4.13M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
397 | 4.13M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
398 | 4.13M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
399 | 4.13M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
400 | 4.13M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
401 | 4.13M | if (_debug_point_count++ % 2 == 0) { |
402 | 4.13M | return Status::OK(); |
403 | 4.13M | } |
404 | 4.13M | } |
405 | 4.13M | }); |
406 | | |
407 | 4.13M | Status status; |
408 | 4.13M | auto* local_state = state->get_local_state(operator_id()); |
409 | 4.13M | Defer defer([&]() { |
410 | 4.13M | if (status.ok()) { |
411 | 4.13M | if (auto rows = block->rows()) { |
412 | 707k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
413 | 707k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
414 | 707k | } |
415 | 4.13M | } |
416 | 4.13M | }); |
417 | 4.13M | if (_output_row_descriptor) { |
418 | 350k | local_state->clear_origin_block(); |
419 | 350k | status = get_block(state, &local_state->_origin_block, eos); |
420 | 350k | if (UNLIKELY(!status.ok())) { |
421 | 13 | return status; |
422 | 13 | } |
423 | 350k | status = do_projections(state, &local_state->_origin_block, block); |
424 | 350k | return status; |
425 | 350k | } |
426 | 3.78M | status = get_block(state, block, eos); |
427 | 3.78M | RETURN_IF_ERROR(block->check_type_and_column()); |
428 | 3.78M | return status; |
429 | 3.78M | } |
430 | | |
431 | 2.57M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
432 | 2.57M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
433 | 1.69k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
434 | 1.69k | *eos = true; |
435 | 1.69k | } |
436 | | |
437 | 2.57M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
438 | 2.57M | auto op_name = to_lower(_parent->_op_name); |
439 | 2.57M | auto arg_op_name = dp->param<std::string>("op_name"); |
440 | 2.57M | arg_op_name = to_lower(arg_op_name); |
441 | | |
442 | 2.57M | if (op_name == arg_op_name) { |
443 | 2.57M | *eos = true; |
444 | 2.57M | } |
445 | 2.57M | }); |
446 | | |
447 | 2.57M | if (auto rows = block->rows()) { |
448 | 645k | _num_rows_returned += rows; |
449 | 645k | } |
450 | 2.57M | } |
451 | | |
452 | 30.2k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
453 | 30.2k | auto result = state->get_sink_local_state_result(); |
454 | 30.2k | if (!result) { |
455 | 0 | return result.error(); |
456 | 0 | } |
457 | 30.2k | return result.value()->terminate(state); |
458 | 30.2k | } |
459 | | |
460 | 48.5k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
461 | 48.5k | fmt::memory_buffer debug_string_buffer; |
462 | | |
463 | 48.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
464 | 48.5k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
465 | 48.5k | return fmt::to_string(debug_string_buffer); |
466 | 48.5k | } |
467 | | |
468 | 48.4k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
469 | 48.4k | return state->get_sink_local_state()->debug_string(indentation_level); |
470 | 48.4k | } |
471 | | |
472 | 336k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
473 | 336k | std::string op_name = "UNKNOWN_SINK"; |
474 | 336k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
475 | | |
476 | 336k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
477 | 336k | op_name = it->second; |
478 | 336k | } |
479 | 336k | _name = op_name + "_OPERATOR"; |
480 | 336k | return Status::OK(); |
481 | 336k | } |
482 | | |
483 | 169k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
484 | 169k | std::string op_name = print_plan_node_type(tnode.node_type); |
485 | 169k | _nereids_id = tnode.nereids_id; |
486 | 169k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
487 | 169k | _name = substr + "_SINK_OPERATOR"; |
488 | 169k | return Status::OK(); |
489 | 169k | } |
490 | | |
491 | | template <typename LocalStateType> |
492 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
493 | 2.09M | LocalSinkStateInfo& info) { |
494 | 2.09M | auto local_state = LocalStateType::create_unique(this, state); |
495 | 2.09M | RETURN_IF_ERROR(local_state->init(state, info)); |
496 | 2.09M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
497 | 2.09M | return Status::OK(); |
498 | 2.09M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 187k | LocalSinkStateInfo& info) { | 494 | 187k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 187k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 187k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 187k | return Status::OK(); | 498 | 187k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 421k | LocalSinkStateInfo& info) { | 494 | 421k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 421k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 421k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 421k | return Status::OK(); | 498 | 421k | } |
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 | 361 | LocalSinkStateInfo& info) { | 494 | 361 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 361 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 361 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 361 | return Status::OK(); | 498 | 361 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 66.6k | LocalSinkStateInfo& info) { | 494 | 66.6k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 66.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 66.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 66.6k | return Status::OK(); | 498 | 66.6k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_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 | } |
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 | 12.3k | LocalSinkStateInfo& info) { | 494 | 12.3k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 12.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 12.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 12.3k | return Status::OK(); | 498 | 12.3k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 9 | LocalSinkStateInfo& info) { | 494 | 9 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 9 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 9 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 9 | return Status::OK(); | 498 | 9 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 192k | LocalSinkStateInfo& info) { | 494 | 192k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 192k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 192k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 192k | return Status::OK(); | 498 | 192k | } |
_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 | 409k | LocalSinkStateInfo& info) { | 494 | 409k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 409k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 409k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 409k | return Status::OK(); | 498 | 409k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 120k | LocalSinkStateInfo& info) { | 494 | 120k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 120k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 120k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 120k | return Status::OK(); | 498 | 120k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 306 | LocalSinkStateInfo& info) { | 494 | 306 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 306 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 306 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 306 | return Status::OK(); | 498 | 306 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 653k | LocalSinkStateInfo& info) { | 494 | 653k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 653k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 653k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 653k | return Status::OK(); | 498 | 653k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 6.87k | LocalSinkStateInfo& info) { | 494 | 6.87k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 6.87k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 6.87k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 6.87k | return Status::OK(); | 498 | 6.87k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 8.23k | LocalSinkStateInfo& info) { | 494 | 8.23k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 8.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 8.23k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 8.23k | return Status::OK(); | 498 | 8.23k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 3.64k | LocalSinkStateInfo& info) { | 494 | 3.64k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 3.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 3.64k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 3.64k | return Status::OK(); | 498 | 3.64k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 400 | LocalSinkStateInfo& info) { | 494 | 400 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 400 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 400 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 400 | return Status::OK(); | 498 | 400 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 4.56k | LocalSinkStateInfo& info) { | 494 | 4.56k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 4.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 4.56k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 4.56k | return Status::OK(); | 498 | 4.56k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.47k | LocalSinkStateInfo& info) { | 494 | 2.47k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.47k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.47k | return Status::OK(); | 498 | 2.47k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.43k | LocalSinkStateInfo& info) { | 494 | 2.43k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.43k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.43k | return Status::OK(); | 498 | 2.43k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 2.45k | LocalSinkStateInfo& info) { | 494 | 2.45k | auto local_state = LocalStateType::create_unique(this, state); | 495 | 2.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 2.45k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 2.45k | return Status::OK(); | 498 | 2.45k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 1 | LocalSinkStateInfo& info) { | 494 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 1 | return Status::OK(); | 498 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 163 | LocalSinkStateInfo& info) { | 494 | 163 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 163 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 163 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 163 | return Status::OK(); | 498 | 163 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 493 | 360 | LocalSinkStateInfo& info) { | 494 | 360 | auto local_state = LocalStateType::create_unique(this, state); | 495 | 360 | RETURN_IF_ERROR(local_state->init(state, info)); | 496 | 360 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 497 | 360 | return Status::OK(); | 498 | 360 | } |
_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.65M | 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.65M | } else { |
509 | 1.65M | auto ss = LocalStateType::SharedStateType::create_shared(); |
510 | 1.65M | ss->id = operator_id(); |
511 | 1.65M | for (auto& dest : dests_id()) { |
512 | 1.64M | ss->related_op_ids.insert(dest); |
513 | 1.64M | } |
514 | 1.65M | return ss; |
515 | 1.65M | } |
516 | 1.65M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 173k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 173k | } else { | 509 | 173k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 173k | ss->id = operator_id(); | 511 | 173k | for (auto& dest : dests_id()) { | 512 | 173k | ss->related_op_ids.insert(dest); | 513 | 173k | } | 514 | 173k | return ss; | 515 | 173k | } | 516 | 173k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 421k | 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 | 421k | } else { | 509 | 421k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 421k | ss->id = operator_id(); | 511 | 421k | for (auto& dest : dests_id()) { | 512 | 420k | ss->related_op_ids.insert(dest); | 513 | 420k | } | 514 | 421k | return ss; | 515 | 421k | } | 516 | 421k | } |
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 | 360 | 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 | 360 | } else { | 509 | 360 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 360 | ss->id = operator_id(); | 511 | 360 | for (auto& dest : dests_id()) { | 512 | 359 | ss->related_op_ids.insert(dest); | 513 | 359 | } | 514 | 360 | return ss; | 515 | 360 | } | 516 | 360 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 65.6k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 65.6k | } else { | 509 | 65.6k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 65.6k | ss->id = operator_id(); | 511 | 65.6k | for (auto& dest : dests_id()) { | 512 | 65.5k | ss->related_op_ids.insert(dest); | 513 | 65.5k | } | 514 | 65.6k | return ss; | 515 | 65.6k | } | 516 | 65.6k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 17 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 17 | } else { | 509 | 17 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 17 | ss->id = operator_id(); | 511 | 17 | for (auto& dest : dests_id()) { | 512 | 17 | ss->related_op_ids.insert(dest); | 513 | 17 | } | 514 | 17 | return ss; | 515 | 17 | } | 516 | 17 | } |
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 | 12.3k | 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 | 12.3k | } else { | 509 | 12.3k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 12.3k | ss->id = operator_id(); | 511 | 12.3k | for (auto& dest : dests_id()) { | 512 | 12.3k | ss->related_op_ids.insert(dest); | 513 | 12.3k | } | 514 | 12.3k | return ss; | 515 | 12.3k | } | 516 | 12.3k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 9 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 9 | } else { | 509 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 9 | ss->id = operator_id(); | 511 | 9 | for (auto& dest : dests_id()) { | 512 | 9 | ss->related_op_ids.insert(dest); | 513 | 9 | } | 514 | 9 | return ss; | 515 | 9 | } | 516 | 9 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 192k | 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 | 192k | } else { | 509 | 192k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 192k | ss->id = operator_id(); | 511 | 192k | for (auto& dest : dests_id()) { | 512 | 192k | ss->related_op_ids.insert(dest); | 513 | 192k | } | 514 | 192k | return ss; | 515 | 192k | } | 516 | 192k | } |
_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 | 120k | 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 | 120k | } else { | 509 | 120k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 120k | ss->id = operator_id(); | 511 | 120k | for (auto& dest : dests_id()) { | 512 | 120k | ss->related_op_ids.insert(dest); | 513 | 120k | } | 514 | 120k | return ss; | 515 | 120k | } | 516 | 120k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 305 | 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 | 305 | } else { | 509 | 305 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 305 | ss->id = operator_id(); | 511 | 305 | for (auto& dest : dests_id()) { | 512 | 305 | ss->related_op_ids.insert(dest); | 513 | 305 | } | 514 | 305 | return ss; | 515 | 305 | } | 516 | 305 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 652k | 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 | 652k | } else { | 509 | 652k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 652k | ss->id = operator_id(); | 511 | 652k | for (auto& dest : dests_id()) { | 512 | 650k | ss->related_op_ids.insert(dest); | 513 | 650k | } | 514 | 652k | return ss; | 515 | 652k | } | 516 | 652k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 6.87k | 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.87k | } else { | 509 | 6.87k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 6.87k | ss->id = operator_id(); | 511 | 6.87k | for (auto& dest : dests_id()) { | 512 | 6.87k | ss->related_op_ids.insert(dest); | 513 | 6.87k | } | 514 | 6.87k | return ss; | 515 | 6.87k | } | 516 | 6.87k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 503 | 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 | 503 | } else { | 509 | 503 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 503 | ss->id = operator_id(); | 511 | 503 | for (auto& dest : dests_id()) { | 512 | 503 | ss->related_op_ids.insert(dest); | 513 | 503 | } | 514 | 503 | return ss; | 515 | 503 | } | 516 | 503 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.45k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 2.45k | } else { | 509 | 2.45k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.45k | ss->id = operator_id(); | 511 | 2.45k | for (auto& dest : dests_id()) { | 512 | 2.44k | ss->related_op_ids.insert(dest); | 513 | 2.44k | } | 514 | 2.45k | return ss; | 515 | 2.45k | } | 516 | 2.45k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 501 | 2.47k | 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.47k | } else { | 509 | 2.47k | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 2.47k | ss->id = operator_id(); | 511 | 2.47k | for (auto& dest : dests_id()) { | 512 | 2.45k | ss->related_op_ids.insert(dest); | 513 | 2.45k | } | 514 | 2.47k | return ss; | 515 | 2.47k | } | 516 | 2.47k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 163 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 163 | } else { | 509 | 163 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 163 | ss->id = operator_id(); | 511 | 163 | for (auto& dest : dests_id()) { | 512 | 163 | ss->related_op_ids.insert(dest); | 513 | 163 | } | 514 | 163 | return ss; | 515 | 163 | } | 516 | 163 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 501 | 105 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 502 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | LocalExchangeSharedState>) { | 504 | | return nullptr; | 505 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | MultiCastSharedState>) { | 507 | | throw Exception(Status::FatalError("should not reach here!")); | 508 | 105 | } else { | 509 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 510 | 105 | ss->id = operator_id(); | 511 | 105 | for (auto& dest : dests_id()) { | 512 | 105 | ss->related_op_ids.insert(dest); | 513 | 105 | } | 514 | 105 | return ss; | 515 | 105 | } | 516 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
517 | | |
518 | | template <typename LocalStateType> |
519 | 2.79M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
520 | 2.79M | auto local_state = LocalStateType::create_unique(state, this); |
521 | 2.79M | RETURN_IF_ERROR(local_state->init(state, info)); |
522 | 2.79M | state->emplace_local_state(operator_id(), std::move(local_state)); |
523 | 2.79M | return Status::OK(); |
524 | 2.79M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 139k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 139k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 139k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 139k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 139k | return Status::OK(); | 524 | 139k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 313k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 313k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 313k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 313k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 313k | return Status::OK(); | 524 | 313k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 75 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 75 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 75 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 75 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 75 | return Status::OK(); | 524 | 75 | } |
_ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 4 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 4 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 4 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 4 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 4 | return Status::OK(); | 524 | 4 | } |
_ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.66k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.66k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.66k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.66k | return Status::OK(); | 524 | 2.66k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 12.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 12.3k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 12.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 12.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 12.3k | return Status::OK(); | 524 | 12.3k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 14.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 14.9k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 14.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 14.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 14.9k | return Status::OK(); | 524 | 14.9k | } |
_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 | 120k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 120k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 120k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 120k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 120k | return Status::OK(); | 524 | 120k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 300 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 300 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 300 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 300 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 300 | return Status::OK(); | 524 | 300 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 4.71k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 4.71k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 4.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 4.71k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 4.71k | return Status::OK(); | 524 | 4.71k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 487k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 487k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 487k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 487k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 487k | return Status::OK(); | 524 | 487k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 1.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.18k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.18k | return Status::OK(); | 524 | 1.18k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 6.85k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 6.85k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 6.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 6.85k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 6.85k | return Status::OK(); | 524 | 6.85k | } |
_ZN5doris9OperatorXINS_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.56k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 1.56k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 1.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 1.56k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 1.56k | return Status::OK(); | 524 | 1.56k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 40.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 40.1k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 40.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 40.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 40.1k | return Status::OK(); | 524 | 40.1k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 9.23k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 9.23k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 9.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 9.23k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 9.23k | return Status::OK(); | 524 | 9.23k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 400 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 400 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 400 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 400 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 400 | return Status::OK(); | 524 | 400 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.42k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.42k | return Status::OK(); | 524 | 2.42k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 2.40k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 2.40k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 2.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 2.40k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 2.40k | return Status::OK(); | 524 | 2.40k | } |
_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.24k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 5.24k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 5.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 5.24k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 5.24k | return Status::OK(); | 524 | 5.24k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 828k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 828k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 828k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 828k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 828k | return Status::OK(); | 524 | 828k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 364 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 364 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 364 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 364 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 364 | return Status::OK(); | 524 | 364 | } |
_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 | 666 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 666 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 666 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 666 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 666 | return Status::OK(); | 524 | 666 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 981 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 981 | auto local_state = LocalStateType::create_unique(state, this); | 521 | 981 | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 981 | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 981 | return Status::OK(); | 524 | 981 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 7.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 7.34k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 7.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 7.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 7.34k | return Status::OK(); | 524 | 7.34k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 519 | 613k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 520 | 613k | auto local_state = LocalStateType::create_unique(state, this); | 521 | 613k | RETURN_IF_ERROR(local_state->init(state, info)); | 522 | 613k | state->emplace_local_state(operator_id(), std::move(local_state)); | 523 | 613k | return Status::OK(); | 524 | 613k | } |
|
525 | | |
526 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
527 | | RuntimeState* state) |
528 | 2.09M | : _parent(parent), _state(state) {} |
529 | | |
530 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
531 | 2.79M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
532 | | |
533 | | template <typename SharedStateArg> |
534 | 2.79M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
535 | 2.79M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
536 | 2.79M | _common_profile.reset(new RuntimeProfile("CommonCounters")); |
537 | 2.79M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); |
538 | 2.79M | _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.79M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
542 | 2.79M | _operator_profile->add_child(_common_profile.get(), true); |
543 | 2.79M | _operator_profile->add_child(_custom_profile.get(), true); |
544 | 2.79M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
545 | 2.79M | if constexpr (!is_fake_shared) { |
546 | 1.35M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
547 | 841k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
548 | 841k | .first.get() |
549 | 841k | ->template cast<SharedStateArg>(); |
550 | | |
551 | 841k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
552 | 841k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
553 | 841k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
554 | 841k | } else if (info.shared_state) { |
555 | 471k | 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 | 471k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
560 | | |
561 | 471k | _dependency = _shared_state->create_source_dependency( |
562 | 471k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
563 | 471k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
564 | 471k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
565 | 471k | } else { |
566 | 42.1k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
567 | 303 | DCHECK(false); |
568 | 303 | } |
569 | 42.1k | } |
570 | 1.35M | } |
571 | | |
572 | 2.79M | 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.79M | _rows_returned_counter = |
577 | 2.79M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); |
578 | 2.79M | _blocks_returned_counter = |
579 | 2.79M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); |
580 | 2.79M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); |
581 | 2.79M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
582 | 2.79M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
583 | 2.79M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
584 | 2.79M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
585 | 2.79M | _memory_used_counter = |
586 | 2.79M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
587 | 2.79M | _common_profile->add_info_string("IsColocate", |
588 | 2.79M | std::to_string(_parent->is_colocated_operator())); |
589 | 2.79M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
590 | 2.79M | _common_profile->add_info_string("FollowedByShuffledOperator", |
591 | 2.79M | std::to_string(_parent->followed_by_shuffled_operator())); |
592 | 2.79M | return Status::OK(); |
593 | 2.79M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 139k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 139k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 139k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 139k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 139k | _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 | 139k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 139k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 139k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 139k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 139k | if constexpr (!is_fake_shared) { | 546 | 139k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 13.8k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 13.8k | .first.get() | 549 | 13.8k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 13.8k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 13.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 13.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 125k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 124k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 124k | _dependency = _shared_state->create_source_dependency( | 562 | 124k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 124k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 124k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 124k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 958 | } | 570 | 139k | } | 571 | | | 572 | 139k | 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 | 139k | _rows_returned_counter = | 577 | 139k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 139k | _blocks_returned_counter = | 579 | 139k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 139k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 139k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 139k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 139k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 139k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 139k | _memory_used_counter = | 586 | 139k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 139k | _common_profile->add_info_string("IsColocate", | 588 | 139k | std::to_string(_parent->is_colocated_operator())); | 589 | 139k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 139k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 139k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 139k | return Status::OK(); | 593 | 139k | } |
_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 | 192k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 192k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 192k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 192k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 192k | _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 | 192k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 192k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 192k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 192k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 192k | if constexpr (!is_fake_shared) { | 546 | 192k | 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 | 192k | } 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 | 188k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 188k | _dependency = _shared_state->create_source_dependency( | 562 | 188k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 188k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 188k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 188k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 3.84k | } | 570 | 192k | } | 571 | | | 572 | 192k | 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 | 192k | _rows_returned_counter = | 577 | 192k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 192k | _blocks_returned_counter = | 579 | 192k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 192k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 192k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 192k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 192k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 192k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 192k | _memory_used_counter = | 586 | 192k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 192k | _common_profile->add_info_string("IsColocate", | 588 | 192k | std::to_string(_parent->is_colocated_operator())); | 589 | 192k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 192k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 192k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 192k | return Status::OK(); | 593 | 192k | } |
_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.83k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 6.83k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 6.83k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 6.83k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 6.83k | _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.83k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 6.83k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 6.83k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 6.83k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 6.83k | if constexpr (!is_fake_shared) { | 546 | 6.83k | 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.84k | } 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.84k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 6.84k | _dependency = _shared_state->create_source_dependency( | 562 | 6.84k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 6.84k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 6.84k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 18.4E | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 18.4E | } | 570 | 6.83k | } | 571 | | | 572 | 6.83k | 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.83k | _rows_returned_counter = | 577 | 6.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 6.83k | _blocks_returned_counter = | 579 | 6.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 6.83k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 6.83k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 6.83k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 6.83k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 6.83k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 6.83k | _memory_used_counter = | 586 | 6.83k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 6.83k | _common_profile->add_info_string("IsColocate", | 588 | 6.83k | std::to_string(_parent->is_colocated_operator())); | 589 | 6.83k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 6.83k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 6.83k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 6.83k | return Status::OK(); | 593 | 6.83k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 12.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 12.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 12.3k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 12.3k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 12.3k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 12.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 12.3k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 12.3k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 12.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 12.3k | if constexpr (!is_fake_shared) { | 546 | 12.3k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 12.3k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 12.3k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 12.3k | _dependency = _shared_state->create_source_dependency( | 562 | 12.3k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 12.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 12.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 12.3k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 42 | } | 570 | 12.3k | } | 571 | | | 572 | 12.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 12.3k | _rows_returned_counter = | 577 | 12.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 12.3k | _blocks_returned_counter = | 579 | 12.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 12.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 12.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 12.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 12.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 12.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 12.3k | _memory_used_counter = | 586 | 12.3k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 12.3k | _common_profile->add_info_string("IsColocate", | 588 | 12.3k | std::to_string(_parent->is_colocated_operator())); | 589 | 12.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 12.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 12.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 12.3k | return Status::OK(); | 593 | 12.3k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 120k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 120k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 120k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 120k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 120k | _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 | 120k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 120k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 120k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 120k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 120k | if constexpr (!is_fake_shared) { | 546 | 120k | 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 | 120k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 120k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 120k | _dependency = _shared_state->create_source_dependency( | 562 | 120k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 120k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 120k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 120k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 596 | } | 570 | 120k | } | 571 | | | 572 | 120k | 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 | 120k | _rows_returned_counter = | 577 | 120k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 120k | _blocks_returned_counter = | 579 | 120k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 120k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 120k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 120k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 120k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 120k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 120k | _memory_used_counter = | 586 | 120k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 120k | _common_profile->add_info_string("IsColocate", | 588 | 120k | std::to_string(_parent->is_colocated_operator())); | 589 | 120k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 120k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 120k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 120k | return Status::OK(); | 593 | 120k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 300 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 300 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 300 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 300 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 300 | _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 | 300 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 300 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 300 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 300 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 300 | if constexpr (!is_fake_shared) { | 546 | 300 | 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 | 300 | } 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 | 300 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 300 | _dependency = _shared_state->create_source_dependency( | 562 | 300 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 300 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 300 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 300 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 0 | } | 570 | 300 | } | 571 | | | 572 | 300 | 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 | 300 | _rows_returned_counter = | 577 | 300 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 300 | _blocks_returned_counter = | 579 | 300 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 300 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 300 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 300 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 300 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 300 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 300 | _memory_used_counter = | 586 | 300 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 300 | _common_profile->add_info_string("IsColocate", | 588 | 300 | std::to_string(_parent->is_colocated_operator())); | 589 | 300 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 300 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 300 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 300 | return Status::OK(); | 593 | 300 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 1.44M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 1.44M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 1.44M | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 1.44M | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 1.44M | _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.44M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 1.44M | _operator_profile->add_child(_common_profile.get(), true); | 543 | 1.44M | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 1.44M | 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.44M | 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.44M | _rows_returned_counter = | 577 | 1.44M | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 1.44M | _blocks_returned_counter = | 579 | 1.44M | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 1.44M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 1.44M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 1.44M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 1.44M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 1.44M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 1.44M | _memory_used_counter = | 586 | 1.44M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 1.44M | _common_profile->add_info_string("IsColocate", | 588 | 1.44M | std::to_string(_parent->is_colocated_operator())); | 589 | 1.44M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 1.44M | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 1.44M | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 1.44M | return Status::OK(); | 593 | 1.44M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 40.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 40.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 40.1k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 40.1k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 40.1k | _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 | 40.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 40.1k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 40.1k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 40.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 40.1k | if constexpr (!is_fake_shared) { | 546 | 40.1k | 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 | 40.1k | } 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.95k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 3.95k | _dependency = _shared_state->create_source_dependency( | 562 | 3.95k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 3.95k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 3.95k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 36.2k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 36.2k | } | 570 | 40.1k | } | 571 | | | 572 | 40.1k | 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 | 40.1k | _rows_returned_counter = | 577 | 40.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 40.1k | _blocks_returned_counter = | 579 | 40.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 40.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 40.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 40.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 40.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 40.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 40.1k | _memory_used_counter = | 586 | 40.1k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 40.1k | _common_profile->add_info_string("IsColocate", | 588 | 40.1k | std::to_string(_parent->is_colocated_operator())); | 589 | 40.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 40.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 40.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 40.1k | return Status::OK(); | 593 | 40.1k | } |
_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 | 368 | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 368 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 368 | _dependency = _shared_state->create_source_dependency( | 562 | 368 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 368 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 368 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 18.4E | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 18.4E | } | 570 | 367 | } | 571 | | | 572 | 367 | 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 | 9.23k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 9.23k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 9.23k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 9.23k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 9.23k | _operator_profile->set_metadata(_parent->node_id()); | 539 | | // indent is false so that source operator will have same | 540 | | // indentation_level with its parent operator. | 541 | 9.23k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 9.23k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 9.23k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 9.23k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 9.23k | if constexpr (!is_fake_shared) { | 546 | 9.23k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 0 | .first.get() | 549 | 0 | ->template cast<SharedStateArg>(); | 550 | |
| 551 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 9.23k | } else if (info.shared_state) { | 555 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 556 | | DCHECK(false); | 557 | | } | 558 | | // For UnionSourceOperator without children, there is no shared state. | 559 | 9.22k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 9.22k | _dependency = _shared_state->create_source_dependency( | 562 | 9.22k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 9.22k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 9.22k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 9.22k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 11 | } | 570 | 9.23k | } | 571 | | | 572 | 9.23k | if (must_set_shared_state() && _shared_state == nullptr) { | 573 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 574 | 0 | } | 575 | | | 576 | 9.23k | _rows_returned_counter = | 577 | 9.23k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 9.23k | _blocks_returned_counter = | 579 | 9.23k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 9.23k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 9.23k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 9.23k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 9.23k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 9.23k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 9.23k | _memory_used_counter = | 586 | 9.23k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 9.23k | _common_profile->add_info_string("IsColocate", | 588 | 9.23k | std::to_string(_parent->is_colocated_operator())); | 589 | 9.23k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 9.23k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 9.23k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 9.23k | return Status::OK(); | 593 | 9.23k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 503 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 503 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 503 | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 503 | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 503 | _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 | 503 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 503 | _operator_profile->add_child(_common_profile.get(), true); | 543 | 503 | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 503 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 503 | if constexpr (!is_fake_shared) { | 546 | 503 | 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 | 503 | } 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 | 500 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 500 | _dependency = _shared_state->create_source_dependency( | 562 | 500 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 500 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 500 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 500 | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 3 | } | 570 | 503 | } | 571 | | | 572 | 503 | 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 | 503 | _rows_returned_counter = | 577 | 503 | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 503 | _blocks_returned_counter = | 579 | 503 | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 503 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 503 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 503 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 503 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 503 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 503 | _memory_used_counter = | 586 | 503 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 503 | _common_profile->add_info_string("IsColocate", | 588 | 503 | std::to_string(_parent->is_colocated_operator())); | 589 | 503 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 503 | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 503 | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 503 | return Status::OK(); | 593 | 503 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 4.92k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 4.92k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 4.92k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 4.92k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 4.92k | _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.92k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 4.92k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 4.92k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 4.92k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 4.92k | if constexpr (!is_fake_shared) { | 546 | 4.92k | 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.92k | } 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.69k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 560 | | | 561 | 4.69k | _dependency = _shared_state->create_source_dependency( | 562 | 4.69k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 563 | 4.69k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 564 | 4.69k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 565 | 4.69k | } else { | 566 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | | DCHECK(false); | 568 | | } | 569 | 229 | } | 570 | 4.92k | } | 571 | | | 572 | 4.92k | 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.92k | _rows_returned_counter = | 577 | 4.92k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 4.92k | _blocks_returned_counter = | 579 | 4.92k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 4.92k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 4.92k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 4.92k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 4.92k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 4.92k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 4.92k | _memory_used_counter = | 586 | 4.92k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 4.92k | _common_profile->add_info_string("IsColocate", | 588 | 4.92k | std::to_string(_parent->is_colocated_operator())); | 589 | 4.92k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 4.92k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 4.92k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 4.92k | return Status::OK(); | 593 | 4.92k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 534 | 828k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 535 | 828k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 536 | 828k | _common_profile.reset(new RuntimeProfile("CommonCounters")); | 537 | 828k | _custom_profile.reset(new RuntimeProfile("CustomCounters")); | 538 | 828k | _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 | 828k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 542 | 828k | _operator_profile->add_child(_common_profile.get(), true); | 543 | 828k | _operator_profile->add_child(_custom_profile.get(), true); | 544 | 828k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 545 | 828k | if constexpr (!is_fake_shared) { | 546 | 828k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 547 | 827k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 548 | 827k | .first.get() | 549 | 827k | ->template cast<SharedStateArg>(); | 550 | | | 551 | 827k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 552 | 827k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 553 | 827k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 554 | 827k | } 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 | 303 | } else { | 566 | 303 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 567 | 303 | DCHECK(false); | 568 | 303 | } | 569 | 303 | } | 570 | 828k | } | 571 | | | 572 | 828k | 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 | 828k | _rows_returned_counter = | 577 | 828k | ADD_COUNTER_WITH_LEVEL(_common_profile, "RowsProduced", TUnit::UNIT, 1); | 578 | 828k | _blocks_returned_counter = | 579 | 828k | ADD_COUNTER_WITH_LEVEL(_common_profile, "BlocksProduced", TUnit::UNIT, 1); | 580 | 828k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ProjectionTime", 2); | 581 | 828k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 582 | 828k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 583 | 828k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 584 | 828k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 585 | 828k | _memory_used_counter = | 586 | 828k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 587 | 828k | _common_profile->add_info_string("IsColocate", | 588 | 828k | std::to_string(_parent->is_colocated_operator())); | 589 | 828k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 590 | 828k | _common_profile->add_info_string("FollowedByShuffledOperator", | 591 | 828k | std::to_string(_parent->followed_by_shuffled_operator())); | 592 | 828k | return Status::OK(); | 593 | 828k | } |
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.80M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
597 | 2.80M | _conjuncts.resize(_parent->_conjuncts.size()); |
598 | 2.80M | _projections.resize(_parent->_projections.size()); |
599 | 3.13M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
600 | 326k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
601 | 326k | } |
602 | 5.37M | for (size_t i = 0; i < _projections.size(); i++) { |
603 | 2.57M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
604 | 2.57M | } |
605 | 2.80M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
606 | 2.81M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
607 | 7.79k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
608 | 50.6k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
609 | 42.8k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
610 | 42.8k | state, _intermediate_projections[i][j])); |
611 | 42.8k | } |
612 | 7.79k | } |
613 | 2.80M | return Status::OK(); |
614 | 2.80M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 139k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 139k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 139k | _projections.resize(_parent->_projections.size()); | 599 | 140k | 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 | 731k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 592k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 592k | } | 605 | 139k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 140k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 802 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 7.98k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 7.18k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 7.18k | state, _intermediate_projections[i][j])); | 611 | 7.18k | } | 612 | 802 | } | 613 | 139k | return Status::OK(); | 614 | 139k | } |
_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 | 193k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 193k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 193k | _projections.resize(_parent->_projections.size()); | 599 | 193k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 213k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 20.7k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 20.7k | } | 605 | 193k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 193k | 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 | 193k | return Status::OK(); | 614 | 193k | } |
_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.87k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 6.87k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 6.87k | _projections.resize(_parent->_projections.size()); | 599 | 6.91k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 37 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 37 | } | 602 | 33.3k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 26.5k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 26.5k | } | 605 | 6.87k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 6.89k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 13 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 114 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 101 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 101 | state, _intermediate_projections[i][j])); | 611 | 101 | } | 612 | 13 | } | 613 | 6.87k | return Status::OK(); | 614 | 6.87k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 12.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 12.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 12.4k | _projections.resize(_parent->_projections.size()); | 599 | 13.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 830 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 830 | } | 602 | 34.7k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 22.3k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 22.3k | } | 605 | 12.4k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 12.5k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 166 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 1.25k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 1.08k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 1.08k | state, _intermediate_projections[i][j])); | 611 | 1.08k | } | 612 | 166 | } | 613 | 12.4k | return Status::OK(); | 614 | 12.4k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 120k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 120k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 120k | _projections.resize(_parent->_projections.size()); | 599 | 122k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 1.85k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 1.85k | } | 602 | 436k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 315k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 315k | } | 605 | 120k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 120k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 145 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 1.16k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 1.01k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 1.01k | state, _intermediate_projections[i][j])); | 611 | 1.01k | } | 612 | 145 | } | 613 | 120k | return Status::OK(); | 614 | 120k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 304 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 304 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 304 | _projections.resize(_parent->_projections.size()); | 599 | 304 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 740 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 436 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 436 | } | 605 | 304 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 304 | 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 | 304 | return Status::OK(); | 614 | 304 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 1.44M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 1.44M | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 1.44M | _projections.resize(_parent->_projections.size()); | 599 | 1.76M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 321k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 321k | } | 602 | 2.94M | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 1.50M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 1.50M | } | 605 | 1.44M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 1.45M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 6.67k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 40.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 33.4k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 33.4k | state, _intermediate_projections[i][j])); | 611 | 33.4k | } | 612 | 6.67k | } | 613 | 1.44M | return Status::OK(); | 614 | 1.44M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 40.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 40.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 40.2k | _projections.resize(_parent->_projections.size()); | 599 | 40.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 133k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 93.3k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 93.3k | } | 605 | 40.2k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 40.2k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 40.2k | return Status::OK(); | 614 | 40.2k | } |
_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 | 9.23k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 9.23k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 9.23k | _projections.resize(_parent->_projections.size()); | 599 | 10.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 777 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 777 | } | 602 | 9.23k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 9.23k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 9.23k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 607 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 608 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 609 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 610 | 0 | state, _intermediate_projections[i][j])); | 611 | 0 | } | 612 | 0 | } | 613 | 9.23k | return Status::OK(); | 614 | 9.23k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 503 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 503 | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 503 | _projections.resize(_parent->_projections.size()); | 599 | 503 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 503 | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 503 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 503 | 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 | 503 | return Status::OK(); | 614 | 503 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 4.96k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 4.96k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 4.96k | _projections.resize(_parent->_projections.size()); | 599 | 4.96k | 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.96k | 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.96k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 4.96k | 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.96k | return Status::OK(); | 614 | 4.96k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 596 | 831k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 597 | 831k | _conjuncts.resize(_parent->_conjuncts.size()); | 598 | 831k | _projections.resize(_parent->_projections.size()); | 599 | 831k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 601 | 0 | } | 602 | 831k | for (size_t i = 0; i < _projections.size(); i++) { | 603 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 604 | 0 | } | 605 | 831k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 606 | 831k | 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 | 831k | return Status::OK(); | 614 | 831k | } |
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.63k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
618 | 8.63k | if (_terminated) { |
619 | 0 | return Status::OK(); |
620 | 0 | } |
621 | 8.63k | _terminated = true; |
622 | 8.63k | return Status::OK(); |
623 | 8.63k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 1.42k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 1.42k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 1.42k | _terminated = true; | 622 | 1.42k | return Status::OK(); | 623 | 1.42k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 247 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 247 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 247 | _terminated = true; | 622 | 247 | return Status::OK(); | 623 | 247 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 230 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 230 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 230 | _terminated = true; | 622 | 230 | return Status::OK(); | 623 | 230 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 656 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 656 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 656 | _terminated = true; | 622 | 656 | return Status::OK(); | 623 | 656 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 4.71k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 4.71k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 4.71k | _terminated = true; | 622 | 4.71k | return Status::OK(); | 623 | 4.71k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 4 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 4 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 4 | _terminated = true; | 622 | 4 | return Status::OK(); | 623 | 4 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 43 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 43 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 43 | _terminated = true; | 622 | 43 | return Status::OK(); | 623 | 43 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 274 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 274 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 274 | _terminated = true; | 622 | 274 | return Status::OK(); | 623 | 274 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 1.02k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 1.02k | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 1.02k | _terminated = true; | 622 | 1.02k | return Status::OK(); | 623 | 1.02k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 617 | 19 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 618 | 19 | if (_terminated) { | 619 | 0 | return Status::OK(); | 620 | 0 | } | 621 | 19 | _terminated = true; | 622 | 19 | return Status::OK(); | 623 | 19 | } |
|
624 | | |
625 | | template <typename SharedStateArg> |
626 | 3.03M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
627 | 3.03M | if (_closed) { |
628 | 226k | return Status::OK(); |
629 | 226k | } |
630 | 2.80M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
631 | 1.36M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
632 | 1.36M | } |
633 | 2.80M | _closed = true; |
634 | 2.80M | return Status::OK(); |
635 | 3.03M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 139k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 139k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 139k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 139k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 139k | } | 633 | 139k | _closed = true; | 634 | 139k | return Status::OK(); | 635 | 139k | } |
_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 | 384k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 384k | if (_closed) { | 628 | 192k | return Status::OK(); | 629 | 192k | } | 630 | 192k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 192k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 192k | } | 633 | 192k | _closed = true; | 634 | 192k | return Status::OK(); | 635 | 384k | } |
_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.87k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 6.87k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 6.87k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 6.87k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 6.87k | } | 633 | 6.87k | _closed = true; | 634 | 6.87k | return Status::OK(); | 635 | 6.87k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 24.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 24.8k | if (_closed) { | 628 | 12.4k | return Status::OK(); | 629 | 12.4k | } | 630 | 12.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 12.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 12.3k | } | 633 | 12.3k | _closed = true; | 634 | 12.3k | return Status::OK(); | 635 | 24.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 120k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 120k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 120k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 120k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 120k | } | 633 | 120k | _closed = true; | 634 | 120k | return Status::OK(); | 635 | 120k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 298 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 298 | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 298 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 298 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 298 | } | 633 | 298 | _closed = true; | 634 | 298 | return Status::OK(); | 635 | 298 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 1.46M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 1.46M | if (_closed) { | 628 | 15.2k | return Status::OK(); | 629 | 15.2k | } | 630 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | | } | 633 | 1.44M | _closed = true; | 634 | 1.44M | return Status::OK(); | 635 | 1.46M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 40.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 40.2k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 40.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 40.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 40.2k | } | 633 | 40.2k | _closed = true; | 634 | 40.2k | return Status::OK(); | 635 | 40.2k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 729 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 729 | if (_closed) { | 628 | 365 | return Status::OK(); | 629 | 365 | } | 630 | 364 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 364 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 364 | } | 633 | 364 | _closed = true; | 634 | 364 | return Status::OK(); | 635 | 729 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 9.18k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 9.18k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 9.18k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 9.18k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 9.18k | } | 633 | 9.18k | _closed = true; | 634 | 9.18k | return Status::OK(); | 635 | 9.18k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 802 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 802 | if (_closed) { | 628 | 401 | return Status::OK(); | 629 | 401 | } | 630 | 401 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 401 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 401 | } | 633 | 401 | _closed = true; | 634 | 401 | return Status::OK(); | 635 | 802 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 10.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 10.1k | if (_closed) { | 628 | 5.21k | return Status::OK(); | 629 | 5.21k | } | 630 | 4.95k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 4.95k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 4.95k | } | 633 | 4.95k | _closed = true; | 634 | 4.95k | return Status::OK(); | 635 | 10.1k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 833k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 833k | if (_closed) { | 628 | 0 | return Status::OK(); | 629 | 0 | } | 630 | 833k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 631 | 833k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 632 | 833k | } | 633 | 833k | _closed = true; | 634 | 833k | return Status::OK(); | 635 | 833k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 626 | 308 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 627 | 308 | if (_closed) { | 628 | 158 | return Status::OK(); | 629 | 158 | } | 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 | 308 | } |
|
636 | | |
637 | | template <typename SharedState> |
638 | 2.09M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
639 | | // create profile |
640 | 2.09M | _operator_profile = |
641 | 2.09M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
642 | 2.09M | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); |
643 | 2.09M | _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.09M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
649 | 2.09M | _operator_profile->add_child(_common_profile, true); |
650 | 2.09M | _operator_profile->add_child(_custom_profile, true); |
651 | | |
652 | 2.09M | _operator_profile->set_metadata(_parent->node_id()); |
653 | 2.09M | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); |
654 | 2.09M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
655 | 2.09M | if constexpr (!is_fake_shared) { |
656 | 1.44M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
657 | 1.44M | info.shared_state_map.end()) { |
658 | 425k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
659 | 410k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
660 | 410k | } |
661 | 425k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
662 | 425k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
663 | 425k | ? 0 |
664 | 425k | : info.task_idx] |
665 | 425k | .get(); |
666 | 425k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
667 | 1.01M | } else { |
668 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
669 | 18.4E | DCHECK(false); |
670 | 18.4E | } |
671 | 1.01M | _shared_state = info.shared_state->template cast<SharedState>(); |
672 | 1.01M | _dependency = _shared_state->create_sink_dependency( |
673 | 1.01M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
674 | 1.01M | } |
675 | 1.44M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
676 | 1.44M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
677 | 1.44M | } |
678 | | |
679 | 2.09M | 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.09M | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); |
684 | 2.09M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); |
685 | 2.09M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); |
686 | 2.09M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); |
687 | 2.09M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); |
688 | 2.09M | _memory_used_counter = |
689 | 2.09M | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); |
690 | 2.09M | _common_profile->add_info_string("IsColocate", |
691 | 2.09M | std::to_string(_parent->is_colocated_operator())); |
692 | 2.09M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
693 | 2.09M | _common_profile->add_info_string("FollowedByShuffledOperator", |
694 | 2.09M | std::to_string(_parent->followed_by_shuffled_operator())); |
695 | 2.09M | return Status::OK(); |
696 | 2.09M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 187k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 187k | _operator_profile = | 641 | 187k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 187k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 187k | _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 | 187k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 187k | _operator_profile->add_child(_common_profile, true); | 650 | 187k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 187k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 187k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 187k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 187k | if constexpr (!is_fake_shared) { | 656 | 187k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 187k | 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 | 13.8k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 13.8k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 13.8k | ? 0 | 664 | 13.8k | : info.task_idx] | 665 | 13.8k | .get(); | 666 | 13.8k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 173k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 173k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 173k | _dependency = _shared_state->create_sink_dependency( | 673 | 173k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 173k | } | 675 | 187k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 187k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 187k | } | 678 | | | 679 | 187k | 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 | 187k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 187k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 187k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 187k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 187k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 187k | _memory_used_counter = | 689 | 187k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 187k | _common_profile->add_info_string("IsColocate", | 691 | 187k | std::to_string(_parent->is_colocated_operator())); | 692 | 187k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 187k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 187k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 187k | return Status::OK(); | 696 | 187k | } |
_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 | 192k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 192k | _operator_profile = | 641 | 192k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 192k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 192k | _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 | 192k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 192k | _operator_profile->add_child(_common_profile, true); | 650 | 192k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 192k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 192k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 192k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 192k | if constexpr (!is_fake_shared) { | 656 | 192k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 192k | 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 | 192k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 192k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 192k | _dependency = _shared_state->create_sink_dependency( | 673 | 192k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 192k | } | 675 | 192k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 192k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 192k | } | 678 | | | 679 | 192k | 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 | 192k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 192k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 192k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 192k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 192k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 192k | _memory_used_counter = | 689 | 192k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 192k | _common_profile->add_info_string("IsColocate", | 691 | 192k | std::to_string(_parent->is_colocated_operator())); | 692 | 192k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 192k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 192k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 192k | return Status::OK(); | 696 | 192k | } |
_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.87k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 6.87k | _operator_profile = | 641 | 6.87k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 6.87k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 6.87k | _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.87k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 6.87k | _operator_profile->add_child(_common_profile, true); | 650 | 6.87k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 6.87k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 6.87k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 6.87k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 6.87k | if constexpr (!is_fake_shared) { | 656 | 6.87k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 6.87k | 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.87k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 6.87k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 6.87k | _dependency = _shared_state->create_sink_dependency( | 673 | 6.87k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 6.87k | } | 675 | 6.87k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 6.87k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 6.87k | } | 678 | | | 679 | 6.87k | 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.87k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 6.87k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 6.87k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 6.87k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 6.87k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 6.87k | _memory_used_counter = | 689 | 6.87k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 6.87k | _common_profile->add_info_string("IsColocate", | 691 | 6.87k | std::to_string(_parent->is_colocated_operator())); | 692 | 6.87k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 6.87k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 6.87k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 6.87k | return Status::OK(); | 696 | 6.87k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 12.4k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 12.4k | _operator_profile = | 641 | 12.4k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 12.4k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 12.4k | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 12.4k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 12.4k | _operator_profile->add_child(_common_profile, true); | 650 | 12.4k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 12.4k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 12.4k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 12.4k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 12.4k | if constexpr (!is_fake_shared) { | 656 | 12.4k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 12.4k | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 12.4k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 12.4k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 12.4k | _dependency = _shared_state->create_sink_dependency( | 673 | 12.4k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 12.4k | } | 675 | 12.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 12.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 12.4k | } | 678 | | | 679 | 12.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 12.4k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 12.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 12.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 12.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 12.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 12.4k | _memory_used_counter = | 689 | 12.4k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 12.4k | _common_profile->add_info_string("IsColocate", | 691 | 12.4k | std::to_string(_parent->is_colocated_operator())); | 692 | 12.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 12.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 12.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 12.4k | return Status::OK(); | 696 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 120k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 120k | _operator_profile = | 641 | 120k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 120k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 120k | _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 | 120k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 120k | _operator_profile->add_child(_common_profile, true); | 650 | 120k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 120k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 120k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 120k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 120k | if constexpr (!is_fake_shared) { | 656 | 120k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 120k | 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 | 120k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 120k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 120k | _dependency = _shared_state->create_sink_dependency( | 673 | 120k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 120k | } | 675 | 120k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 120k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 120k | } | 678 | | | 679 | 120k | 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 | 120k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 120k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 120k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 120k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 120k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 120k | _memory_used_counter = | 689 | 120k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 120k | _common_profile->add_info_string("IsColocate", | 691 | 120k | std::to_string(_parent->is_colocated_operator())); | 692 | 120k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 120k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 120k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 120k | return Status::OK(); | 696 | 120k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 306 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 306 | _operator_profile = | 641 | 306 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 306 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 306 | _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 | 306 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 306 | _operator_profile->add_child(_common_profile, true); | 650 | 306 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 306 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 306 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 306 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 306 | if constexpr (!is_fake_shared) { | 656 | 306 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 306 | 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 | 306 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 306 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 306 | _dependency = _shared_state->create_sink_dependency( | 673 | 306 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 306 | } | 675 | 306 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 306 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 306 | } | 678 | | | 679 | 306 | 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 | 306 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 306 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 306 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 306 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 306 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 306 | _memory_used_counter = | 689 | 306 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 306 | _common_profile->add_info_string("IsColocate", | 691 | 306 | std::to_string(_parent->is_colocated_operator())); | 692 | 306 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 306 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 306 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 306 | return Status::OK(); | 696 | 306 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 654k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 654k | _operator_profile = | 641 | 654k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 654k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 654k | _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 | 654k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 654k | _operator_profile->add_child(_common_profile, true); | 650 | 654k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 654k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 654k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 654k | 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 | 654k | 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 | 654k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 654k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 654k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 654k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 654k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 654k | _memory_used_counter = | 689 | 654k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 654k | _common_profile->add_info_string("IsColocate", | 691 | 654k | std::to_string(_parent->is_colocated_operator())); | 692 | 654k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 654k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 654k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 654k | return Status::OK(); | 696 | 654k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 8.24k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 8.24k | _operator_profile = | 641 | 8.24k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 8.24k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 8.24k | _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.24k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 8.24k | _operator_profile->add_child(_common_profile, true); | 650 | 8.24k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 8.24k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 8.24k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 8.24k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 8.24k | if constexpr (!is_fake_shared) { | 656 | 8.24k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 8.24k | 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.24k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 8.24k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 8.24k | _dependency = _shared_state->create_sink_dependency( | 673 | 8.24k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 8.24k | } | 675 | 8.24k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 8.24k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 8.24k | } | 678 | | | 679 | 8.24k | 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.24k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 8.24k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 8.24k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 8.24k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 8.24k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 8.24k | _memory_used_counter = | 689 | 8.24k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 8.24k | _common_profile->add_info_string("IsColocate", | 691 | 8.24k | std::to_string(_parent->is_colocated_operator())); | 692 | 8.24k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 8.24k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 8.24k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 8.24k | return Status::OK(); | 696 | 8.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 502 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 502 | _operator_profile = | 641 | 502 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 502 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 502 | _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 | 502 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 502 | _operator_profile->add_child(_common_profile, true); | 650 | 502 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 502 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 502 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 502 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 502 | if constexpr (!is_fake_shared) { | 656 | 502 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 502 | 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 | 502 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 502 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 502 | _dependency = _shared_state->create_sink_dependency( | 673 | 502 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 502 | } | 675 | 502 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 502 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 502 | } | 678 | | | 679 | 502 | 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 | 502 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 502 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 502 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 502 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 502 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 502 | _memory_used_counter = | 689 | 502 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 502 | _common_profile->add_info_string("IsColocate", | 691 | 502 | std::to_string(_parent->is_colocated_operator())); | 692 | 502 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 502 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 502 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 502 | return Status::OK(); | 696 | 502 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 3.65k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 3.65k | _operator_profile = | 641 | 3.65k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 3.65k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 3.65k | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 3.65k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 3.65k | _operator_profile->add_child(_common_profile, true); | 650 | 3.65k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 3.65k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 3.65k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 3.65k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 3.65k | if constexpr (!is_fake_shared) { | 656 | 3.65k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 3.65k | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 3.65k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 3.65k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 3.65k | _dependency = _shared_state->create_sink_dependency( | 673 | 3.65k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 3.65k | } | 675 | 3.65k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 3.65k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 3.65k | } | 678 | | | 679 | 3.65k | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 3.65k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 3.65k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 3.65k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 3.65k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 3.65k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 3.65k | _memory_used_counter = | 689 | 3.65k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 3.65k | _common_profile->add_info_string("IsColocate", | 691 | 3.65k | std::to_string(_parent->is_colocated_operator())); | 692 | 3.65k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 3.65k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 3.65k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 3.65k | return Status::OK(); | 696 | 3.65k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 12.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 12.0k | _operator_profile = | 641 | 12.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 12.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 12.0k | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 12.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 12.0k | _operator_profile->add_child(_common_profile, true); | 650 | 12.0k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 12.0k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 12.0k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 12.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 12.0k | if constexpr (!is_fake_shared) { | 656 | 12.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 12.0k | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 12.0k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 12.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 12.0k | _dependency = _shared_state->create_sink_dependency( | 673 | 12.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 12.0k | } | 675 | 12.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 12.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 12.0k | } | 678 | | | 679 | 12.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 12.0k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 12.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 12.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 12.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 12.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 12.0k | _memory_used_counter = | 689 | 12.0k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 12.0k | _common_profile->add_info_string("IsColocate", | 691 | 12.0k | std::to_string(_parent->is_colocated_operator())); | 692 | 12.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 12.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 12.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 12.0k | return Status::OK(); | 696 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 409k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 409k | _operator_profile = | 641 | 409k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 409k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 409k | _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 | 409k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 409k | _operator_profile->add_child(_common_profile, true); | 650 | 409k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 409k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 409k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 409k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 409k | if constexpr (!is_fake_shared) { | 656 | 409k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 410k | info.shared_state_map.end()) { | 658 | 410k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | 410k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | 410k | } | 661 | 410k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 410k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 410k | ? 0 | 664 | 410k | : info.task_idx] | 665 | 410k | .get(); | 666 | 410k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 18.4E | } else { | 668 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | 18.4E | DCHECK(false); | 670 | 18.4E | } | 671 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 673 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 18.4E | } | 675 | 409k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 409k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 409k | } | 678 | | | 679 | 409k | 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 | 409k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 409k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 409k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 409k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 409k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 409k | _memory_used_counter = | 689 | 409k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 409k | _common_profile->add_info_string("IsColocate", | 691 | 409k | std::to_string(_parent->is_colocated_operator())); | 692 | 409k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 409k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 409k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 409k | return Status::OK(); | 696 | 409k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 489k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 489k | _operator_profile = | 641 | 489k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 489k | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 489k | _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 | 489k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 489k | _operator_profile->add_child(_common_profile, true); | 650 | 489k | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 489k | _operator_profile->set_metadata(_parent->node_id()); | 653 | 489k | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 489k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 489k | if constexpr (!is_fake_shared) { | 656 | 489k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 489k | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 1.00k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 1.00k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 1.00k | ? 0 | 664 | 1.00k | : info.task_idx] | 665 | 1.00k | .get(); | 666 | 1.00k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 488k | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 488k | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 488k | _dependency = _shared_state->create_sink_dependency( | 673 | 488k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 488k | } | 675 | 489k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 489k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 489k | } | 678 | | | 679 | 489k | 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 | 489k | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 489k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 489k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 489k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 489k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 489k | _memory_used_counter = | 689 | 489k | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 489k | _common_profile->add_info_string("IsColocate", | 691 | 489k | std::to_string(_parent->is_colocated_operator())); | 692 | 489k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 489k | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 489k | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 489k | return Status::OK(); | 696 | 489k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 367 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 367 | _operator_profile = | 641 | 367 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 367 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 367 | _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 | 367 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 367 | _operator_profile->add_child(_common_profile, true); | 650 | 367 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 367 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 367 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 367 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 367 | if constexpr (!is_fake_shared) { | 656 | 367 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 367 | 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 | 367 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 367 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 367 | _dependency = _shared_state->create_sink_dependency( | 673 | 367 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 367 | } | 675 | 367 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 367 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 367 | } | 678 | | | 679 | 367 | 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 | 367 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 367 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 367 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 367 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 367 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 367 | _memory_used_counter = | 689 | 367 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 367 | _common_profile->add_info_string("IsColocate", | 691 | 367 | std::to_string(_parent->is_colocated_operator())); | 692 | 367 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 367 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 367 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 367 | return Status::OK(); | 696 | 367 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 638 | 300 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 639 | | // create profile | 640 | 300 | _operator_profile = | 641 | 300 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 642 | 300 | _common_profile = state->obj_pool()->add(new RuntimeProfile("CommonCounters")); | 643 | 300 | _custom_profile = state->obj_pool()->add(new RuntimeProfile("CustomCounters")); | 644 | | | 645 | | // indentation is true | 646 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 647 | | // So we should set the indentation to true. | 648 | 300 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 649 | 300 | _operator_profile->add_child(_common_profile, true); | 650 | 300 | _operator_profile->add_child(_custom_profile, true); | 651 | | | 652 | 300 | _operator_profile->set_metadata(_parent->node_id()); | 653 | 300 | _wait_for_finish_dependency_timer = ADD_TIMER(_common_profile, "PendingFinishDependency"); | 654 | 300 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 655 | 300 | if constexpr (!is_fake_shared) { | 656 | 300 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 657 | 300 | info.shared_state_map.end()) { | 658 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 659 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 660 | | } | 661 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 662 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 663 | 0 | ? 0 | 664 | 0 | : info.task_idx] | 665 | 0 | .get(); | 666 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 667 | 300 | } else { | 668 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 669 | | DCHECK(false); | 670 | | } | 671 | 300 | _shared_state = info.shared_state->template cast<SharedState>(); | 672 | 300 | _dependency = _shared_state->create_sink_dependency( | 673 | 300 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 674 | 300 | } | 675 | 300 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 676 | 300 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 677 | 300 | } | 678 | | | 679 | 300 | if (must_set_shared_state() && _shared_state == nullptr) { | 680 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 681 | 0 | } | 682 | | | 683 | 300 | _rows_input_counter = ADD_COUNTER_WITH_LEVEL(_common_profile, "InputRows", TUnit::UNIT, 1); | 684 | 300 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "InitTime", 2); | 685 | 300 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "OpenTime", 2); | 686 | 300 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "CloseTime", 2); | 687 | 300 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, "ExecTime", 1); | 688 | 300 | _memory_used_counter = | 689 | 300 | _common_profile->AddHighWaterMarkCounter("MemoryUsage", TUnit::BYTES, "", 1); | 690 | 300 | _common_profile->add_info_string("IsColocate", | 691 | 300 | std::to_string(_parent->is_colocated_operator())); | 692 | 300 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 693 | 300 | _common_profile->add_info_string("FollowedByShuffledOperator", | 694 | 300 | std::to_string(_parent->followed_by_shuffled_operator())); | 695 | 300 | return Status::OK(); | 696 | 300 | } |
|
697 | | |
698 | | template <typename SharedState> |
699 | 2.10M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
700 | 2.10M | if (_closed) { |
701 | 2 | return Status::OK(); |
702 | 2 | } |
703 | 2.10M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
704 | 1.44M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
705 | 1.44M | } |
706 | 2.10M | _closed = true; |
707 | 2.10M | return Status::OK(); |
708 | 2.10M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 187k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 187k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 187k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 187k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 187k | } | 706 | 187k | _closed = true; | 707 | 187k | return Status::OK(); | 708 | 187k | } |
_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 | 192k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 192k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 192k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 192k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 192k | } | 706 | 192k | _closed = true; | 707 | 192k | return Status::OK(); | 708 | 192k | } |
_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.85k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 6.85k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 6.85k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 6.85k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 6.85k | } | 706 | 6.85k | _closed = true; | 707 | 6.85k | return Status::OK(); | 708 | 6.85k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 12.3k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 12.3k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 12.3k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 12.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 12.3k | } | 706 | 12.3k | _closed = true; | 707 | 12.3k | return Status::OK(); | 708 | 12.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 120k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 120k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 120k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 120k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 120k | } | 706 | 120k | _closed = true; | 707 | 120k | return Status::OK(); | 708 | 120k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 301 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 301 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 301 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 301 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 301 | } | 706 | 301 | _closed = true; | 707 | 301 | return Status::OK(); | 708 | 301 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 654k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 654k | 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 | 654k | _closed = true; | 707 | 654k | return Status::OK(); | 708 | 654k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 8.24k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 8.24k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 8.24k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 8.24k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 8.24k | } | 706 | 8.24k | _closed = true; | 707 | 8.24k | return Status::OK(); | 708 | 8.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 399 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 399 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 399 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 399 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 399 | } | 706 | 399 | _closed = true; | 707 | 399 | return Status::OK(); | 708 | 399 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 3.65k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 3.65k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 3.65k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 3.65k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 3.65k | } | 706 | 3.65k | _closed = true; | 707 | 3.65k | return Status::OK(); | 708 | 3.65k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 12.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 12.0k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 12.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 12.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 12.0k | } | 706 | 12.0k | _closed = true; | 707 | 12.0k | return Status::OK(); | 708 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 410k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 410k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 410k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 410k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 410k | } | 706 | 410k | _closed = true; | 707 | 410k | return Status::OK(); | 708 | 410k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 490k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 490k | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 490k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 490k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 490k | } | 706 | 490k | _closed = true; | 707 | 490k | return Status::OK(); | 708 | 490k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 366 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 366 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 366 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 366 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 366 | } | 706 | 366 | _closed = true; | 707 | 366 | return Status::OK(); | 708 | 366 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 699 | 300 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 700 | 300 | if (_closed) { | 701 | 0 | return Status::OK(); | 702 | 0 | } | 703 | 300 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 704 | 300 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 705 | 300 | } | 706 | 300 | _closed = true; | 707 | 300 | return Status::OK(); | 708 | 300 | } |
|
709 | | |
710 | | template <typename LocalStateType> |
711 | 5.41k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
712 | 5.41k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
713 | 5.40k | return pull(state, block, eos); |
714 | 5.41k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 31 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 31 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 31 | return pull(state, block, eos); | 714 | 31 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 711 | 5.37k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 712 | 5.37k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 713 | 5.37k | return pull(state, block, eos); | 714 | 5.37k | } |
|
715 | | |
716 | | template <typename LocalStateType> |
717 | 902k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
718 | 902k | auto& local_state = get_local_state(state); |
719 | 902k | if (need_more_input_data(state)) { |
720 | 826k | local_state._child_block->clear_column_data( |
721 | 826k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
722 | 826k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
723 | 826k | state, local_state._child_block.get(), &local_state._child_eos)); |
724 | 826k | *eos = local_state._child_eos; |
725 | 826k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
726 | 46.1k | return Status::OK(); |
727 | 46.1k | } |
728 | 780k | { |
729 | 780k | SCOPED_TIMER(local_state.exec_time_counter()); |
730 | 780k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
731 | 780k | } |
732 | 780k | } |
733 | | |
734 | 856k | if (!need_more_input_data(state)) { |
735 | 818k | SCOPED_TIMER(local_state.exec_time_counter()); |
736 | 818k | bool new_eos = false; |
737 | 818k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
738 | 818k | if (new_eos) { |
739 | 745k | *eos = true; |
740 | 745k | } else if (!need_more_input_data(state)) { |
741 | 26.2k | *eos = false; |
742 | 26.2k | } |
743 | 818k | } |
744 | 856k | return Status::OK(); |
745 | 856k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 190k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 190k | auto& local_state = get_local_state(state); | 719 | 190k | if (need_more_input_data(state)) { | 720 | 128k | local_state._child_block->clear_column_data( | 721 | 128k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 128k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 128k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 128k | *eos = local_state._child_eos; | 725 | 128k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 27.7k | return Status::OK(); | 727 | 27.7k | } | 728 | 100k | { | 729 | 100k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 100k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 100k | } | 732 | 100k | } | 733 | | | 734 | 162k | if (!need_more_input_data(state)) { | 735 | 162k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 162k | bool new_eos = false; | 737 | 162k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 162k | if (new_eos) { | 739 | 114k | *eos = true; | 740 | 114k | } else if (!need_more_input_data(state)) { | 741 | 11.8k | *eos = false; | 742 | 11.8k | } | 743 | 162k | } | 744 | 162k | return Status::OK(); | 745 | 162k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 2.88k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 2.88k | auto& local_state = get_local_state(state); | 719 | 2.88k | if (need_more_input_data(state)) { | 720 | 1.61k | local_state._child_block->clear_column_data( | 721 | 1.61k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 1.61k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 1.61k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 1.61k | *eos = local_state._child_eos; | 725 | 1.61k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 138 | return Status::OK(); | 727 | 138 | } | 728 | 1.48k | { | 729 | 1.48k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 1.48k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 1.48k | } | 732 | 1.48k | } | 733 | | | 734 | 2.75k | if (!need_more_input_data(state)) { | 735 | 2.75k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 2.75k | bool new_eos = false; | 737 | 2.75k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 2.75k | if (new_eos) { | 739 | 1.17k | *eos = true; | 740 | 1.57k | } else if (!need_more_input_data(state)) { | 741 | 1.26k | *eos = false; | 742 | 1.26k | } | 743 | 2.75k | } | 744 | 2.74k | return Status::OK(); | 745 | 2.74k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 1.58k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 1.58k | auto& local_state = get_local_state(state); | 719 | 1.58k | if (need_more_input_data(state)) { | 720 | 1.58k | local_state._child_block->clear_column_data( | 721 | 1.58k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 1.58k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 1.58k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 1.58k | *eos = local_state._child_eos; | 725 | 1.58k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 640 | return Status::OK(); | 727 | 640 | } | 728 | 943 | { | 729 | 943 | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 943 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 943 | } | 732 | 943 | } | 733 | | | 734 | 943 | if (!need_more_input_data(state)) { | 735 | 943 | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 943 | bool new_eos = false; | 737 | 943 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 943 | if (new_eos) { | 739 | 661 | *eos = true; | 740 | 661 | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 943 | } | 744 | 943 | return Status::OK(); | 745 | 943 | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 18.8k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 18.8k | auto& local_state = get_local_state(state); | 719 | 18.8k | if (need_more_input_data(state)) { | 720 | 18.7k | local_state._child_block->clear_column_data( | 721 | 18.7k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 18.7k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 18.7k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 18.7k | *eos = local_state._child_eos; | 725 | 18.7k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 5.02k | return Status::OK(); | 727 | 5.02k | } | 728 | 13.7k | { | 729 | 13.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 13.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 13.7k | } | 732 | 13.7k | } | 733 | | | 734 | 13.7k | if (!need_more_input_data(state)) { | 735 | 7.61k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 7.61k | bool new_eos = false; | 737 | 7.61k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 7.61k | if (new_eos) { | 739 | 7.29k | *eos = true; | 740 | 7.29k | } else if (!need_more_input_data(state)) { | 741 | 77 | *eos = false; | 742 | 77 | } | 743 | 7.61k | } | 744 | 13.7k | return Status::OK(); | 745 | 13.7k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 653k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 653k | auto& local_state = get_local_state(state); | 719 | 654k | if (need_more_input_data(state)) { | 720 | 654k | local_state._child_block->clear_column_data( | 721 | 654k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 654k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 654k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 654k | *eos = local_state._child_eos; | 725 | 654k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 10.9k | return Status::OK(); | 727 | 10.9k | } | 728 | 643k | { | 729 | 643k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 643k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 643k | } | 732 | 643k | } | 733 | | | 734 | 643k | if (!need_more_input_data(state)) { | 735 | 612k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 612k | bool new_eos = false; | 737 | 612k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 612k | if (new_eos) { | 739 | 610k | *eos = true; | 740 | 610k | } else if (!need_more_input_data(state)) { | 741 | 0 | *eos = false; | 742 | 0 | } | 743 | 612k | } | 744 | 643k | return Status::OK(); | 745 | 643k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 27.6k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 27.6k | auto& local_state = get_local_state(state); | 719 | 27.6k | if (need_more_input_data(state)) { | 720 | 15.0k | local_state._child_block->clear_column_data( | 721 | 15.0k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 15.0k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 15.0k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 15.0k | *eos = local_state._child_eos; | 725 | 15.0k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 1.34k | return Status::OK(); | 727 | 1.34k | } | 728 | 13.7k | { | 729 | 13.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 13.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 13.7k | } | 732 | 13.7k | } | 733 | | | 734 | 26.3k | if (!need_more_input_data(state)) { | 735 | 25.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 25.0k | bool new_eos = false; | 737 | 25.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 25.0k | if (new_eos) { | 739 | 6.84k | *eos = true; | 740 | 18.2k | } else if (!need_more_input_data(state)) { | 741 | 12.6k | *eos = false; | 742 | 12.6k | } | 743 | 25.0k | } | 744 | 26.3k | return Status::OK(); | 745 | 26.3k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 717 | 6.91k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 718 | 6.91k | auto& local_state = get_local_state(state); | 719 | 6.91k | if (need_more_input_data(state)) { | 720 | 6.54k | local_state._child_block->clear_column_data( | 721 | 6.54k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 722 | 6.54k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 723 | 6.54k | state, local_state._child_block.get(), &local_state._child_eos)); | 724 | 6.54k | *eos = local_state._child_eos; | 725 | 6.54k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 726 | 343 | return Status::OK(); | 727 | 343 | } | 728 | 6.20k | { | 729 | 6.20k | SCOPED_TIMER(local_state.exec_time_counter()); | 730 | 6.20k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 731 | 6.20k | } | 732 | 6.20k | } | 733 | | | 734 | 6.57k | if (!need_more_input_data(state)) { | 735 | 6.57k | SCOPED_TIMER(local_state.exec_time_counter()); | 736 | 6.57k | bool new_eos = false; | 737 | 6.57k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 738 | 6.57k | if (new_eos) { | 739 | 4.67k | *eos = true; | 740 | 4.67k | } else if (!need_more_input_data(state)) { | 741 | 374 | *eos = false; | 742 | 374 | } | 743 | 6.57k | } | 744 | 6.57k | return Status::OK(); | 745 | 6.57k | } |
|
746 | | |
747 | | template <typename Writer, typename Parent> |
748 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
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_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 359 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 359 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 359 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 359 | "AsyncWriterDependency", true); | 753 | 359 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 359 | _finish_dependency)); | 755 | | | 756 | 359 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 359 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 359 | return Status::OK(); | 759 | 359 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 66.5k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 66.5k | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 66.5k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 66.5k | "AsyncWriterDependency", true); | 753 | 66.5k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 66.5k | _finish_dependency)); | 755 | | | 756 | 66.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 66.5k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 66.5k | return Status::OK(); | 759 | 66.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 749 | 17 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 750 | 17 | RETURN_IF_ERROR(Base::init(state, info)); | 751 | 17 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 752 | 17 | "AsyncWriterDependency", true); | 753 | 17 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 754 | 17 | _finish_dependency)); | 755 | | | 756 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 757 | 17 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 758 | 17 | return Status::OK(); | 759 | 17 | } |
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.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
764 | 67.1k | RETURN_IF_ERROR(Base::open(state)); |
765 | 67.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
766 | 474k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
767 | 407k | RETURN_IF_ERROR( |
768 | 407k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
769 | 407k | } |
770 | 67.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
771 | 67.1k | return Status::OK(); |
772 | 67.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 360 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 360 | RETURN_IF_ERROR(Base::open(state)); | 765 | 360 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 1.84k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 1.48k | RETURN_IF_ERROR( | 768 | 1.48k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 1.48k | } | 770 | 360 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 360 | return Status::OK(); | 772 | 360 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 66.7k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 66.7k | RETURN_IF_ERROR(Base::open(state)); | 765 | 66.7k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 472k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 406k | RETURN_IF_ERROR( | 768 | 406k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 406k | } | 770 | 66.7k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 66.7k | return Status::OK(); | 772 | 66.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 763 | 17 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 764 | 17 | RETURN_IF_ERROR(Base::open(state)); | 765 | 17 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 766 | 306 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 767 | 289 | RETURN_IF_ERROR( | 768 | 289 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 769 | 289 | } | 770 | 17 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 771 | 17 | return Status::OK(); | 772 | 17 | } |
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.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
777 | 79.6k | return _writer->sink(block, eos); |
778 | 79.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 1.35k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 1.35k | return _writer->sink(block, eos); | 778 | 1.35k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 78.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 78.3k | return _writer->sink(block, eos); | 778 | 78.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 776 | 17 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 777 | 17 | return _writer->sink(block, eos); | 778 | 17 | } |
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 | 67.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
783 | 67.2k | if (_closed) { |
784 | 0 | return Status::OK(); |
785 | 0 | } |
786 | 67.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
787 | 67.2k | 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.2k | if (_writer) { |
790 | 67.2k | Status st = _writer->get_writer_status(); |
791 | 67.2k | if (exec_status.ok()) { |
792 | 67.1k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
793 | 67.1k | : Status::Cancelled("force close")); |
794 | 67.1k | } else { |
795 | 130 | _writer->force_close(exec_status); |
796 | 130 | } |
797 | | // If there is an error in process_block thread, then we should get the writer |
798 | | // status before call force_close. For example, the thread may failed in commit |
799 | | // transaction. |
800 | 67.2k | RETURN_IF_ERROR(st); |
801 | 67.2k | } |
802 | 67.2k | return Base::close(state, exec_status); |
803 | 67.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 349 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 349 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 349 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 349 | 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 | 349 | if (_writer) { | 790 | 349 | Status st = _writer->get_writer_status(); | 791 | 349 | if (exec_status.ok()) { | 792 | 349 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 349 | : Status::Cancelled("force close")); | 794 | 349 | } 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 | 349 | RETURN_IF_ERROR(st); | 801 | 349 | } | 802 | 349 | return Base::close(state, exec_status); | 803 | 349 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 66.9k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 66.9k | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 66.9k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 66.9k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 788 | | // if the init failed, the _writer may be nullptr. so here need check | 789 | 66.9k | if (_writer) { | 790 | 66.9k | Status st = _writer->get_writer_status(); | 791 | 66.9k | if (exec_status.ok()) { | 792 | 66.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 66.7k | : Status::Cancelled("force close")); | 794 | 66.7k | } else { | 795 | 130 | _writer->force_close(exec_status); | 796 | 130 | } | 797 | | // If there is an error in process_block thread, then we should get the writer | 798 | | // status before call force_close. For example, the thread may failed in commit | 799 | | // transaction. | 800 | 66.9k | RETURN_IF_ERROR(st); | 801 | 66.9k | } | 802 | 66.8k | return Base::close(state, exec_status); | 803 | 66.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 782 | 17 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 783 | 17 | if (_closed) { | 784 | 0 | return Status::OK(); | 785 | 0 | } | 786 | 17 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 787 | 17 | 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 | 17 | if (_writer) { | 790 | 17 | Status st = _writer->get_writer_status(); | 791 | 17 | if (exec_status.ok()) { | 792 | 17 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 793 | 17 | : Status::Cancelled("force close")); | 794 | 17 | } 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 | 17 | RETURN_IF_ERROR(st); | 801 | 17 | } | 802 | 17 | return Base::close(state, exec_status); | 803 | 17 | } |
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 |