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/bucketed_aggregation_sink_operator.h" |
31 | | #include "exec/operator/bucketed_aggregation_source_operator.h" |
32 | | #include "exec/operator/cache_sink_operator.h" |
33 | | #include "exec/operator/cache_source_operator.h" |
34 | | #include "exec/operator/datagen_operator.h" |
35 | | #include "exec/operator/dict_sink_operator.h" |
36 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
37 | | #include "exec/operator/empty_set_operator.h" |
38 | | #include "exec/operator/exchange_sink_operator.h" |
39 | | #include "exec/operator/exchange_source_operator.h" |
40 | | #include "exec/operator/file_scan_operator.h" |
41 | | #include "exec/operator/group_commit_block_sink_operator.h" |
42 | | #include "exec/operator/group_commit_scan_operator.h" |
43 | | #include "exec/operator/hashjoin_build_sink.h" |
44 | | #include "exec/operator/hashjoin_probe_operator.h" |
45 | | #include "exec/operator/hive_table_sink_operator.h" |
46 | | #include "exec/operator/iceberg_delete_sink_operator.h" |
47 | | #include "exec/operator/iceberg_merge_sink_operator.h" |
48 | | #include "exec/operator/iceberg_table_sink_operator.h" |
49 | | #include "exec/operator/jdbc_scan_operator.h" |
50 | | #include "exec/operator/jdbc_table_sink_operator.h" |
51 | | #include "exec/operator/local_merge_sort_source_operator.h" |
52 | | #include "exec/operator/materialization_opertor.h" |
53 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
54 | | #include "exec/operator/memory_scratch_sink_operator.h" |
55 | | #include "exec/operator/meta_scan_operator.h" |
56 | | #include "exec/operator/mock_operator.h" |
57 | | #include "exec/operator/mock_scan_operator.h" |
58 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
59 | | #include "exec/operator/multi_cast_data_stream_source.h" |
60 | | #include "exec/operator/nested_loop_join_build_operator.h" |
61 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
62 | | #include "exec/operator/olap_scan_operator.h" |
63 | | #include "exec/operator/olap_table_sink_operator.h" |
64 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
65 | | #include "exec/operator/partition_sort_sink_operator.h" |
66 | | #include "exec/operator/partition_sort_source_operator.h" |
67 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
68 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
69 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
70 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
71 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
72 | | #include "exec/operator/rec_cte_scan_operator.h" |
73 | | #include "exec/operator/rec_cte_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_source_operator.h" |
75 | | #include "exec/operator/repeat_operator.h" |
76 | | #include "exec/operator/result_file_sink_operator.h" |
77 | | #include "exec/operator/result_sink_operator.h" |
78 | | #include "exec/operator/schema_scan_operator.h" |
79 | | #include "exec/operator/select_operator.h" |
80 | | #include "exec/operator/set_probe_sink_operator.h" |
81 | | #include "exec/operator/set_sink_operator.h" |
82 | | #include "exec/operator/set_source_operator.h" |
83 | | #include "exec/operator/sort_sink_operator.h" |
84 | | #include "exec/operator/sort_source_operator.h" |
85 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
86 | | #include "exec/operator/spill_sort_sink_operator.h" |
87 | | #include "exec/operator/spill_sort_source_operator.h" |
88 | | #include "exec/operator/streaming_aggregation_operator.h" |
89 | | #include "exec/operator/table_function_operator.h" |
90 | | #include "exec/operator/tvf_table_sink_operator.h" |
91 | | #include "exec/operator/union_sink_operator.h" |
92 | | #include "exec/operator/union_source_operator.h" |
93 | | #include "exec/pipeline/dependency.h" |
94 | | #include "exec/pipeline/pipeline.h" |
95 | | #include "exprs/vexpr.h" |
96 | | #include "exprs/vexpr_context.h" |
97 | | #include "runtime/runtime_profile.h" |
98 | | #include "runtime/runtime_profile_counter_names.h" |
99 | | #include "util/debug_util.h" |
100 | | #include "util/string_util.h" |
101 | | |
102 | | namespace doris { |
103 | | class RowDescriptor; |
104 | | class RuntimeState; |
105 | | } // namespace doris |
106 | | |
107 | | namespace doris { |
108 | | |
109 | 0 | Status OperatorBase::close(RuntimeState* state) { |
110 | 0 | if (_is_closed) { |
111 | 0 | return Status::OK(); |
112 | 0 | } |
113 | 0 | _is_closed = true; |
114 | 0 | return Status::OK(); |
115 | 0 | } |
116 | | |
117 | | template <typename SharedStateArg> |
118 | 2.13M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.13M | if (_parent->nereids_id() == -1) { |
120 | 1.12M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.12M | } else { |
122 | 1.00M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 1.00M | } |
124 | 2.13M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 63.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 63.8k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 63.8k | } else { | 122 | 63.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 63.8k | } | 124 | 63.8k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 1 | if (_parent->nereids_id() == -1) { | 120 | 1 | return fmt::format("(id={})", _parent->node_id()); | 121 | 1 | } else { | 122 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 0 | } | 124 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 229k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 229k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 229k | } else { | 122 | 229k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 229k | } | 124 | 229k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 24 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 24 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 24 | } else { | 122 | 24 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 24 | } | 124 | 24 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 8.81k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 8.81k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 8.81k | } else { | 122 | 8.81k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 8.81k | } | 124 | 8.81k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 7.92k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 7.92k | if (_parent->nereids_id() == -1) { | 120 | 9 | return fmt::format("(id={})", _parent->node_id()); | 121 | 7.91k | } else { | 122 | 7.91k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 7.91k | } | 124 | 7.92k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 159k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 159k | if (_parent->nereids_id() == -1) { | 120 | 29 | return fmt::format("(id={})", _parent->node_id()); | 121 | 159k | } else { | 122 | 159k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 159k | } | 124 | 159k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 324 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 324 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 324 | } else { | 122 | 324 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 324 | } | 124 | 324 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 208 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 208 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 208 | } else { | 122 | 208 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 208 | } | 124 | 208 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 853k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 853k | if (_parent->nereids_id() == -1) { | 120 | 373k | return fmt::format("(id={})", _parent->node_id()); | 121 | 479k | } else { | 122 | 479k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 479k | } | 124 | 853k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 54.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 54.3k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 54.3k | } else { | 122 | 54.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 54.3k | } | 124 | 54.3k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 17 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 17 | if (_parent->nereids_id() == -1) { | 120 | 17 | return fmt::format("(id={})", _parent->node_id()); | 121 | 17 | } else { | 122 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 0 | } | 124 | 17 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.11k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.11k | if (_parent->nereids_id() == -1) { | 120 | 9.11k | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.11k | } else { | 122 | 2 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 2 | } | 124 | 9.11k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 476 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 476 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 374 | } else { | 122 | 374 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 374 | } | 124 | 476 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.42k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.42k | if (_parent->nereids_id() == -1) { | 120 | 13 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.40k | } else { | 122 | 4.40k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.40k | } | 124 | 4.42k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 742k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 742k | if (_parent->nereids_id() == -1) { | 120 | 741k | return fmt::format("(id={})", _parent->node_id()); | 121 | 741k | } else { | 122 | 894 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 894 | } | 124 | 742k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 151 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 151 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 151 | } else { | 122 | 151 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 151 | } | 124 | 151 | } |
|
125 | | |
126 | | template <typename SharedStateArg> |
127 | 1.34M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.34M | if (_parent->nereids_id() == -1) { |
129 | 817k | return fmt::format("(id={})", _parent->node_id()); |
130 | 817k | } else { |
131 | 525k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 525k | } |
133 | 1.34M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 112k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 112k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 112k | } else { | 131 | 112k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 112k | } | 133 | 112k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 2 | if (_parent->nereids_id() == -1) { | 129 | 1 | return fmt::format("(id={})", _parent->node_id()); | 130 | 1 | } else { | 131 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 1 | } | 133 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 230k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 230k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 230k | } else { | 131 | 230k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 230k | } | 133 | 230k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 30 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 30 | } else { | 131 | 30 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 30 | } | 133 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 8.83k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 8.83k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 8.83k | } else { | 131 | 8.83k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 8.83k | } | 133 | 8.83k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 7.95k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 7.95k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 7.94k | } else { | 131 | 7.94k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 7.94k | } | 133 | 7.95k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 159k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 159k | if (_parent->nereids_id() == -1) { | 129 | 29 | return fmt::format("(id={})", _parent->node_id()); | 130 | 159k | } else { | 131 | 159k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 159k | } | 133 | 159k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 265 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 265 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 265 | } else { | 131 | 265 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 265 | } | 133 | 265 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 218 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 218 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 218 | } else { | 131 | 218 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 218 | } | 133 | 218 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 127 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 127 | if (_parent->nereids_id() == -1) { | 129 | 127 | return fmt::format("(id={})", _parent->node_id()); | 130 | 127 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 127 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 5.13k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 5.13k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 5.13k | } else { | 131 | 5.13k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 5.13k | } | 133 | 5.13k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 481 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 481 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 379 | } else { | 131 | 379 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 379 | } | 133 | 481 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 12.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 12.0k | if (_parent->nereids_id() == -1) { | 129 | 12.0k | return fmt::format("(id={})", _parent->node_id()); | 130 | 12.0k | } else { | 131 | 11 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 11 | } | 133 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 312k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 312k | if (_parent->nereids_id() == -1) { | 129 | 312k | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 312k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 493k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 493k | if (_parent->nereids_id() == -1) { | 129 | 493k | return fmt::format("(id={})", _parent->node_id()); | 130 | 493k | } else { | 131 | 192 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 192 | } | 133 | 493k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 17 | if (_parent->nereids_id() == -1) { | 129 | 17 | return fmt::format("(id={})", _parent->node_id()); | 130 | 17 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 301 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 301 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 301 | } else { | 131 | 301 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 301 | } | 133 | 301 | } |
|
134 | | |
135 | | template <typename SharedStateArg> |
136 | 36.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 36.0k | if (_terminated) { |
138 | 2 | return Status::OK(); |
139 | 2 | } |
140 | 36.0k | _terminated = true; |
141 | 36.0k | return Status::OK(); |
142 | 36.0k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 24.0k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 24.0k | _terminated = true; | 141 | 24.0k | return Status::OK(); | 142 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 2.99k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2.99k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2.99k | _terminated = true; | 141 | 2.99k | return Status::OK(); | 142 | 2.99k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 7 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 7 | _terminated = true; | 141 | 7 | return Status::OK(); | 142 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 7.29k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 7.29k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 7.29k | _terminated = true; | 141 | 7.29k | return Status::OK(); | 142 | 7.29k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 3 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 3 | _terminated = true; | 141 | 3 | return Status::OK(); | 142 | 3 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 771 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 771 | if (_terminated) { | 138 | 2 | return Status::OK(); | 139 | 2 | } | 140 | 769 | _terminated = true; | 141 | 769 | return Status::OK(); | 142 | 771 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 7 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 7 | _terminated = true; | 141 | 7 | return Status::OK(); | 142 | 7 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 626 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 626 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 626 | _terminated = true; | 141 | 626 | return Status::OK(); | 142 | 626 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 12 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 12 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 12 | _terminated = true; | 141 | 12 | return Status::OK(); | 142 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 162 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 162 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 162 | _terminated = true; | 141 | 162 | return Status::OK(); | 142 | 162 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 142 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 142 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 142 | _terminated = true; | 141 | 142 | return Status::OK(); | 142 | 142 | } |
|
143 | | |
144 | 843k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 843k | return _child && _child->is_serial_operator() && !is_source() |
146 | 843k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 843k | : DataDistribution(ExchangeType::NOOP); |
148 | 843k | } |
149 | | |
150 | 12.8k | bool OperatorBase::is_hash_shuffle(ExchangeType exchange_type) { |
151 | 12.8k | return exchange_type == ExchangeType::HASH_SHUFFLE || |
152 | 12.8k | exchange_type == ExchangeType::BUCKET_HASH_SHUFFLE; |
153 | 12.8k | } |
154 | | |
155 | 69.6k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
156 | 69.6k | if (!_child) { |
157 | 23.6k | return false; |
158 | 23.6k | } |
159 | 46.0k | if (_child->is_serial_operator()) { |
160 | 31.9k | return true; |
161 | 31.9k | } |
162 | 14.0k | const auto child_distribution = _child->required_data_distribution(state); |
163 | 14.0k | return child_distribution.need_local_exchange() && |
164 | 14.0k | !is_hash_shuffle(child_distribution.distribution_type); |
165 | 46.0k | } |
166 | | |
167 | 81.7k | const RowDescriptor& OperatorBase::row_desc() const { |
168 | 81.7k | return _child->row_desc(); |
169 | 81.7k | } |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 20.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 20.7k | fmt::memory_buffer debug_string_buffer; |
174 | 20.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 20.7k | return fmt::to_string(debug_string_buffer); |
176 | 20.7k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 32 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 32 | fmt::memory_buffer debug_string_buffer; | 174 | 32 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 32 | return fmt::to_string(debug_string_buffer); | 176 | 32 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 3 | fmt::memory_buffer debug_string_buffer; | 174 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 3 | return fmt::to_string(debug_string_buffer); | 176 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 12 | fmt::memory_buffer debug_string_buffer; | 174 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 12 | return fmt::to_string(debug_string_buffer); | 176 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 12 | fmt::memory_buffer debug_string_buffer; | 174 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 12 | return fmt::to_string(debug_string_buffer); | 176 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 24 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 24 | fmt::memory_buffer debug_string_buffer; | 174 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 24 | return fmt::to_string(debug_string_buffer); | 176 | 24 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 20.6k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 20.6k | fmt::memory_buffer debug_string_buffer; | 174 | 20.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 20.6k | return fmt::to_string(debug_string_buffer); | 176 | 20.6k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 1 | fmt::memory_buffer debug_string_buffer; | 174 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 1 | return fmt::to_string(debug_string_buffer); | 176 | 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 | 172 | 24 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 24 | fmt::memory_buffer debug_string_buffer; | 174 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 24 | return fmt::to_string(debug_string_buffer); | 176 | 24 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | | template <typename SharedStateArg> |
179 | 20.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
180 | 20.7k | fmt::memory_buffer debug_string_buffer; |
181 | 20.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
182 | 20.7k | return fmt::to_string(debug_string_buffer); |
183 | 20.7k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 8 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 8 | fmt::memory_buffer debug_string_buffer; | 181 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 8 | return fmt::to_string(debug_string_buffer); | 183 | 8 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 12 | fmt::memory_buffer debug_string_buffer; | 181 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 12 | return fmt::to_string(debug_string_buffer); | 183 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 24 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 24 | fmt::memory_buffer debug_string_buffer; | 181 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 24 | return fmt::to_string(debug_string_buffer); | 183 | 24 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 28 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 28 | fmt::memory_buffer debug_string_buffer; | 181 | 28 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 28 | return fmt::to_string(debug_string_buffer); | 183 | 28 | } |
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 | 179 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 12 | fmt::memory_buffer debug_string_buffer; | 181 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 12 | return fmt::to_string(debug_string_buffer); | 183 | 12 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 20.6k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 20.6k | fmt::memory_buffer debug_string_buffer; | 181 | 20.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 20.6k | return fmt::to_string(debug_string_buffer); | 183 | 20.6k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
184 | | |
185 | 21.0k | std::string OperatorXBase::debug_string(int indentation_level) const { |
186 | 21.0k | fmt::memory_buffer debug_string_buffer; |
187 | 21.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
188 | 21.0k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
189 | 21.0k | _is_serial_operator); |
190 | 21.0k | return fmt::to_string(debug_string_buffer); |
191 | 21.0k | } |
192 | | |
193 | 20.7k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
194 | 20.7k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
195 | 20.7k | } |
196 | | |
197 | 724k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
198 | 724k | std::string node_name = print_plan_node_type(tnode.node_type); |
199 | 724k | _nereids_id = tnode.nereids_id; |
200 | 724k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
201 | 3.73k | if (!tnode.__isset.output_tuple_id) { |
202 | 0 | return Status::InternalError("no final output tuple id"); |
203 | 0 | } |
204 | 3.73k | if (tnode.intermediate_output_tuple_id_list.size() != |
205 | 3.73k | tnode.intermediate_projections_list.size()) { |
206 | 0 | return Status::InternalError( |
207 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
208 | 0 | "intermediate_projections_list size:{}", |
209 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
210 | 0 | tnode.intermediate_projections_list.size()); |
211 | 0 | } |
212 | 3.73k | } |
213 | 724k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
214 | 724k | _op_name = substr + "_OPERATOR"; |
215 | | |
216 | 724k | if (tnode.__isset.vconjunct) { |
217 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
218 | 724k | } else if (tnode.__isset.conjuncts) { |
219 | 444k | for (const auto& conjunct : tnode.conjuncts) { |
220 | 444k | VExprContextSPtr context; |
221 | 444k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
222 | 444k | _conjuncts.emplace_back(context); |
223 | 444k | } |
224 | 144k | } |
225 | | |
226 | | // create the projections expr |
227 | 724k | if (tnode.__isset.projections) { |
228 | 313k | DCHECK(tnode.__isset.output_tuple_id); |
229 | 313k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
230 | 313k | } |
231 | 724k | if (!tnode.intermediate_projections_list.empty()) { |
232 | 3.74k | DCHECK(tnode.__isset.projections) << "no final projections"; |
233 | 3.74k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
234 | 7.67k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
235 | 7.67k | VExprContextSPtrs projections; |
236 | 7.67k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
237 | 7.67k | _intermediate_projections.push_back(projections); |
238 | 7.67k | } |
239 | 3.74k | } |
240 | 724k | return Status::OK(); |
241 | 724k | } |
242 | | |
243 | 756k | Status OperatorXBase::prepare(RuntimeState* state) { |
244 | 756k | for (auto& conjunct : _conjuncts) { |
245 | 443k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
246 | 443k | } |
247 | 756k | if (state->enable_adjust_conjunct_order_by_cost()) { |
248 | 704k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
249 | 598k | return a->execute_cost() < b->execute_cost(); |
250 | 598k | }); |
251 | 704k | }; |
252 | | |
253 | 764k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
254 | 7.67k | RETURN_IF_ERROR( |
255 | 7.67k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
256 | 7.67k | } |
257 | 756k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
258 | | |
259 | 756k | if (has_output_row_desc()) { |
260 | 313k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
261 | 313k | } |
262 | | |
263 | 756k | for (auto& conjunct : _conjuncts) { |
264 | 443k | RETURN_IF_ERROR(conjunct->open(state)); |
265 | 443k | } |
266 | 756k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
267 | 756k | for (auto& projections : _intermediate_projections) { |
268 | 7.67k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
269 | 7.67k | } |
270 | 756k | if (_child && !is_source()) { |
271 | 140k | RETURN_IF_ERROR(_child->prepare(state)); |
272 | 140k | } |
273 | | |
274 | 756k | if (VExpr::contains_blockable_function(_conjuncts) || |
275 | 756k | VExpr::contains_blockable_function(_projections)) { |
276 | 0 | _blockable = true; |
277 | 0 | } |
278 | | |
279 | 756k | return Status::OK(); |
280 | 756k | } |
281 | | |
282 | 14.2k | Status OperatorXBase::terminate(RuntimeState* state) { |
283 | 14.2k | if (_child && !is_source()) { |
284 | 2.16k | RETURN_IF_ERROR(_child->terminate(state)); |
285 | 2.16k | } |
286 | 14.2k | auto result = state->get_local_state_result(operator_id()); |
287 | 14.2k | if (!result) { |
288 | 0 | return result.error(); |
289 | 0 | } |
290 | 14.2k | return result.value()->terminate(state); |
291 | 14.2k | } |
292 | | |
293 | 5.97M | Status OperatorXBase::close(RuntimeState* state) { |
294 | 5.97M | if (_child && !is_source()) { |
295 | 1.08M | RETURN_IF_ERROR(_child->close(state)); |
296 | 1.08M | } |
297 | 5.97M | auto result = state->get_local_state_result(operator_id()); |
298 | 5.97M | if (!result) { |
299 | 0 | return result.error(); |
300 | 0 | } |
301 | 5.97M | return result.value()->close(state); |
302 | 5.97M | } |
303 | | |
304 | 274k | void PipelineXLocalStateBase::clear_origin_block() { |
305 | 274k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
306 | 274k | } |
307 | | |
308 | 611k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
309 | 611k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
310 | | |
311 | 611k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
312 | 611k | return Status::OK(); |
313 | 611k | } |
314 | | |
315 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
316 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
317 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
318 | 0 | } |
319 | | |
320 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
321 | 274k | Block* output_block) const { |
322 | 274k | auto* local_state = state->get_local_state(operator_id()); |
323 | 274k | SCOPED_TIMER(local_state->exec_time_counter()); |
324 | 274k | SCOPED_TIMER(local_state->_projection_timer); |
325 | 274k | const size_t rows = origin_block->rows(); |
326 | 274k | if (rows == 0) { |
327 | 138k | return Status::OK(); |
328 | 138k | } |
329 | 135k | Block input_block = *origin_block; |
330 | | |
331 | 135k | size_t bytes_usage = 0; |
332 | 135k | ColumnsWithTypeAndName new_columns; |
333 | 135k | for (const auto& projections : local_state->_intermediate_projections) { |
334 | 1.28k | if (projections.empty()) { |
335 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
336 | 0 | node_id()); |
337 | 0 | } |
338 | 1.28k | new_columns.resize(projections.size()); |
339 | 9.18k | for (int i = 0; i < projections.size(); i++) { |
340 | 7.89k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
341 | 7.89k | if (new_columns[i].column->size() != rows) { |
342 | 0 | return Status::InternalError( |
343 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
344 | 0 | "expr: {}", |
345 | 0 | new_columns[i].column->size(), rows, |
346 | 0 | projections[i]->root()->debug_string()); |
347 | 0 | } |
348 | 7.89k | } |
349 | 1.28k | Block tmp_block {new_columns}; |
350 | 1.28k | bytes_usage += tmp_block.allocated_bytes(); |
351 | 1.28k | input_block.swap(tmp_block); |
352 | 1.28k | } |
353 | | |
354 | 135k | if (input_block.rows() != rows) { |
355 | 0 | return Status::InternalError( |
356 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
357 | 0 | "input_block: {}", |
358 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
359 | 0 | } |
360 | 648k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
361 | 648k | if (to->is_nullable() && !from->is_nullable()) { |
362 | 0 | if (_keep_origin || !from->is_exclusive()) { |
363 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
364 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
365 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
366 | 0 | bytes_usage += null_column.allocated_bytes(); |
367 | 0 | } else { |
368 | 0 | to = make_nullable(from, false)->assert_mutable(); |
369 | 0 | } |
370 | 648k | } else { |
371 | 648k | if (_keep_origin || !from->is_exclusive()) { |
372 | 636k | to->insert_range_from(*from, 0, rows); |
373 | 636k | bytes_usage += from->allocated_bytes(); |
374 | 636k | } else { |
375 | 11.9k | to = from->assert_mutable(); |
376 | 11.9k | } |
377 | 648k | } |
378 | 648k | }; |
379 | | |
380 | 135k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
381 | 135k | output_block, *_output_row_descriptor); |
382 | 135k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
383 | 135k | auto& mutable_columns = mutable_block.mutable_columns(); |
384 | 135k | if (rows != 0) { |
385 | 135k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
386 | 784k | for (int i = 0; i < mutable_columns.size(); ++i) { |
387 | 648k | ColumnPtr column_ptr; |
388 | 648k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
389 | 648k | if (column_ptr->size() != rows) { |
390 | 0 | return Status::InternalError( |
391 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
392 | 0 | column_ptr->size(), rows, |
393 | 0 | local_state->_projections[i]->root()->debug_string()); |
394 | 0 | } |
395 | 648k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
396 | 648k | bytes_usage += column_ptr->allocated_bytes(); |
397 | 648k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
398 | 648k | } |
399 | 135k | DCHECK(mutable_block.rows() == rows); |
400 | 135k | } |
401 | 135k | local_state->_estimate_memory_usage += bytes_usage; |
402 | | |
403 | 135k | return Status::OK(); |
404 | 135k | } |
405 | | |
406 | 4.69M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
407 | 4.69M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
408 | 4.69M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
409 | 4.69M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
410 | 4.69M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
411 | 4.69M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
412 | 4.69M | if (_debug_point_count++ % 2 == 0) { |
413 | 4.69M | return Status::OK(); |
414 | 4.69M | } |
415 | 4.69M | } |
416 | 4.69M | }); |
417 | | |
418 | 4.69M | Status status; |
419 | 4.69M | auto* local_state = state->get_local_state(operator_id()); |
420 | 4.69M | Defer defer([&]() { |
421 | 4.69M | if (status.ok()) { |
422 | 4.69M | local_state->update_output_block_counters(*block); |
423 | 4.69M | } |
424 | 4.69M | }); |
425 | 4.69M | if (_output_row_descriptor) { |
426 | 274k | local_state->clear_origin_block(); |
427 | 274k | status = get_block(state, &local_state->_origin_block, eos); |
428 | 274k | if (UNLIKELY(!status.ok())) { |
429 | 19 | return status; |
430 | 19 | } |
431 | 274k | status = do_projections(state, &local_state->_origin_block, block); |
432 | 274k | return status; |
433 | 274k | } |
434 | 4.42M | status = get_block(state, block, eos); |
435 | 4.42M | RETURN_IF_ERROR(block->check_type_and_column()); |
436 | 4.42M | return status; |
437 | 4.42M | } |
438 | | |
439 | 3.02M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
440 | 3.02M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
441 | 6.50k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
442 | 6.50k | *eos = true; |
443 | 6.50k | } |
444 | | |
445 | 3.02M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
446 | 3.02M | auto op_name = to_lower(_parent->_op_name); |
447 | 3.02M | auto arg_op_name = dp->param<std::string>("op_name"); |
448 | 3.02M | arg_op_name = to_lower(arg_op_name); |
449 | | |
450 | 3.02M | if (op_name == arg_op_name) { |
451 | 3.02M | *eos = true; |
452 | 3.02M | } |
453 | 3.02M | }); |
454 | | |
455 | 3.02M | if (auto rows = block->rows()) { |
456 | 837k | _num_rows_returned += rows; |
457 | 837k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
458 | 837k | } |
459 | 3.02M | } |
460 | | |
461 | 36.0k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
462 | 36.0k | auto result = state->get_sink_local_state_result(); |
463 | 36.0k | if (!result) { |
464 | 0 | return result.error(); |
465 | 0 | } |
466 | 36.0k | return result.value()->terminate(state); |
467 | 36.0k | } |
468 | | |
469 | 20.9k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
470 | 20.9k | fmt::memory_buffer debug_string_buffer; |
471 | | |
472 | 20.9k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
473 | 20.9k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
474 | 20.9k | return fmt::to_string(debug_string_buffer); |
475 | 20.9k | } |
476 | | |
477 | 20.7k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
478 | 20.7k | return state->get_sink_local_state()->debug_string(indentation_level); |
479 | 20.7k | } |
480 | | |
481 | 453k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
482 | 453k | std::string op_name = "UNKNOWN_SINK"; |
483 | 453k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
484 | | |
485 | 453k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
486 | 453k | op_name = it->second; |
487 | 453k | } |
488 | 453k | _name = op_name + "_OPERATOR"; |
489 | 453k | return Status::OK(); |
490 | 453k | } |
491 | | |
492 | 207k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
493 | 207k | std::string op_name = print_plan_node_type(tnode.node_type); |
494 | 207k | _nereids_id = tnode.nereids_id; |
495 | 207k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
496 | 207k | _name = substr + "_SINK_OPERATOR"; |
497 | 207k | return Status::OK(); |
498 | 207k | } |
499 | | |
500 | | template <typename LocalStateType> |
501 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
502 | 1.99M | LocalSinkStateInfo& info) { |
503 | 1.99M | auto local_state = LocalStateType::create_unique(this, state); |
504 | 1.99M | RETURN_IF_ERROR(local_state->init(state, info)); |
505 | 1.99M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
506 | 1.99M | return Status::OK(); |
507 | 1.99M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 112k | LocalSinkStateInfo& info) { | 503 | 112k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 112k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 112k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 112k | return Status::OK(); | 507 | 112k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 431k | LocalSinkStateInfo& info) { | 503 | 431k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 431k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 431k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 431k | return Status::OK(); | 507 | 431k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 88 | LocalSinkStateInfo& info) { | 503 | 88 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 88 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 88 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 88 | return Status::OK(); | 507 | 88 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 3 | LocalSinkStateInfo& info) { | 503 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 3 | return Status::OK(); | 507 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 514 | LocalSinkStateInfo& info) { | 503 | 514 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 514 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 514 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 514 | return Status::OK(); | 507 | 514 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 44.0k | LocalSinkStateInfo& info) { | 503 | 44.0k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 44.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 44.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 44.0k | return Status::OK(); | 507 | 44.0k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 8.99k | LocalSinkStateInfo& info) { | 503 | 8.99k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 8.99k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 8.99k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 8.99k | return Status::OK(); | 507 | 8.99k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 5.15k | LocalSinkStateInfo& info) { | 503 | 5.15k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 5.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 5.15k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 5.15k | return Status::OK(); | 507 | 5.15k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 156 | LocalSinkStateInfo& info) { | 503 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 156 | return Status::OK(); | 507 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 3.38k | LocalSinkStateInfo& info) { | 503 | 3.38k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 3.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 3.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 3.38k | return Status::OK(); | 507 | 3.38k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 160 | LocalSinkStateInfo& info) { | 503 | 160 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 160 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 160 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 160 | return Status::OK(); | 507 | 160 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 640 | LocalSinkStateInfo& info) { | 503 | 640 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 640 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 640 | return Status::OK(); | 507 | 640 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 7.95k | LocalSinkStateInfo& info) { | 503 | 7.95k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 7.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 7.95k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 7.95k | return Status::OK(); | 507 | 7.95k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 124 | LocalSinkStateInfo& info) { | 503 | 124 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 124 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 124 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 124 | return Status::OK(); | 507 | 124 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 231k | LocalSinkStateInfo& info) { | 503 | 231k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 231k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 231k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 231k | return Status::OK(); | 507 | 231k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 30 | LocalSinkStateInfo& info) { | 503 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 30 | return Status::OK(); | 507 | 30 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 312k | LocalSinkStateInfo& info) { | 503 | 312k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 312k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 312k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 312k | return Status::OK(); | 507 | 312k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 159k | LocalSinkStateInfo& info) { | 503 | 159k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 159k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 159k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 159k | return Status::OK(); | 507 | 159k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 265 | LocalSinkStateInfo& info) { | 503 | 265 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 265 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 265 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 265 | return Status::OK(); | 507 | 265 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 218 | LocalSinkStateInfo& info) { | 503 | 218 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 218 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 218 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 218 | return Status::OK(); | 507 | 218 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 649k | LocalSinkStateInfo& info) { | 503 | 649k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 649k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 649k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 649k | return Status::OK(); | 507 | 649k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 8.83k | LocalSinkStateInfo& info) { | 503 | 8.83k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 8.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 8.83k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 8.83k | return Status::OK(); | 507 | 8.83k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 5.13k | LocalSinkStateInfo& info) { | 503 | 5.13k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 5.13k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 5.13k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 5.13k | return Status::OK(); | 507 | 5.13k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 3.24k | LocalSinkStateInfo& info) { | 503 | 3.24k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 3.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 3.24k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 3.24k | return Status::OK(); | 507 | 3.24k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 379 | LocalSinkStateInfo& info) { | 503 | 379 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 379 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 379 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 379 | return Status::OK(); | 507 | 379 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 4.62k | LocalSinkStateInfo& info) { | 503 | 4.62k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 4.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 4.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 4.62k | return Status::OK(); | 507 | 4.62k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.47k | LocalSinkStateInfo& info) { | 503 | 2.47k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.47k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.47k | return Status::OK(); | 507 | 2.47k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.45k | LocalSinkStateInfo& info) { | 503 | 2.45k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.45k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.45k | return Status::OK(); | 507 | 2.45k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.43k | LocalSinkStateInfo& info) { | 503 | 2.43k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.43k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.43k | return Status::OK(); | 507 | 2.43k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 1 | LocalSinkStateInfo& info) { | 503 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 1 | return Status::OK(); | 507 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 166 | LocalSinkStateInfo& info) { | 503 | 166 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 166 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 166 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 166 | return Status::OK(); | 507 | 166 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 14 | LocalSinkStateInfo& info) { | 503 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 14 | return Status::OK(); | 507 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 105 | LocalSinkStateInfo& info) { | 503 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 105 | return Status::OK(); | 507 | 105 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 151 | LocalSinkStateInfo& info) { | 503 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 151 | return Status::OK(); | 507 | 151 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 151 | LocalSinkStateInfo& info) { | 503 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 151 | return Status::OK(); | 507 | 151 | } |
|
508 | | |
509 | | template <typename LocalStateType> |
510 | 1.65M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
512 | 0 | LocalExchangeSharedState>) { |
513 | 0 | return nullptr; |
514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
515 | 0 | MultiCastSharedState>) { |
516 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
517 | 1.65M | } else { |
518 | 1.65M | auto ss = LocalStateType::SharedStateType::create_shared(); |
519 | 1.65M | ss->id = operator_id(); |
520 | 1.65M | for (auto& dest : dests_id()) { |
521 | 1.64M | ss->related_op_ids.insert(dest); |
522 | 1.64M | } |
523 | 1.65M | return ss; |
524 | 1.65M | } |
525 | 1.65M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 95.5k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 95.5k | } else { | 518 | 95.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 95.5k | ss->id = operator_id(); | 520 | 95.5k | for (auto& dest : dests_id()) { | 521 | 95.4k | ss->related_op_ids.insert(dest); | 522 | 95.4k | } | 523 | 95.5k | return ss; | 524 | 95.5k | } | 525 | 95.5k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 431k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 431k | } else { | 518 | 431k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 431k | ss->id = operator_id(); | 520 | 431k | for (auto& dest : dests_id()) { | 521 | 429k | ss->related_op_ids.insert(dest); | 522 | 429k | } | 523 | 431k | return ss; | 524 | 431k | } | 525 | 431k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 88 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 88 | } else { | 518 | 88 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 88 | ss->id = operator_id(); | 520 | 88 | for (auto& dest : dests_id()) { | 521 | 88 | ss->related_op_ids.insert(dest); | 522 | 88 | } | 523 | 88 | return ss; | 524 | 88 | } | 525 | 88 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 3 | } else { | 518 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 3 | ss->id = operator_id(); | 520 | 3 | for (auto& dest : dests_id()) { | 521 | 3 | ss->related_op_ids.insert(dest); | 522 | 3 | } | 523 | 3 | return ss; | 524 | 3 | } | 525 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 512 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 512 | } else { | 518 | 512 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 512 | ss->id = operator_id(); | 520 | 513 | for (auto& dest : dests_id()) { | 521 | 513 | ss->related_op_ids.insert(dest); | 522 | 513 | } | 523 | 512 | return ss; | 524 | 512 | } | 525 | 512 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 44.0k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 44.0k | } else { | 518 | 44.0k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 44.0k | ss->id = operator_id(); | 520 | 44.0k | for (auto& dest : dests_id()) { | 521 | 43.8k | ss->related_op_ids.insert(dest); | 522 | 43.8k | } | 523 | 44.0k | return ss; | 524 | 44.0k | } | 525 | 44.0k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 8.99k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 8.99k | } else { | 518 | 8.99k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 8.99k | ss->id = operator_id(); | 520 | 8.99k | for (auto& dest : dests_id()) { | 521 | 8.99k | ss->related_op_ids.insert(dest); | 522 | 8.99k | } | 523 | 8.99k | return ss; | 524 | 8.99k | } | 525 | 8.99k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 5.14k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 5.14k | } else { | 518 | 5.14k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 5.14k | ss->id = operator_id(); | 520 | 5.14k | for (auto& dest : dests_id()) { | 521 | 5.14k | ss->related_op_ids.insert(dest); | 522 | 5.14k | } | 523 | 5.14k | return ss; | 524 | 5.14k | } | 525 | 5.14k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 156 | } else { | 518 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 156 | ss->id = operator_id(); | 520 | 156 | for (auto& dest : dests_id()) { | 521 | 156 | ss->related_op_ids.insert(dest); | 522 | 156 | } | 523 | 156 | return ss; | 524 | 156 | } | 525 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 3.38k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 3.38k | } else { | 518 | 3.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 3.38k | ss->id = operator_id(); | 520 | 3.38k | for (auto& dest : dests_id()) { | 521 | 3.38k | ss->related_op_ids.insert(dest); | 522 | 3.38k | } | 523 | 3.38k | return ss; | 524 | 3.38k | } | 525 | 3.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 160 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 160 | } else { | 518 | 160 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 160 | ss->id = operator_id(); | 520 | 160 | for (auto& dest : dests_id()) { | 521 | 160 | ss->related_op_ids.insert(dest); | 522 | 160 | } | 523 | 160 | return ss; | 524 | 160 | } | 525 | 160 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 640 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 640 | } else { | 518 | 640 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 640 | ss->id = operator_id(); | 520 | 640 | for (auto& dest : dests_id()) { | 521 | 640 | ss->related_op_ids.insert(dest); | 522 | 640 | } | 523 | 640 | return ss; | 524 | 640 | } | 525 | 640 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 7.97k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 7.97k | } else { | 518 | 7.97k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 7.97k | ss->id = operator_id(); | 520 | 7.97k | for (auto& dest : dests_id()) { | 521 | 7.95k | ss->related_op_ids.insert(dest); | 522 | 7.95k | } | 523 | 7.97k | return ss; | 524 | 7.97k | } | 525 | 7.97k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 124 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 124 | } else { | 518 | 124 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 124 | ss->id = operator_id(); | 520 | 124 | for (auto& dest : dests_id()) { | 521 | 122 | ss->related_op_ids.insert(dest); | 522 | 122 | } | 523 | 124 | return ss; | 524 | 124 | } | 525 | 124 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 231k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 231k | } else { | 518 | 231k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 231k | ss->id = operator_id(); | 520 | 231k | for (auto& dest : dests_id()) { | 521 | 231k | ss->related_op_ids.insert(dest); | 522 | 231k | } | 523 | 231k | return ss; | 524 | 231k | } | 525 | 231k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 32 | } else { | 518 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 32 | ss->id = operator_id(); | 520 | 32 | for (auto& dest : dests_id()) { | 521 | 32 | ss->related_op_ids.insert(dest); | 522 | 32 | } | 523 | 32 | return ss; | 524 | 32 | } | 525 | 32 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 159k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 159k | } else { | 518 | 159k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 159k | ss->id = operator_id(); | 520 | 159k | for (auto& dest : dests_id()) { | 521 | 159k | ss->related_op_ids.insert(dest); | 522 | 159k | } | 523 | 159k | return ss; | 524 | 159k | } | 525 | 159k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 217 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 217 | } else { | 518 | 217 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 217 | ss->id = operator_id(); | 520 | 217 | for (auto& dest : dests_id()) { | 521 | 217 | ss->related_op_ids.insert(dest); | 522 | 217 | } | 523 | 217 | return ss; | 524 | 217 | } | 525 | 217 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 648k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 648k | } else { | 518 | 648k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 648k | ss->id = operator_id(); | 520 | 648k | for (auto& dest : dests_id()) { | 521 | 645k | ss->related_op_ids.insert(dest); | 522 | 645k | } | 523 | 648k | return ss; | 524 | 648k | } | 525 | 648k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 8.83k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 8.83k | } else { | 518 | 8.83k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 8.83k | ss->id = operator_id(); | 520 | 8.83k | for (auto& dest : dests_id()) { | 521 | 8.82k | ss->related_op_ids.insert(dest); | 522 | 8.82k | } | 523 | 8.83k | return ss; | 524 | 8.83k | } | 525 | 8.83k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 479 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 479 | } else { | 518 | 479 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 479 | ss->id = operator_id(); | 520 | 479 | for (auto& dest : dests_id()) { | 521 | 476 | ss->related_op_ids.insert(dest); | 522 | 476 | } | 523 | 479 | return ss; | 524 | 479 | } | 525 | 479 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 510 | 2.45k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 2.45k | } else { | 518 | 2.45k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 2.45k | ss->id = operator_id(); | 520 | 2.45k | for (auto& dest : dests_id()) { | 521 | 2.43k | ss->related_op_ids.insert(dest); | 522 | 2.43k | } | 523 | 2.45k | return ss; | 524 | 2.45k | } | 525 | 2.45k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 510 | 2.45k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 2.45k | } else { | 518 | 2.45k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 2.45k | ss->id = operator_id(); | 520 | 2.45k | for (auto& dest : dests_id()) { | 521 | 2.43k | ss->related_op_ids.insert(dest); | 522 | 2.43k | } | 523 | 2.45k | return ss; | 524 | 2.45k | } | 525 | 2.45k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 166 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 166 | } else { | 518 | 166 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 166 | ss->id = operator_id(); | 520 | 166 | for (auto& dest : dests_id()) { | 521 | 166 | ss->related_op_ids.insert(dest); | 522 | 166 | } | 523 | 166 | return ss; | 524 | 166 | } | 525 | 166 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 105 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 105 | } else { | 518 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 105 | ss->id = operator_id(); | 520 | 105 | for (auto& dest : dests_id()) { | 521 | 105 | ss->related_op_ids.insert(dest); | 522 | 105 | } | 523 | 105 | return ss; | 524 | 105 | } | 525 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
526 | | |
527 | | template <typename LocalStateType> |
528 | 2.47M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
529 | 2.47M | auto local_state = LocalStateType::create_unique(state, this); |
530 | 2.47M | RETURN_IF_ERROR(local_state->init(state, info)); |
531 | 2.47M | state->emplace_local_state(operator_id(), std::move(local_state)); |
532 | 2.47M | return Status::OK(); |
533 | 2.47M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 63.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 63.9k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 63.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 63.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 63.9k | return Status::OK(); | 533 | 63.9k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 294k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 294k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 294k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 294k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 294k | return Status::OK(); | 533 | 294k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 75 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 75 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 75 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 75 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 75 | return Status::OK(); | 533 | 75 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 33.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 33.3k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 33.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 33.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 33.3k | return Status::OK(); | 533 | 33.3k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 7.93k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 7.93k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 7.93k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 7.93k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 7.93k | return Status::OK(); | 533 | 7.93k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 8.26k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 8.26k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 8.26k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 8.26k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 8.26k | return Status::OK(); | 533 | 8.26k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 24 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 24 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 24 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 24 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 24 | return Status::OK(); | 533 | 24 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 221k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 221k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 221k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 221k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 221k | return Status::OK(); | 533 | 221k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 159k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 159k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 159k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 159k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 159k | return Status::OK(); | 533 | 159k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 325 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 325 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 325 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 325 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 325 | return Status::OK(); | 533 | 325 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 208 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 208 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 208 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 208 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 208 | return Status::OK(); | 533 | 208 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 4.16k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 4.16k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 4.16k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 4.16k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 4.16k | return Status::OK(); | 533 | 4.16k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 374k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 374k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 374k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 374k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 374k | return Status::OK(); | 533 | 374k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.37k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.37k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.37k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.37k | return Status::OK(); | 533 | 1.37k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 8.82k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 8.82k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 8.82k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 8.82k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 8.82k | return Status::OK(); | 533 | 8.82k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 221 | return Status::OK(); | 533 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.69k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.69k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.69k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.69k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.69k | return Status::OK(); | 533 | 1.69k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 54.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 54.5k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 54.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 54.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 54.5k | return Status::OK(); | 533 | 54.5k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 9.12k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 9.12k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 9.12k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 9.12k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 9.12k | return Status::OK(); | 533 | 9.12k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 378 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 378 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 378 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 378 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 378 | return Status::OK(); | 533 | 378 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.34k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.34k | return Status::OK(); | 533 | 2.34k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.34k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.34k | return Status::OK(); | 533 | 2.34k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 469 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 469 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 469 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 469 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 469 | return Status::OK(); | 533 | 469 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.07k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.07k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.07k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.07k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.07k | return Status::OK(); | 533 | 2.07k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 6.36k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 6.36k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 6.36k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 6.36k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 6.36k | return Status::OK(); | 533 | 6.36k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 745k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 745k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 745k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 745k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 745k | return Status::OK(); | 533 | 745k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 14 | return Status::OK(); | 533 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 151 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 151 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 151 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 151 | return Status::OK(); | 533 | 151 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.95k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.95k | return Status::OK(); | 533 | 1.95k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.60k | return Status::OK(); | 533 | 1.60k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.68k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.68k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.68k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.68k | return Status::OK(); | 533 | 2.68k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 13.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 13.1k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 13.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 13.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 13.1k | return Status::OK(); | 533 | 13.1k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 449k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 449k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 449k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 449k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 449k | return Status::OK(); | 533 | 449k | } |
|
534 | | |
535 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
536 | | RuntimeState* state) |
537 | 1.99M | : _parent(parent), _state(state) {} |
538 | | |
539 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
540 | 2.46M | : _num_rows_returned(0), |
541 | 2.46M | _rows_returned_counter(nullptr), |
542 | 2.46M | _parent(parent), |
543 | 2.46M | _state(state), |
544 | 2.46M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
545 | | |
546 | | template <typename SharedStateArg> |
547 | 2.47M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
548 | 2.47M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
549 | 2.47M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
550 | 2.47M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
551 | 2.47M | _operator_profile->set_metadata(_parent->node_id()); |
552 | | // indent is false so that source operator will have same |
553 | | // indentation_level with its parent operator. |
554 | 2.47M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
555 | 2.47M | _operator_profile->add_child(_common_profile.get(), true); |
556 | 2.47M | _operator_profile->add_child(_custom_profile.get(), true); |
557 | 2.47M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
558 | 2.47M | if constexpr (!is_fake_shared) { |
559 | 1.29M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
560 | 758k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
561 | 758k | .first.get() |
562 | 758k | ->template cast<SharedStateArg>(); |
563 | | |
564 | 758k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
565 | 758k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
566 | 758k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
567 | 758k | } else if (info.shared_state) { |
568 | 464k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
569 | 0 | DCHECK(false); |
570 | 0 | } |
571 | | // For UnionSourceOperator without children, there is no shared state. |
572 | 464k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
573 | | |
574 | 464k | _dependency = _shared_state->create_source_dependency( |
575 | 464k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
576 | 464k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
577 | 464k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
578 | 464k | } else { |
579 | 66.6k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
580 | 7.20k | DCHECK(false); |
581 | 7.20k | } |
582 | 66.6k | } |
583 | 1.29M | } |
584 | | |
585 | 2.47M | if (must_set_shared_state() && _shared_state == nullptr) { |
586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
587 | 0 | } |
588 | | |
589 | 2.47M | _rows_returned_counter = |
590 | 2.47M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
591 | 2.47M | _blocks_returned_counter = |
592 | 2.47M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
593 | 2.47M | _output_block_bytes_counter = |
594 | 2.47M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
595 | 2.47M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
596 | 2.47M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
597 | 2.47M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
598 | 2.47M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
599 | 2.47M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
600 | 2.47M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
601 | 2.47M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
602 | 2.47M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
603 | 2.47M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
604 | 2.47M | _memory_used_counter = |
605 | 2.47M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
606 | 2.47M | _common_profile->add_info_string("IsColocate", |
607 | 2.47M | std::to_string(_parent->is_colocated_operator())); |
608 | 2.47M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
609 | 2.47M | _common_profile->add_info_string("FollowedByShuffledOperator", |
610 | 2.47M | std::to_string(_parent->followed_by_shuffled_operator())); |
611 | 2.47M | return Status::OK(); |
612 | 2.47M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 64.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 64.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 64.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 64.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 64.1k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 64.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 64.1k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 64.1k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 64.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 64.1k | if constexpr (!is_fake_shared) { | 559 | 64.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 16.5k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 16.5k | .first.get() | 562 | 16.5k | ->template cast<SharedStateArg>(); | 563 | | | 564 | 16.5k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 16.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 16.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 47.5k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 47.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 47.0k | _dependency = _shared_state->create_source_dependency( | 575 | 47.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 47.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 47.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 47.0k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 509 | } | 583 | 64.1k | } | 584 | | | 585 | 64.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 64.1k | _rows_returned_counter = | 590 | 64.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 64.1k | _blocks_returned_counter = | 592 | 64.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 64.1k | _output_block_bytes_counter = | 594 | 64.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 64.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 64.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 64.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 64.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 64.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 64.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 64.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 64.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 64.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 64.1k | _memory_used_counter = | 605 | 64.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 64.1k | _common_profile->add_info_string("IsColocate", | 607 | 64.1k | std::to_string(_parent->is_colocated_operator())); | 608 | 64.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 64.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 64.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 64.1k | return Status::OK(); | 612 | 64.1k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 1 | if constexpr (!is_fake_shared) { | 559 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 1 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 1 | _dependency = _shared_state->create_source_dependency( | 575 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 1 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 1 | } | 584 | | | 585 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 1 | _rows_returned_counter = | 590 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 1 | _blocks_returned_counter = | 592 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 1 | _output_block_bytes_counter = | 594 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 1 | _memory_used_counter = | 605 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 1 | _common_profile->add_info_string("IsColocate", | 607 | 1 | std::to_string(_parent->is_colocated_operator())); | 608 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 1 | return Status::OK(); | 612 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 231k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 231k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 231k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 231k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 231k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 231k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 231k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 231k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 231k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 231k | if constexpr (!is_fake_shared) { | 559 | 231k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 231k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 226k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 226k | _dependency = _shared_state->create_source_dependency( | 575 | 226k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 226k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 226k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 226k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 4.82k | } | 583 | 231k | } | 584 | | | 585 | 231k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 231k | _rows_returned_counter = | 590 | 231k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 231k | _blocks_returned_counter = | 592 | 231k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 231k | _output_block_bytes_counter = | 594 | 231k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 231k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 231k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 231k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 231k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 231k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 231k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 231k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 231k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 231k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 231k | _memory_used_counter = | 605 | 231k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 231k | _common_profile->add_info_string("IsColocate", | 607 | 231k | std::to_string(_parent->is_colocated_operator())); | 608 | 231k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 231k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 231k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 231k | return Status::OK(); | 612 | 231k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 24 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 24 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 24 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 24 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 24 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 24 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 24 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 24 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 24 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 24 | if constexpr (!is_fake_shared) { | 559 | 24 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 24 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 24 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 24 | _dependency = _shared_state->create_source_dependency( | 575 | 24 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 24 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 24 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 24 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 24 | } | 584 | | | 585 | 24 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 24 | _rows_returned_counter = | 590 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 24 | _blocks_returned_counter = | 592 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 24 | _output_block_bytes_counter = | 594 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 24 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 24 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 24 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 24 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 24 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 24 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 24 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 24 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 24 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 24 | _memory_used_counter = | 605 | 24 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 24 | _common_profile->add_info_string("IsColocate", | 607 | 24 | std::to_string(_parent->is_colocated_operator())); | 608 | 24 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 24 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 24 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 24 | return Status::OK(); | 612 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 8.83k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 8.83k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 8.83k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 8.83k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 8.83k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 8.83k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 8.83k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 8.83k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 8.83k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 8.83k | if constexpr (!is_fake_shared) { | 559 | 8.83k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 8.83k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 8.82k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 8.82k | _dependency = _shared_state->create_source_dependency( | 575 | 8.82k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 8.82k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 8.82k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 8.82k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 14 | } | 583 | 8.83k | } | 584 | | | 585 | 8.83k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 8.83k | _rows_returned_counter = | 590 | 8.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 8.83k | _blocks_returned_counter = | 592 | 8.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 8.83k | _output_block_bytes_counter = | 594 | 8.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 8.83k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 8.83k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 8.83k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 8.83k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 8.83k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 8.83k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 8.83k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 8.83k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 8.83k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 8.83k | _memory_used_counter = | 605 | 8.83k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 8.83k | _common_profile->add_info_string("IsColocate", | 607 | 8.83k | std::to_string(_parent->is_colocated_operator())); | 608 | 8.83k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 8.83k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 8.83k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 8.83k | return Status::OK(); | 612 | 8.83k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 7.96k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 7.96k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 7.96k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 7.96k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 7.96k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 7.96k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 7.96k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 7.96k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 7.96k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 7.96k | if constexpr (!is_fake_shared) { | 559 | 7.96k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 7.96k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 7.88k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 7.88k | _dependency = _shared_state->create_source_dependency( | 575 | 7.88k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 7.88k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 7.88k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 7.88k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 84 | } | 583 | 7.96k | } | 584 | | | 585 | 7.96k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 7.96k | _rows_returned_counter = | 590 | 7.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 7.96k | _blocks_returned_counter = | 592 | 7.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 7.96k | _output_block_bytes_counter = | 594 | 7.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 7.96k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 7.96k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 7.96k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 7.96k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 7.96k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 7.96k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 7.96k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 7.96k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 7.96k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 7.96k | _memory_used_counter = | 605 | 7.96k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 7.96k | _common_profile->add_info_string("IsColocate", | 607 | 7.96k | std::to_string(_parent->is_colocated_operator())); | 608 | 7.96k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 7.96k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 7.96k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 7.96k | return Status::OK(); | 612 | 7.96k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 159k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 159k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 159k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 159k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 159k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 159k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 159k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 159k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 159k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 159k | if constexpr (!is_fake_shared) { | 559 | 159k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 159k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 158k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 158k | _dependency = _shared_state->create_source_dependency( | 575 | 158k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 158k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 158k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 158k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 1.41k | } | 583 | 159k | } | 584 | | | 585 | 159k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 159k | _rows_returned_counter = | 590 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 159k | _blocks_returned_counter = | 592 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 159k | _output_block_bytes_counter = | 594 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 159k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 159k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 159k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 159k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 159k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 159k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 159k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 159k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 159k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 159k | _memory_used_counter = | 605 | 159k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 159k | _common_profile->add_info_string("IsColocate", | 607 | 159k | std::to_string(_parent->is_colocated_operator())); | 608 | 159k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 159k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 159k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 159k | return Status::OK(); | 612 | 159k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 331 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 331 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 331 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 331 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 331 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 331 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 331 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 331 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 331 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 331 | if constexpr (!is_fake_shared) { | 559 | 331 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 320 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 320 | .first.get() | 562 | 320 | ->template cast<SharedStateArg>(); | 563 | | | 564 | 320 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 320 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 320 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 320 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | |
| 574 | 0 | _dependency = _shared_state->create_source_dependency( | 575 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 11 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 11 | } | 583 | 331 | } | 584 | | | 585 | 331 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 331 | _rows_returned_counter = | 590 | 331 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 331 | _blocks_returned_counter = | 592 | 331 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 331 | _output_block_bytes_counter = | 594 | 331 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 331 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 331 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 331 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 331 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 331 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 331 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 331 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 331 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 331 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 331 | _memory_used_counter = | 605 | 331 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 331 | _common_profile->add_info_string("IsColocate", | 607 | 331 | std::to_string(_parent->is_colocated_operator())); | 608 | 331 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 331 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 331 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 331 | return Status::OK(); | 612 | 331 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 208 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 208 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 208 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 208 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 208 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 208 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 208 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 208 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 208 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 208 | if constexpr (!is_fake_shared) { | 559 | 208 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 208 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 208 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 208 | _dependency = _shared_state->create_source_dependency( | 575 | 208 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 208 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 208 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 208 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 208 | } | 584 | | | 585 | 208 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 208 | _rows_returned_counter = | 590 | 208 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 208 | _blocks_returned_counter = | 592 | 208 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 208 | _output_block_bytes_counter = | 594 | 208 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 208 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 208 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 208 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 208 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 208 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 208 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 208 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 208 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 208 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 208 | _memory_used_counter = | 605 | 208 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 208 | _common_profile->add_info_string("IsColocate", | 607 | 208 | std::to_string(_parent->is_colocated_operator())); | 608 | 208 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 208 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 208 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 208 | return Status::OK(); | 612 | 208 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 1.18M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 1.18M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 1.18M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 1.18M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 1.18M | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 1.18M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 1.18M | _operator_profile->add_child(_common_profile.get(), true); | 556 | 1.18M | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 1.18M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | | if constexpr (!is_fake_shared) { | 559 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | | .first.get() | 562 | | ->template cast<SharedStateArg>(); | 563 | | | 564 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | | _dependency = _shared_state->create_source_dependency( | 575 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | | } | 583 | | } | 584 | | | 585 | 1.18M | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 1.18M | _rows_returned_counter = | 590 | 1.18M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 1.18M | _blocks_returned_counter = | 592 | 1.18M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 1.18M | _output_block_bytes_counter = | 594 | 1.18M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 1.18M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 1.18M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 1.18M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 1.18M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 1.18M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 1.18M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 1.18M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 1.18M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 1.18M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 1.18M | _memory_used_counter = | 605 | 1.18M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 1.18M | _common_profile->add_info_string("IsColocate", | 607 | 1.18M | std::to_string(_parent->is_colocated_operator())); | 608 | 1.18M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 1.18M | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 1.18M | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 1.18M | return Status::OK(); | 612 | 1.18M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 54.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 54.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 54.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 54.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 54.4k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 54.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 54.4k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 54.4k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 54.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 54.4k | if constexpr (!is_fake_shared) { | 559 | 54.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 54.4k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 2.48k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 2.48k | _dependency = _shared_state->create_source_dependency( | 575 | 2.48k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 2.48k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 2.48k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 51.9k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 51.9k | } | 583 | 54.4k | } | 584 | | | 585 | 54.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 54.4k | _rows_returned_counter = | 590 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 54.4k | _blocks_returned_counter = | 592 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 54.4k | _output_block_bytes_counter = | 594 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 54.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 54.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 54.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 54.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 54.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 54.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 54.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 54.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 54.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 54.4k | _memory_used_counter = | 605 | 54.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 54.4k | _common_profile->add_info_string("IsColocate", | 607 | 54.4k | std::to_string(_parent->is_colocated_operator())); | 608 | 54.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 54.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 54.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 54.4k | return Status::OK(); | 612 | 54.4k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 17 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 17 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 17 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 17 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 17 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 17 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 17 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 17 | if constexpr (!is_fake_shared) { | 559 | 17 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 17 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 17 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 17 | _dependency = _shared_state->create_source_dependency( | 575 | 17 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 17 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 17 | } | 584 | | | 585 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 17 | _rows_returned_counter = | 590 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 17 | _blocks_returned_counter = | 592 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 17 | _output_block_bytes_counter = | 594 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 17 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 17 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 17 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 17 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 17 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 17 | _memory_used_counter = | 605 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 17 | _common_profile->add_info_string("IsColocate", | 607 | 17 | std::to_string(_parent->is_colocated_operator())); | 608 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 17 | return Status::OK(); | 612 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 9.12k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 9.12k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 9.12k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 9.12k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 9.12k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 9.12k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 9.12k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 9.12k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 9.12k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 9.12k | if constexpr (!is_fake_shared) { | 559 | 9.12k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 9.12k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 9.11k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 9.11k | _dependency = _shared_state->create_source_dependency( | 575 | 9.11k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 9.11k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 9.11k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 9.11k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 17 | } | 583 | 9.12k | } | 584 | | | 585 | 9.12k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 9.12k | _rows_returned_counter = | 590 | 9.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 9.12k | _blocks_returned_counter = | 592 | 9.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 9.12k | _output_block_bytes_counter = | 594 | 9.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 9.12k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 9.12k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 9.12k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 9.12k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 9.12k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 9.12k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 9.12k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 9.12k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 9.12k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 9.12k | _memory_used_counter = | 605 | 9.12k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 9.12k | _common_profile->add_info_string("IsColocate", | 607 | 9.12k | std::to_string(_parent->is_colocated_operator())); | 608 | 9.12k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 9.12k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 9.12k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 9.12k | return Status::OK(); | 612 | 9.12k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 478 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 478 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 478 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 478 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 478 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 478 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 478 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 478 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 478 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 478 | if constexpr (!is_fake_shared) { | 559 | 478 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 478 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 478 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 478 | _dependency = _shared_state->create_source_dependency( | 575 | 478 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 478 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 478 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 478 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 478 | } | 584 | | | 585 | 478 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 478 | _rows_returned_counter = | 590 | 478 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 478 | _blocks_returned_counter = | 592 | 478 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 478 | _output_block_bytes_counter = | 594 | 478 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 478 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 478 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 478 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 478 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 478 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 478 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 478 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 478 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 478 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 478 | _memory_used_counter = | 605 | 478 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 478 | _common_profile->add_info_string("IsColocate", | 607 | 478 | std::to_string(_parent->is_colocated_operator())); | 608 | 478 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 478 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 478 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 478 | return Status::OK(); | 612 | 478 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 4.76k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 4.76k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 4.76k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 4.76k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 4.76k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 4.76k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 4.76k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 4.76k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 4.76k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 4.76k | if constexpr (!is_fake_shared) { | 559 | 4.76k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 4.76k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 4.10k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 4.10k | _dependency = _shared_state->create_source_dependency( | 575 | 4.10k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 4.10k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 4.10k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 4.10k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 667 | } | 583 | 4.76k | } | 584 | | | 585 | 4.76k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 4.76k | _rows_returned_counter = | 590 | 4.76k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 4.76k | _blocks_returned_counter = | 592 | 4.76k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 4.76k | _output_block_bytes_counter = | 594 | 4.76k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 4.76k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 4.76k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 4.76k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 4.76k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 4.76k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 4.76k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 4.76k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 4.76k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 4.76k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 4.76k | _memory_used_counter = | 605 | 4.76k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 4.76k | _common_profile->add_info_string("IsColocate", | 607 | 4.76k | std::to_string(_parent->is_colocated_operator())); | 608 | 4.76k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 4.76k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 4.76k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 4.76k | return Status::OK(); | 612 | 4.76k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 749k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 749k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 749k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 749k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 749k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 749k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 749k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 749k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 749k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 749k | if constexpr (!is_fake_shared) { | 559 | 749k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 742k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 742k | .first.get() | 562 | 742k | ->template cast<SharedStateArg>(); | 563 | | | 564 | 742k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 742k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 742k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 742k | } else if (info.shared_state) { | 568 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | 0 | DCHECK(false); | 570 | 0 | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | |
| 574 | 0 | _dependency = _shared_state->create_source_dependency( | 575 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 7.20k | } else { | 579 | 7.20k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | 7.20k | DCHECK(false); | 581 | 7.20k | } | 582 | 7.20k | } | 583 | 749k | } | 584 | | | 585 | 749k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 749k | _rows_returned_counter = | 590 | 749k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 749k | _blocks_returned_counter = | 592 | 749k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 749k | _output_block_bytes_counter = | 594 | 749k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 749k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 749k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 749k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 749k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 749k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 749k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 749k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 749k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 749k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 749k | _memory_used_counter = | 605 | 749k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 749k | _common_profile->add_info_string("IsColocate", | 607 | 749k | std::to_string(_parent->is_colocated_operator())); | 608 | 749k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 749k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 749k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 749k | return Status::OK(); | 612 | 749k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 151 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 151 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 151 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 151 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 151 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 151 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 151 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 151 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 151 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 151 | if constexpr (!is_fake_shared) { | 559 | 151 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 151 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 151 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 151 | _dependency = _shared_state->create_source_dependency( | 575 | 151 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 151 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 151 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 151 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 151 | } | 584 | | | 585 | 151 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 151 | _rows_returned_counter = | 590 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 151 | _blocks_returned_counter = | 592 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 151 | _output_block_bytes_counter = | 594 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 151 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 151 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 151 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 151 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 151 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 151 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 151 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 151 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 151 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 151 | _memory_used_counter = | 605 | 151 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 151 | _common_profile->add_info_string("IsColocate", | 607 | 151 | std::to_string(_parent->is_colocated_operator())); | 608 | 151 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 151 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 151 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 151 | return Status::OK(); | 612 | 151 | } |
|
613 | | |
614 | | template <typename SharedStateArg> |
615 | 2.48M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
616 | 2.48M | _conjuncts.resize(_parent->_conjuncts.size()); |
617 | 2.48M | _projections.resize(_parent->_projections.size()); |
618 | 2.97M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 495k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 495k | } |
621 | 5.11M | for (size_t i = 0; i < _projections.size(); i++) { |
622 | 2.62M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
623 | 2.62M | } |
624 | 2.48M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
625 | 2.49M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
626 | 10.7k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
627 | 73.4k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
628 | 62.6k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
629 | 62.6k | state, _intermediate_projections[i][j])); |
630 | 62.6k | } |
631 | 10.7k | } |
632 | 2.48M | return Status::OK(); |
633 | 2.48M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 64.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 64.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 64.3k | _projections.resize(_parent->_projections.size()); | 618 | 64.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 605 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 605 | } | 621 | 318k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 254k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 254k | } | 624 | 64.3k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 65.7k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 1.45k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 16.9k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 15.4k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 15.4k | state, _intermediate_projections[i][j])); | 630 | 15.4k | } | 631 | 1.45k | } | 632 | 64.3k | return Status::OK(); | 633 | 64.3k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 3 | _projections.resize(_parent->_projections.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 3 | return Status::OK(); | 633 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 231k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 231k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 231k | _projections.resize(_parent->_projections.size()); | 618 | 231k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 231k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 355 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 355 | } | 624 | 231k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 231k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 231k | return Status::OK(); | 633 | 231k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 23 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 23 | _projections.resize(_parent->_projections.size()); | 618 | 23 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 23 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 23 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 23 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 23 | return Status::OK(); | 633 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 8.83k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 8.83k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 8.83k | _projections.resize(_parent->_projections.size()); | 618 | 8.87k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 39 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 39 | } | 621 | 58.2k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 49.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 49.4k | } | 624 | 8.83k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 8.97k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 144 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 926 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 782 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 782 | state, _intermediate_projections[i][j])); | 630 | 782 | } | 631 | 144 | } | 632 | 8.83k | return Status::OK(); | 633 | 8.83k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 7.98k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 7.98k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 7.98k | _projections.resize(_parent->_projections.size()); | 618 | 8.95k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 976 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 976 | } | 621 | 21.4k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 13.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 13.4k | } | 624 | 7.98k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 8.07k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 92 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 705 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 613 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 613 | state, _intermediate_projections[i][j])); | 630 | 613 | } | 631 | 92 | } | 632 | 7.98k | return Status::OK(); | 633 | 7.98k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 159k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 159k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 159k | _projections.resize(_parent->_projections.size()); | 618 | 163k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 4.03k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 4.03k | } | 621 | 417k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 257k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 257k | } | 624 | 159k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 159k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 256 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 1.92k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 1.66k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 1.66k | state, _intermediate_projections[i][j])); | 630 | 1.66k | } | 631 | 256 | } | 632 | 159k | return Status::OK(); | 633 | 159k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 331 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 331 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 331 | _projections.resize(_parent->_projections.size()); | 618 | 335 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 4 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 4 | } | 621 | 1.18k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 851 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 851 | } | 624 | 331 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 331 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 331 | return Status::OK(); | 633 | 331 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 212 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 212 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 212 | _projections.resize(_parent->_projections.size()); | 618 | 212 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 472 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 260 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 260 | } | 624 | 212 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 212 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 212 | return Status::OK(); | 633 | 212 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 1.19M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 1.19M | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 1.19M | _projections.resize(_parent->_projections.size()); | 618 | 1.67M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 486k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 486k | } | 621 | 3.14M | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 1.95M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 1.95M | } | 624 | 1.19M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 1.19M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 8.81k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 52.9k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 44.0k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 44.0k | state, _intermediate_projections[i][j])); | 630 | 44.0k | } | 631 | 8.81k | } | 632 | 1.19M | return Status::OK(); | 633 | 1.19M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 54.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 54.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 54.7k | _projections.resize(_parent->_projections.size()); | 618 | 54.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 149k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 94.6k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 94.6k | } | 624 | 54.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 54.7k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 54.7k | return Status::OK(); | 633 | 54.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 17 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 17 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 17 | _projections.resize(_parent->_projections.size()); | 618 | 17 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 17 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 17 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 17 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 17 | return Status::OK(); | 633 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 9.12k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 9.12k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 9.12k | _projections.resize(_parent->_projections.size()); | 618 | 12.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 3.50k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 3.50k | } | 621 | 9.12k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 9.12k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 9.12k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 9.12k | return Status::OK(); | 633 | 9.12k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 482 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 482 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 482 | _projections.resize(_parent->_projections.size()); | 618 | 482 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 482 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 482 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 482 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 482 | return Status::OK(); | 633 | 482 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 4.97k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 4.97k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 4.97k | _projections.resize(_parent->_projections.size()); | 618 | 4.97k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 4.97k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 4.97k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 4.97k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 4.97k | return Status::OK(); | 633 | 4.97k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 750k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 750k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 750k | _projections.resize(_parent->_projections.size()); | 618 | 750k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 750k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 750k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 750k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 750k | return Status::OK(); | 633 | 750k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 151 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 151 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 151 | _projections.resize(_parent->_projections.size()); | 618 | 158 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 447 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 296 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 296 | } | 624 | 151 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 152 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 2 | state, _intermediate_projections[i][j])); | 630 | 2 | } | 631 | 1 | } | 632 | 151 | return Status::OK(); | 633 | 151 | } |
|
634 | | |
635 | | template <typename SharedStateArg> |
636 | 14.2k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
637 | 14.2k | if (_terminated) { |
638 | 3 | return Status::OK(); |
639 | 3 | } |
640 | 14.2k | _terminated = true; |
641 | 14.2k | return Status::OK(); |
642 | 14.2k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 1.21k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 1.21k | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 1.21k | _terminated = true; | 641 | 1.21k | return Status::OK(); | 642 | 1.21k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 108 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 108 | if (_terminated) { | 638 | 1 | return Status::OK(); | 639 | 1 | } | 640 | 107 | _terminated = true; | 641 | 107 | return Status::OK(); | 642 | 108 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 165 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 165 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 165 | _terminated = true; | 641 | 165 | return Status::OK(); | 642 | 165 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 2 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 2 | _terminated = true; | 641 | 2 | return Status::OK(); | 642 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 66 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 66 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 66 | _terminated = true; | 641 | 66 | return Status::OK(); | 642 | 66 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 11.0k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 11.0k | if (_terminated) { | 638 | 1 | return Status::OK(); | 639 | 1 | } | 640 | 11.0k | _terminated = true; | 641 | 11.0k | return Status::OK(); | 642 | 11.0k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 10 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 10 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 10 | _terminated = true; | 641 | 10 | return Status::OK(); | 642 | 10 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 4 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 4 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 4 | _terminated = true; | 641 | 4 | return Status::OK(); | 642 | 4 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 299 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 299 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 299 | _terminated = true; | 641 | 299 | return Status::OK(); | 642 | 299 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 1.29k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 1.29k | if (_terminated) { | 638 | 1 | return Status::OK(); | 639 | 1 | } | 640 | 1.29k | _terminated = true; | 641 | 1.29k | return Status::OK(); | 642 | 1.29k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 15 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 15 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 15 | _terminated = true; | 641 | 15 | return Status::OK(); | 642 | 15 | } |
|
643 | | |
644 | | template <typename SharedStateArg> |
645 | 2.74M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
646 | 2.74M | if (_closed) { |
647 | 262k | return Status::OK(); |
648 | 262k | } |
649 | 2.48M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
650 | 1.29M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
651 | 1.29M | } |
652 | 2.48M | _closed = true; |
653 | 2.48M | return Status::OK(); |
654 | 2.74M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 64.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 64.2k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 64.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 64.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 64.2k | } | 652 | 64.2k | _closed = true; | 653 | 64.2k | return Status::OK(); | 654 | 64.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 4 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 4 | } | 652 | 4 | _closed = true; | 653 | 4 | return Status::OK(); | 654 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 460k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 460k | if (_closed) { | 647 | 230k | return Status::OK(); | 648 | 230k | } | 649 | 230k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 230k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 230k | } | 652 | 230k | _closed = true; | 653 | 230k | return Status::OK(); | 654 | 460k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 24 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 24 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 24 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 24 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 24 | } | 652 | 24 | _closed = true; | 653 | 24 | return Status::OK(); | 654 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 8.83k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 8.83k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 8.83k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 8.83k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 8.83k | } | 652 | 8.83k | _closed = true; | 653 | 8.83k | return Status::OK(); | 654 | 8.83k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 16.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 16.0k | if (_closed) { | 647 | 8.06k | return Status::OK(); | 648 | 8.06k | } | 649 | 7.96k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 7.96k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 7.96k | } | 652 | 7.96k | _closed = true; | 653 | 7.96k | return Status::OK(); | 654 | 16.0k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 159k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 159k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 159k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 159k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 159k | } | 652 | 159k | _closed = true; | 653 | 159k | return Status::OK(); | 654 | 159k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 328 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 328 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 328 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 328 | } | 652 | 328 | _closed = true; | 653 | 328 | return Status::OK(); | 654 | 328 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 207 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 207 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 207 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 207 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 207 | } | 652 | 207 | _closed = true; | 653 | 207 | return Status::OK(); | 654 | 207 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 1.21M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 1.21M | if (_closed) { | 647 | 18.7k | return Status::OK(); | 648 | 18.7k | } | 649 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | | } | 652 | 1.19M | _closed = true; | 653 | 1.19M | return Status::OK(); | 654 | 1.21M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 54.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 54.7k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 54.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 54.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 54.7k | } | 652 | 54.7k | _closed = true; | 653 | 54.7k | return Status::OK(); | 654 | 54.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 28 | if (_closed) { | 647 | 14 | return Status::OK(); | 648 | 14 | } | 649 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 14 | } | 652 | 14 | _closed = true; | 653 | 14 | return Status::OK(); | 654 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 9.10k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 9.10k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 9.10k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 9.10k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 9.10k | } | 652 | 9.10k | _closed = true; | 653 | 9.10k | return Status::OK(); | 654 | 9.10k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 757 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 757 | if (_closed) { | 647 | 380 | return Status::OK(); | 648 | 380 | } | 649 | 377 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 377 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 377 | } | 652 | 377 | _closed = true; | 653 | 377 | return Status::OK(); | 654 | 757 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 9.95k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 9.95k | if (_closed) { | 647 | 4.98k | return Status::OK(); | 648 | 4.98k | } | 649 | 4.96k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 4.96k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 4.96k | } | 652 | 4.96k | _closed = true; | 653 | 4.96k | return Status::OK(); | 654 | 9.95k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 752k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 752k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 752k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 752k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 752k | } | 652 | 752k | _closed = true; | 653 | 752k | return Status::OK(); | 654 | 752k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 304 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 304 | if (_closed) { | 647 | 162 | return Status::OK(); | 648 | 162 | } | 649 | 142 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 142 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 142 | } | 652 | 142 | _closed = true; | 653 | 142 | return Status::OK(); | 654 | 304 | } |
|
655 | | |
656 | | template <typename SharedState> |
657 | 1.99M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
658 | | // create profile |
659 | 1.99M | _operator_profile = |
660 | 1.99M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
661 | 1.99M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
662 | 1.99M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
663 | | |
664 | | // indentation is true |
665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
666 | | // So we should set the indentation to true. |
667 | 1.99M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
668 | 1.99M | _operator_profile->add_child(_common_profile, true); |
669 | 1.99M | _operator_profile->add_child(_custom_profile, true); |
670 | | |
671 | 1.99M | _operator_profile->set_metadata(_parent->node_id()); |
672 | 1.99M | _wait_for_finish_dependency_timer = |
673 | 1.99M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
674 | 1.99M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
675 | 1.99M | if constexpr (!is_fake_shared) { |
676 | 1.34M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
677 | 1.34M | info.shared_state_map.end()) { |
678 | 329k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
679 | 312k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
680 | 312k | } |
681 | 329k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
682 | 329k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
683 | 329k | ? 0 |
684 | 329k | : info.task_idx] |
685 | 329k | .get(); |
686 | 329k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
687 | 1.01M | } else { |
688 | 1.01M | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
689 | 20 | DCHECK(false); |
690 | 20 | } |
691 | 1.01M | _shared_state = info.shared_state->template cast<SharedState>(); |
692 | 1.01M | _dependency = _shared_state->create_sink_dependency( |
693 | 1.01M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
694 | 1.01M | } |
695 | 1.34M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
696 | 1.34M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
697 | 1.34M | } |
698 | | |
699 | 1.99M | if (must_set_shared_state() && _shared_state == nullptr) { |
700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
701 | 0 | } |
702 | | |
703 | 1.99M | _rows_input_counter = |
704 | 1.99M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
705 | 1.99M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
706 | 1.99M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
707 | 1.99M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
708 | 1.99M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
709 | 1.99M | _memory_used_counter = |
710 | 1.99M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
711 | 1.99M | _common_profile->add_info_string("IsColocate", |
712 | 1.99M | std::to_string(_parent->is_colocated_operator())); |
713 | 1.99M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
714 | 1.99M | _common_profile->add_info_string("FollowedByShuffledOperator", |
715 | 1.99M | std::to_string(_parent->followed_by_shuffled_operator())); |
716 | 1.99M | return Status::OK(); |
717 | 1.99M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 112k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 112k | _operator_profile = | 660 | 112k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 112k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 112k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 112k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 112k | _operator_profile->add_child(_common_profile, true); | 669 | 112k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 112k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 112k | _wait_for_finish_dependency_timer = | 673 | 112k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 112k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 112k | if constexpr (!is_fake_shared) { | 676 | 112k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 112k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 16.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 16.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 16.6k | ? 0 | 684 | 16.6k | : info.task_idx] | 685 | 16.6k | .get(); | 686 | 16.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 95.6k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 95.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 95.6k | _dependency = _shared_state->create_sink_dependency( | 693 | 95.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 95.6k | } | 695 | 112k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 112k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 112k | } | 698 | | | 699 | 112k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 112k | _rows_input_counter = | 704 | 112k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 112k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 112k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 112k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 112k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 112k | _memory_used_counter = | 710 | 112k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 112k | _common_profile->add_info_string("IsColocate", | 712 | 112k | std::to_string(_parent->is_colocated_operator())); | 713 | 112k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 112k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 112k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 112k | return Status::OK(); | 717 | 112k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 2 | _operator_profile = | 660 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 2 | _operator_profile->add_child(_common_profile, true); | 669 | 2 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 2 | _wait_for_finish_dependency_timer = | 673 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 2 | if constexpr (!is_fake_shared) { | 676 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 2 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 2 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 2 | _dependency = _shared_state->create_sink_dependency( | 693 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 2 | } | 695 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 2 | } | 698 | | | 699 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 2 | _rows_input_counter = | 704 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 2 | _memory_used_counter = | 710 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 2 | _common_profile->add_info_string("IsColocate", | 712 | 2 | std::to_string(_parent->is_colocated_operator())); | 713 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 2 | return Status::OK(); | 717 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 230k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 230k | _operator_profile = | 660 | 230k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 230k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 230k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 230k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 230k | _operator_profile->add_child(_common_profile, true); | 669 | 230k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 230k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 230k | _wait_for_finish_dependency_timer = | 673 | 230k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 230k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 230k | if constexpr (!is_fake_shared) { | 676 | 230k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 230k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 230k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 230k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 230k | _dependency = _shared_state->create_sink_dependency( | 693 | 230k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 230k | } | 695 | 230k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 230k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 230k | } | 698 | | | 699 | 230k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 230k | _rows_input_counter = | 704 | 230k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 230k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 230k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 230k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 230k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 230k | _memory_used_counter = | 710 | 230k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 230k | _common_profile->add_info_string("IsColocate", | 712 | 230k | std::to_string(_parent->is_colocated_operator())); | 713 | 230k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 230k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 230k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 230k | return Status::OK(); | 717 | 230k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 30 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 30 | _operator_profile = | 660 | 30 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 30 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 30 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 30 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 30 | _operator_profile->add_child(_common_profile, true); | 669 | 30 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 30 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 30 | _wait_for_finish_dependency_timer = | 673 | 30 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 30 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 30 | if constexpr (!is_fake_shared) { | 676 | 30 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 30 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 30 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 30 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 30 | _dependency = _shared_state->create_sink_dependency( | 693 | 30 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 30 | } | 695 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 30 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 30 | } | 698 | | | 699 | 30 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 30 | _rows_input_counter = | 704 | 30 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 30 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 30 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 30 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 30 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 30 | _memory_used_counter = | 710 | 30 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 30 | _common_profile->add_info_string("IsColocate", | 712 | 30 | std::to_string(_parent->is_colocated_operator())); | 713 | 30 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 30 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 30 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 30 | return Status::OK(); | 717 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 8.83k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 8.83k | _operator_profile = | 660 | 8.83k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 8.83k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 8.83k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 8.83k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 8.83k | _operator_profile->add_child(_common_profile, true); | 669 | 8.83k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 8.83k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 8.83k | _wait_for_finish_dependency_timer = | 673 | 8.83k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 8.83k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 8.83k | if constexpr (!is_fake_shared) { | 676 | 8.83k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 8.83k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 8.83k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 8.83k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 8.83k | _dependency = _shared_state->create_sink_dependency( | 693 | 8.83k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 8.83k | } | 695 | 8.83k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 8.83k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 8.83k | } | 698 | | | 699 | 8.83k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 8.83k | _rows_input_counter = | 704 | 8.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 8.83k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 8.83k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 8.83k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 8.83k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 8.83k | _memory_used_counter = | 710 | 8.83k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 8.83k | _common_profile->add_info_string("IsColocate", | 712 | 8.83k | std::to_string(_parent->is_colocated_operator())); | 713 | 8.83k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 8.83k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 8.83k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 8.83k | return Status::OK(); | 717 | 8.83k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 7.96k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 7.96k | _operator_profile = | 660 | 7.96k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 7.96k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 7.96k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 7.96k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 7.96k | _operator_profile->add_child(_common_profile, true); | 669 | 7.96k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 7.96k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 7.96k | _wait_for_finish_dependency_timer = | 673 | 7.96k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 7.96k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 7.96k | if constexpr (!is_fake_shared) { | 676 | 7.96k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 7.96k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 7.96k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 7.96k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 7.96k | _dependency = _shared_state->create_sink_dependency( | 693 | 7.96k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 7.96k | } | 695 | 7.96k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 7.96k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 7.96k | } | 698 | | | 699 | 7.96k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 7.96k | _rows_input_counter = | 704 | 7.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 7.96k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 7.96k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 7.96k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 7.96k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 7.96k | _memory_used_counter = | 710 | 7.96k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 7.96k | _common_profile->add_info_string("IsColocate", | 712 | 7.96k | std::to_string(_parent->is_colocated_operator())); | 713 | 7.96k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 7.96k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 7.96k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 7.96k | return Status::OK(); | 717 | 7.96k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 159k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 159k | _operator_profile = | 660 | 159k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 159k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 159k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 159k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 159k | _operator_profile->add_child(_common_profile, true); | 669 | 159k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 159k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 159k | _wait_for_finish_dependency_timer = | 673 | 159k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 159k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 159k | if constexpr (!is_fake_shared) { | 676 | 159k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 159k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 159k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 159k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 159k | _dependency = _shared_state->create_sink_dependency( | 693 | 159k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 159k | } | 695 | 159k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 159k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 159k | } | 698 | | | 699 | 159k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 159k | _rows_input_counter = | 704 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 159k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 159k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 159k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 159k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 159k | _memory_used_counter = | 710 | 159k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 159k | _common_profile->add_info_string("IsColocate", | 712 | 159k | std::to_string(_parent->is_colocated_operator())); | 713 | 159k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 159k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 159k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 159k | return Status::OK(); | 717 | 159k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 266 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 266 | _operator_profile = | 660 | 266 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 266 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 266 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 266 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 266 | _operator_profile->add_child(_common_profile, true); | 669 | 266 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 266 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 266 | _wait_for_finish_dependency_timer = | 673 | 266 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 266 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 266 | if constexpr (!is_fake_shared) { | 676 | 266 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 266 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 264 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 264 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 264 | ? 0 | 684 | 264 | : info.task_idx] | 685 | 264 | .get(); | 686 | 264 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 264 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 2 | _dependency = _shared_state->create_sink_dependency( | 693 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 2 | } | 695 | 266 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 266 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 266 | } | 698 | | | 699 | 266 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 266 | _rows_input_counter = | 704 | 266 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 266 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 266 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 266 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 266 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 266 | _memory_used_counter = | 710 | 266 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 266 | _common_profile->add_info_string("IsColocate", | 712 | 266 | std::to_string(_parent->is_colocated_operator())); | 713 | 266 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 266 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 266 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 266 | return Status::OK(); | 717 | 266 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 218 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 218 | _operator_profile = | 660 | 218 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 218 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 218 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 218 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 218 | _operator_profile->add_child(_common_profile, true); | 669 | 218 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 218 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 218 | _wait_for_finish_dependency_timer = | 673 | 218 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 218 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 218 | if constexpr (!is_fake_shared) { | 676 | 218 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 218 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 218 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 218 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 218 | _dependency = _shared_state->create_sink_dependency( | 693 | 218 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 218 | } | 695 | 218 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 218 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 218 | } | 698 | | | 699 | 218 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 218 | _rows_input_counter = | 704 | 218 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 218 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 218 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 218 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 218 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 218 | _memory_used_counter = | 710 | 218 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 218 | _common_profile->add_info_string("IsColocate", | 712 | 218 | std::to_string(_parent->is_colocated_operator())); | 713 | 218 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 218 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 218 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 218 | return Status::OK(); | 717 | 218 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 651k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 651k | _operator_profile = | 660 | 651k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 651k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 651k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 651k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 651k | _operator_profile->add_child(_common_profile, true); | 669 | 651k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 651k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 651k | _wait_for_finish_dependency_timer = | 673 | 651k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 651k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | | if constexpr (!is_fake_shared) { | 676 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | | ? 0 | 684 | | : info.task_idx] | 685 | | .get(); | 686 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | | _dependency = _shared_state->create_sink_dependency( | 693 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | | } | 695 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | | } | 698 | | | 699 | 651k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 651k | _rows_input_counter = | 704 | 651k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 651k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 651k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 651k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 651k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 651k | _memory_used_counter = | 710 | 651k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 651k | _common_profile->add_info_string("IsColocate", | 712 | 651k | std::to_string(_parent->is_colocated_operator())); | 713 | 651k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 651k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 651k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 651k | return Status::OK(); | 717 | 651k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 5.13k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 5.13k | _operator_profile = | 660 | 5.13k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 5.13k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 5.13k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 5.13k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 5.13k | _operator_profile->add_child(_common_profile, true); | 669 | 5.13k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 5.13k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 5.13k | _wait_for_finish_dependency_timer = | 673 | 5.13k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 5.13k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 5.13k | if constexpr (!is_fake_shared) { | 676 | 5.13k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 5.13k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 5.13k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 5.13k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 5.13k | _dependency = _shared_state->create_sink_dependency( | 693 | 5.13k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 5.13k | } | 695 | 5.13k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 5.13k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 5.13k | } | 698 | | | 699 | 5.13k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 5.13k | _rows_input_counter = | 704 | 5.13k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 5.13k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 5.13k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 5.13k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 5.13k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 5.13k | _memory_used_counter = | 710 | 5.13k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 5.13k | _common_profile->add_info_string("IsColocate", | 712 | 5.13k | std::to_string(_parent->is_colocated_operator())); | 713 | 5.13k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 5.13k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 5.13k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 5.13k | return Status::OK(); | 717 | 5.13k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 481 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 481 | _operator_profile = | 660 | 481 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 481 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 481 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 481 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 481 | _operator_profile->add_child(_common_profile, true); | 669 | 481 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 481 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 481 | _wait_for_finish_dependency_timer = | 673 | 481 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 481 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 481 | if constexpr (!is_fake_shared) { | 676 | 481 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 481 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 481 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 481 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 481 | _dependency = _shared_state->create_sink_dependency( | 693 | 481 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 481 | } | 695 | 481 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 481 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 481 | } | 698 | | | 699 | 481 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 481 | _rows_input_counter = | 704 | 481 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 481 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 481 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 481 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 481 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 481 | _memory_used_counter = | 710 | 481 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 481 | _common_profile->add_info_string("IsColocate", | 712 | 481 | std::to_string(_parent->is_colocated_operator())); | 713 | 481 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 481 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 481 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 481 | return Status::OK(); | 717 | 481 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 3.23k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 3.23k | _operator_profile = | 660 | 3.23k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 3.23k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 3.23k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 3.23k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 3.23k | _operator_profile->add_child(_common_profile, true); | 669 | 3.23k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 3.23k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 3.23k | _wait_for_finish_dependency_timer = | 673 | 3.23k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 3.23k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 3.23k | if constexpr (!is_fake_shared) { | 676 | 3.23k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 3.23k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 3.23k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 3.23k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 3.23k | _dependency = _shared_state->create_sink_dependency( | 693 | 3.23k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 3.23k | } | 695 | 3.23k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 3.23k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 3.23k | } | 698 | | | 699 | 3.23k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 3.23k | _rows_input_counter = | 704 | 3.23k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 3.23k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 3.23k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 3.23k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 3.23k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 3.23k | _memory_used_counter = | 710 | 3.23k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 3.23k | _common_profile->add_info_string("IsColocate", | 712 | 3.23k | std::to_string(_parent->is_colocated_operator())); | 713 | 3.23k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 3.23k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 3.23k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 3.23k | return Status::OK(); | 717 | 3.23k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 12.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 12.1k | _operator_profile = | 660 | 12.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 12.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 12.1k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 12.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 12.1k | _operator_profile->add_child(_common_profile, true); | 669 | 12.1k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 12.1k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 12.1k | _wait_for_finish_dependency_timer = | 673 | 12.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 12.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 12.1k | if constexpr (!is_fake_shared) { | 676 | 12.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 12.1k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 12.1k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 12.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 12.1k | _dependency = _shared_state->create_sink_dependency( | 693 | 12.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 12.1k | } | 695 | 12.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 12.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 12.1k | } | 698 | | | 699 | 12.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 12.1k | _rows_input_counter = | 704 | 12.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 12.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 12.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 12.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 12.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 12.1k | _memory_used_counter = | 710 | 12.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 12.1k | _common_profile->add_info_string("IsColocate", | 712 | 12.1k | std::to_string(_parent->is_colocated_operator())); | 713 | 12.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 12.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 12.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 12.1k | return Status::OK(); | 717 | 12.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 312k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 312k | _operator_profile = | 660 | 312k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 312k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 312k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 312k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 312k | _operator_profile->add_child(_common_profile, true); | 669 | 312k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 312k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 312k | _wait_for_finish_dependency_timer = | 673 | 312k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 312k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 312k | if constexpr (!is_fake_shared) { | 676 | 312k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 312k | info.shared_state_map.end()) { | 678 | 312k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | 312k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | 312k | } | 681 | 312k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 312k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 312k | ? 0 | 684 | 312k | : info.task_idx] | 685 | 312k | .get(); | 686 | 312k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 312k | } else { | 688 | 20 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | 20 | DCHECK(false); | 690 | 20 | } | 691 | 20 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 20 | _dependency = _shared_state->create_sink_dependency( | 693 | 20 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 20 | } | 695 | 312k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 312k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 312k | } | 698 | | | 699 | 312k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 312k | _rows_input_counter = | 704 | 312k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 312k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 312k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 312k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 312k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 312k | _memory_used_counter = | 710 | 312k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 312k | _common_profile->add_info_string("IsColocate", | 712 | 312k | std::to_string(_parent->is_colocated_operator())); | 713 | 312k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 312k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 312k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 312k | return Status::OK(); | 717 | 312k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 493k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 493k | _operator_profile = | 660 | 493k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 493k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 493k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 493k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 493k | _operator_profile->add_child(_common_profile, true); | 669 | 493k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 493k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 493k | _wait_for_finish_dependency_timer = | 673 | 493k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 493k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 493k | if constexpr (!is_fake_shared) { | 676 | 493k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 493k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 493k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 493k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 493k | _dependency = _shared_state->create_sink_dependency( | 693 | 493k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 493k | } | 695 | 493k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 493k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 493k | } | 698 | | | 699 | 493k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 493k | _rows_input_counter = | 704 | 493k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 493k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 493k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 493k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 493k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 493k | _memory_used_counter = | 710 | 493k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 493k | _common_profile->add_info_string("IsColocate", | 712 | 493k | std::to_string(_parent->is_colocated_operator())); | 713 | 493k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 493k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 493k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 493k | return Status::OK(); | 717 | 493k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 17 | _operator_profile = | 660 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 17 | _operator_profile->add_child(_common_profile, true); | 669 | 17 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 17 | _wait_for_finish_dependency_timer = | 673 | 17 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 17 | if constexpr (!is_fake_shared) { | 676 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 17 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 17 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 17 | _dependency = _shared_state->create_sink_dependency( | 693 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 17 | } | 695 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 17 | } | 698 | | | 699 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 17 | _rows_input_counter = | 704 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 17 | _memory_used_counter = | 710 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 17 | _common_profile->add_info_string("IsColocate", | 712 | 17 | std::to_string(_parent->is_colocated_operator())); | 713 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 17 | return Status::OK(); | 717 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 302 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 302 | _operator_profile = | 660 | 302 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 302 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 302 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 302 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 302 | _operator_profile->add_child(_common_profile, true); | 669 | 302 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 302 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 302 | _wait_for_finish_dependency_timer = | 673 | 302 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 302 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 302 | if constexpr (!is_fake_shared) { | 676 | 302 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 302 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 302 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 302 | _dependency = _shared_state->create_sink_dependency( | 693 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 302 | } | 695 | 302 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 302 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 302 | } | 698 | | | 699 | 302 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 302 | _rows_input_counter = | 704 | 302 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 302 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 302 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 302 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 302 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 302 | _memory_used_counter = | 710 | 302 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 302 | _common_profile->add_info_string("IsColocate", | 712 | 302 | std::to_string(_parent->is_colocated_operator())); | 713 | 302 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 302 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 302 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 302 | return Status::OK(); | 717 | 302 | } |
|
718 | | |
719 | | template <typename SharedState> |
720 | 2.00M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
721 | 2.00M | if (_closed) { |
722 | 2 | return Status::OK(); |
723 | 2 | } |
724 | 2.00M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
725 | 1.35M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
726 | 1.35M | } |
727 | 2.00M | _closed = true; |
728 | 2.00M | return Status::OK(); |
729 | 2.00M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 112k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 112k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 112k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 112k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 112k | } | 727 | 112k | _closed = true; | 728 | 112k | return Status::OK(); | 729 | 112k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 1 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 1 | } | 727 | 1 | _closed = true; | 728 | 1 | return Status::OK(); | 729 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 230k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 230k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 230k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 230k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 230k | } | 727 | 230k | _closed = true; | 728 | 230k | return Status::OK(); | 729 | 230k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 22 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 22 | if (_closed) { | 722 | 2 | return Status::OK(); | 723 | 2 | } | 724 | 20 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 20 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 20 | } | 727 | 20 | _closed = true; | 728 | 20 | return Status::OK(); | 729 | 22 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 8.81k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 8.81k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 8.81k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 8.81k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 8.81k | } | 727 | 8.81k | _closed = true; | 728 | 8.81k | return Status::OK(); | 729 | 8.81k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 7.95k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 7.95k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 7.95k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 7.95k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 7.95k | } | 727 | 7.95k | _closed = true; | 728 | 7.95k | return Status::OK(); | 729 | 7.95k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 159k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 159k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 159k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 159k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 159k | } | 727 | 159k | _closed = true; | 728 | 159k | return Status::OK(); | 729 | 159k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 267 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 267 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 267 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 267 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 267 | } | 727 | 267 | _closed = true; | 728 | 267 | return Status::OK(); | 729 | 267 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 207 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 207 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 207 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 207 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 207 | } | 727 | 207 | _closed = true; | 728 | 207 | return Status::OK(); | 729 | 207 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 652k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 652k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | | } | 727 | 652k | _closed = true; | 728 | 652k | return Status::OK(); | 729 | 652k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 5.14k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 5.14k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 5.14k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 5.14k | } | 727 | 5.14k | _closed = true; | 728 | 5.14k | return Status::OK(); | 729 | 5.14k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 379 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 379 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 379 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 379 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 379 | } | 727 | 379 | _closed = true; | 728 | 379 | return Status::OK(); | 729 | 379 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 3.24k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 3.24k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 3.24k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 3.24k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 3.24k | } | 727 | 3.24k | _closed = true; | 728 | 3.24k | return Status::OK(); | 729 | 3.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 12.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 12.0k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 12.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 12.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 12.0k | } | 727 | 12.0k | _closed = true; | 728 | 12.0k | return Status::OK(); | 729 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 314k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 314k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 314k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 314k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 314k | } | 727 | 314k | _closed = true; | 728 | 314k | return Status::OK(); | 729 | 314k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 497k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 497k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 497k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 497k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 497k | } | 727 | 497k | _closed = true; | 728 | 497k | return Status::OK(); | 729 | 497k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 14 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 14 | } | 727 | 14 | _closed = true; | 728 | 14 | return Status::OK(); | 729 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 302 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 302 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 302 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 302 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 302 | } | 727 | 302 | _closed = true; | 728 | 302 | return Status::OK(); | 729 | 302 | } |
|
730 | | |
731 | | template <typename LocalStateType> |
732 | 10.9k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
733 | 10.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
734 | 10.8k | return pull(state, block, eos); |
735 | 10.9k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 732 | 431 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 733 | 431 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 734 | 431 | return pull(state, block, eos); | 735 | 431 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 732 | 10.4k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 733 | 10.4k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 734 | 10.4k | return pull(state, block, eos); | 735 | 10.4k | } |
|
736 | | |
737 | | template <typename LocalStateType> |
738 | 712k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
739 | 712k | auto& local_state = get_local_state(state); |
740 | 712k | if (need_more_input_data(state)) { |
741 | 685k | local_state._child_block->clear_column_data( |
742 | 685k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
743 | 685k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
744 | 685k | state, local_state._child_block.get(), &local_state._child_eos)); |
745 | 685k | *eos = local_state._child_eos; |
746 | 685k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
747 | 65.5k | return Status::OK(); |
748 | 65.5k | } |
749 | 619k | { |
750 | 619k | SCOPED_TIMER(local_state.exec_time_counter()); |
751 | 619k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
752 | 619k | } |
753 | 619k | } |
754 | | |
755 | 647k | if (!need_more_input_data(state)) { |
756 | 595k | SCOPED_TIMER(local_state.exec_time_counter()); |
757 | 595k | bool new_eos = false; |
758 | 595k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
759 | 595k | if (new_eos) { |
760 | 518k | *eos = true; |
761 | 518k | } else if (!need_more_input_data(state)) { |
762 | 23.0k | *eos = false; |
763 | 23.0k | } |
764 | 595k | } |
765 | 647k | return Status::OK(); |
766 | 647k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 129k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 129k | auto& local_state = get_local_state(state); | 740 | 129k | if (need_more_input_data(state)) { | 741 | 114k | local_state._child_block->clear_column_data( | 742 | 114k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 114k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 114k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 114k | *eos = local_state._child_eos; | 746 | 114k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 36.0k | return Status::OK(); | 748 | 36.0k | } | 749 | 78.5k | { | 750 | 78.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 78.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 78.5k | } | 753 | 78.5k | } | 754 | | | 755 | 93.3k | if (!need_more_input_data(state)) { | 756 | 93.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 93.3k | bool new_eos = false; | 758 | 93.3k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 93.3k | if (new_eos) { | 760 | 40.0k | *eos = true; | 761 | 53.2k | } else if (!need_more_input_data(state)) { | 762 | 9.03k | *eos = false; | 763 | 9.03k | } | 764 | 93.3k | } | 765 | 93.2k | return Status::OK(); | 766 | 93.2k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 3.29k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 3.29k | auto& local_state = get_local_state(state); | 740 | 3.29k | if (need_more_input_data(state)) { | 741 | 2.07k | local_state._child_block->clear_column_data( | 742 | 2.07k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 2.07k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 2.07k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 2.07k | *eos = local_state._child_eos; | 746 | 2.07k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 393 | return Status::OK(); | 748 | 393 | } | 749 | 1.67k | { | 750 | 1.67k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 1.67k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 1.67k | } | 753 | 1.67k | } | 754 | | | 755 | 2.91k | if (!need_more_input_data(state)) { | 756 | 2.91k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 2.91k | bool new_eos = false; | 758 | 2.91k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 2.91k | if (new_eos) { | 760 | 1.38k | *eos = true; | 761 | 1.53k | } else if (!need_more_input_data(state)) { | 762 | 1.22k | *eos = false; | 763 | 1.22k | } | 764 | 2.91k | } | 765 | 2.89k | return Status::OK(); | 766 | 2.89k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 4.69k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 4.69k | auto& local_state = get_local_state(state); | 740 | 4.69k | if (need_more_input_data(state)) { | 741 | 4.69k | local_state._child_block->clear_column_data( | 742 | 4.69k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 4.69k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 4.69k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 4.69k | *eos = local_state._child_eos; | 746 | 4.69k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 1.57k | return Status::OK(); | 748 | 1.57k | } | 749 | 3.11k | { | 750 | 3.11k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 3.11k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 3.11k | } | 753 | 3.11k | } | 754 | | | 755 | 3.11k | if (!need_more_input_data(state)) { | 756 | 3.11k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 3.11k | bool new_eos = false; | 758 | 3.11k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 3.11k | if (new_eos) { | 760 | 1.59k | *eos = true; | 761 | 1.59k | } else if (!need_more_input_data(state)) { | 762 | 0 | *eos = false; | 763 | 0 | } | 764 | 3.11k | } | 765 | 3.11k | return Status::OK(); | 766 | 3.11k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 37.1k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 37.1k | auto& local_state = get_local_state(state); | 740 | 37.1k | if (need_more_input_data(state)) { | 741 | 37.1k | local_state._child_block->clear_column_data( | 742 | 37.1k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 37.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 37.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 37.1k | *eos = local_state._child_eos; | 746 | 37.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 4.64k | return Status::OK(); | 748 | 4.64k | } | 749 | 32.5k | { | 750 | 32.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 32.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 32.5k | } | 753 | 32.5k | } | 754 | | | 755 | 32.4k | if (!need_more_input_data(state)) { | 756 | 13.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 13.1k | bool new_eos = false; | 758 | 13.1k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 13.1k | if (new_eos) { | 760 | 12.9k | *eos = true; | 761 | 12.9k | } else if (!need_more_input_data(state)) { | 762 | 8 | *eos = false; | 763 | 8 | } | 764 | 13.1k | } | 765 | 32.4k | return Status::OK(); | 766 | 32.4k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 502k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 502k | auto& local_state = get_local_state(state); | 740 | 504k | if (need_more_input_data(state)) { | 741 | 504k | local_state._child_block->clear_column_data( | 742 | 504k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 504k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 504k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 504k | *eos = local_state._child_eos; | 746 | 504k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 19.8k | return Status::OK(); | 748 | 19.8k | } | 749 | 484k | { | 750 | 484k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 484k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 484k | } | 753 | 484k | } | 754 | | | 755 | 483k | if (!need_more_input_data(state)) { | 756 | 450k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 450k | bool new_eos = false; | 758 | 450k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 450k | if (new_eos) { | 760 | 449k | *eos = true; | 761 | 449k | } else if (!need_more_input_data(state)) { | 762 | 0 | *eos = false; | 763 | 0 | } | 764 | 450k | } | 765 | 483k | return Status::OK(); | 766 | 483k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 28.7k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 28.7k | auto& local_state = get_local_state(state); | 740 | 28.7k | if (need_more_input_data(state)) { | 741 | 16.2k | local_state._child_block->clear_column_data( | 742 | 16.2k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 16.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 16.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 16.2k | *eos = local_state._child_eos; | 746 | 16.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 2.41k | return Status::OK(); | 748 | 2.41k | } | 749 | 13.8k | { | 750 | 13.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 13.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 13.8k | } | 753 | 13.8k | } | 754 | | | 755 | 26.3k | if (!need_more_input_data(state)) { | 756 | 25.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 25.7k | bool new_eos = false; | 758 | 25.7k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 25.7k | if (new_eos) { | 760 | 8.80k | *eos = true; | 761 | 16.9k | } else if (!need_more_input_data(state)) { | 762 | 12.4k | *eos = false; | 763 | 12.4k | } | 764 | 25.7k | } | 765 | 26.3k | return Status::OK(); | 766 | 26.3k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 6.74k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 6.74k | auto& local_state = get_local_state(state); | 740 | 6.74k | if (need_more_input_data(state)) { | 741 | 6.38k | local_state._child_block->clear_column_data( | 742 | 6.38k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 6.38k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 6.38k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 6.38k | *eos = local_state._child_eos; | 746 | 6.38k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 596 | return Status::OK(); | 748 | 596 | } | 749 | 5.78k | { | 750 | 5.78k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 5.78k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 5.78k | } | 753 | 5.78k | } | 754 | | | 755 | 6.14k | if (!need_more_input_data(state)) { | 756 | 6.14k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 6.14k | bool new_eos = false; | 758 | 6.14k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 6.14k | if (new_eos) { | 760 | 4.17k | *eos = true; | 761 | 4.17k | } else if (!need_more_input_data(state)) { | 762 | 366 | *eos = false; | 763 | 366 | } | 764 | 6.14k | } | 765 | 6.14k | return Status::OK(); | 766 | 6.14k | } |
|
767 | | |
768 | | template <typename Writer, typename Parent> |
769 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
770 | 62.9k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
771 | 62.9k | RETURN_IF_ERROR(Base::init(state, info)); |
772 | 62.9k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
773 | 62.9k | "AsyncWriterDependency", true); |
774 | 62.9k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
775 | 62.9k | _finish_dependency)); |
776 | | |
777 | 62.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
778 | 62.9k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
779 | 62.9k | return Status::OK(); |
780 | 62.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 513 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 513 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 513 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 513 | "AsyncWriterDependency", true); | 774 | 513 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 513 | _finish_dependency)); | 776 | | | 777 | 513 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 513 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 513 | return Status::OK(); | 780 | 513 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 88 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 88 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 88 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 88 | "AsyncWriterDependency", true); | 774 | 88 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 88 | _finish_dependency)); | 776 | | | 777 | 88 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 88 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 88 | return Status::OK(); | 780 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 43.8k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 43.8k | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 43.8k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 43.8k | "AsyncWriterDependency", true); | 774 | 43.8k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 43.8k | _finish_dependency)); | 776 | | | 777 | 43.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 43.8k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 43.8k | return Status::OK(); | 780 | 43.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 8.99k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 8.99k | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 8.99k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 8.99k | "AsyncWriterDependency", true); | 774 | 8.99k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 8.99k | _finish_dependency)); | 776 | | | 777 | 8.99k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 8.99k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 8.99k | return Status::OK(); | 780 | 8.99k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 5.15k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 5.15k | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 5.15k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 5.15k | "AsyncWriterDependency", true); | 774 | 5.15k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 5.15k | _finish_dependency)); | 776 | | | 777 | 5.15k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 5.15k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 5.15k | return Status::OK(); | 780 | 5.15k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 3.38k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 3.38k | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 3.38k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 3.38k | "AsyncWriterDependency", true); | 774 | 3.38k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 3.38k | _finish_dependency)); | 776 | | | 777 | 3.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 3.38k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 3.38k | return Status::OK(); | 780 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 160 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 160 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 160 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 160 | "AsyncWriterDependency", true); | 774 | 160 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 160 | _finish_dependency)); | 776 | | | 777 | 160 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 160 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 160 | return Status::OK(); | 780 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 640 | "AsyncWriterDependency", true); | 774 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 640 | _finish_dependency)); | 776 | | | 777 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 640 | return Status::OK(); | 780 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 156 | "AsyncWriterDependency", true); | 774 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 156 | _finish_dependency)); | 776 | | | 777 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 156 | return Status::OK(); | 780 | 156 | } |
|
781 | | |
782 | | template <typename Writer, typename Parent> |
783 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
784 | 63.2k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
785 | 63.2k | RETURN_IF_ERROR(Base::open(state)); |
786 | 63.2k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
787 | 570k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
788 | 507k | RETURN_IF_ERROR( |
789 | 507k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
790 | 507k | } |
791 | 63.2k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
792 | 63.2k | return Status::OK(); |
793 | 63.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 516 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 516 | RETURN_IF_ERROR(Base::open(state)); | 786 | 516 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 2.77k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 2.26k | RETURN_IF_ERROR( | 789 | 2.26k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 2.26k | } | 791 | 516 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 516 | return Status::OK(); | 793 | 516 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 88 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 88 | RETURN_IF_ERROR(Base::open(state)); | 786 | 88 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 412 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 324 | RETURN_IF_ERROR( | 789 | 324 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 324 | } | 791 | 88 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 88 | return Status::OK(); | 793 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 44.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 44.1k | RETURN_IF_ERROR(Base::open(state)); | 786 | 44.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 327k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 283k | RETURN_IF_ERROR( | 789 | 283k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 283k | } | 791 | 44.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 44.1k | return Status::OK(); | 793 | 44.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 8.93k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 8.93k | RETURN_IF_ERROR(Base::open(state)); | 786 | 8.93k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 55.6k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 46.7k | RETURN_IF_ERROR( | 789 | 46.7k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 46.7k | } | 791 | 8.93k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 8.93k | return Status::OK(); | 793 | 8.93k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 5.14k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 5.14k | RETURN_IF_ERROR(Base::open(state)); | 786 | 5.14k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 135k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 130k | RETURN_IF_ERROR( | 789 | 130k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 130k | } | 791 | 5.14k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 5.14k | return Status::OK(); | 793 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 3.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 3.38k | RETURN_IF_ERROR(Base::open(state)); | 786 | 3.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 42.4k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 39.0k | RETURN_IF_ERROR( | 789 | 39.0k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 39.0k | } | 791 | 3.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 3.38k | return Status::OK(); | 793 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 160 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 160 | RETURN_IF_ERROR(Base::open(state)); | 786 | 160 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 480 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 320 | RETURN_IF_ERROR( | 789 | 320 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 320 | } | 791 | 160 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 160 | return Status::OK(); | 793 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 640 | RETURN_IF_ERROR(Base::open(state)); | 786 | 640 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 4.40k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 3.76k | RETURN_IF_ERROR( | 789 | 3.76k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 3.76k | } | 791 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 640 | return Status::OK(); | 793 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 156 | RETURN_IF_ERROR(Base::open(state)); | 786 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 630 | RETURN_IF_ERROR( | 789 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 630 | } | 791 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 156 | return Status::OK(); | 793 | 156 | } |
|
794 | | |
795 | | template <typename Writer, typename Parent> |
796 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
797 | 86.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
798 | 86.3k | return _writer->sink(block, eos); |
799 | 86.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 2.10k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 2.10k | return _writer->sink(block, eos); | 799 | 2.10k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 112 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 112 | return _writer->sink(block, eos); | 799 | 112 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 59.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 59.7k | return _writer->sink(block, eos); | 799 | 59.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 10.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 10.3k | return _writer->sink(block, eos); | 799 | 10.3k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 7.49k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 7.49k | return _writer->sink(block, eos); | 799 | 7.49k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 5.33k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 5.33k | return _writer->sink(block, eos); | 799 | 5.33k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 180 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 180 | return _writer->sink(block, eos); | 799 | 180 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 792 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 792 | return _writer->sink(block, eos); | 799 | 792 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 310 | return _writer->sink(block, eos); | 799 | 310 | } |
|
800 | | |
801 | | template <typename Writer, typename Parent> |
802 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
803 | 63.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
804 | 63.3k | if (_closed) { |
805 | 0 | return Status::OK(); |
806 | 0 | } |
807 | 63.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
808 | 63.3k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
809 | | // if the init failed, the _writer may be nullptr. so here need check |
810 | 63.3k | if (_writer) { |
811 | 63.3k | Status st = _writer->get_writer_status(); |
812 | 63.3k | if (exec_status.ok()) { |
813 | 63.2k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
814 | 63.2k | : Status::Cancelled("force close")); |
815 | 63.2k | } else { |
816 | 160 | _writer->force_close(exec_status); |
817 | 160 | } |
818 | | // If there is an error in process_block thread, then we should get the writer |
819 | | // status before call force_close. For example, the thread may failed in commit |
820 | | // transaction. |
821 | 63.3k | RETURN_IF_ERROR(st); |
822 | 63.3k | } |
823 | 63.2k | return Base::close(state, exec_status); |
824 | 63.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 504 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 504 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 504 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 504 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 504 | if (_writer) { | 811 | 504 | Status st = _writer->get_writer_status(); | 812 | 504 | if (exec_status.ok()) { | 813 | 504 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 504 | : Status::Cancelled("force close")); | 815 | 504 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 504 | RETURN_IF_ERROR(st); | 822 | 504 | } | 823 | 504 | return Base::close(state, exec_status); | 824 | 504 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 88 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 88 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 88 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 88 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 88 | if (_writer) { | 811 | 88 | Status st = _writer->get_writer_status(); | 812 | 88 | if (exec_status.ok()) { | 813 | 88 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 88 | : Status::Cancelled("force close")); | 815 | 88 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 88 | RETURN_IF_ERROR(st); | 822 | 88 | } | 823 | 80 | return Base::close(state, exec_status); | 824 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 44.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 44.2k | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 44.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 44.2k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 44.3k | if (_writer) { | 811 | 44.3k | Status st = _writer->get_writer_status(); | 812 | 44.3k | if (exec_status.ok()) { | 813 | 44.2k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 44.2k | : Status::Cancelled("force close")); | 815 | 44.2k | } else { | 816 | 66 | _writer->force_close(exec_status); | 817 | 66 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 44.3k | RETURN_IF_ERROR(st); | 822 | 44.3k | } | 823 | 44.2k | return Base::close(state, exec_status); | 824 | 44.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 8.97k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 8.97k | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 8.97k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 8.97k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 8.99k | if (_writer) { | 811 | 8.99k | Status st = _writer->get_writer_status(); | 812 | 8.99k | if (exec_status.ok()) { | 813 | 8.89k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 8.89k | : Status::Cancelled("force close")); | 815 | 8.89k | } else { | 816 | 96 | _writer->force_close(exec_status); | 817 | 96 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 8.99k | RETURN_IF_ERROR(st); | 822 | 8.99k | } | 823 | 8.97k | return Base::close(state, exec_status); | 824 | 8.97k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 5.14k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 5.14k | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 5.14k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 5.14k | if (_writer) { | 811 | 5.14k | Status st = _writer->get_writer_status(); | 812 | 5.15k | if (exec_status.ok()) { | 813 | 5.15k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 5.15k | : Status::Cancelled("force close")); | 815 | 18.4E | } else { | 816 | 18.4E | _writer->force_close(exec_status); | 817 | 18.4E | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 5.14k | RETURN_IF_ERROR(st); | 822 | 5.14k | } | 823 | 5.14k | return Base::close(state, exec_status); | 824 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 3.38k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 3.38k | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 3.38k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 3.38k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 3.38k | if (_writer) { | 811 | 3.38k | Status st = _writer->get_writer_status(); | 812 | 3.38k | if (exec_status.ok()) { | 813 | 3.38k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 3.38k | : Status::Cancelled("force close")); | 815 | 3.38k | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 3.38k | RETURN_IF_ERROR(st); | 822 | 3.38k | } | 823 | 3.38k | return Base::close(state, exec_status); | 824 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 160 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 160 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 160 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 160 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 160 | if (_writer) { | 811 | 160 | Status st = _writer->get_writer_status(); | 812 | 160 | if (exec_status.ok()) { | 813 | 160 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 160 | : Status::Cancelled("force close")); | 815 | 160 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 160 | RETURN_IF_ERROR(st); | 822 | 160 | } | 823 | 160 | return Base::close(state, exec_status); | 824 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 640 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 640 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 640 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 640 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 640 | if (_writer) { | 811 | 640 | Status st = _writer->get_writer_status(); | 812 | 640 | if (exec_status.ok()) { | 813 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 640 | : Status::Cancelled("force close")); | 815 | 640 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 640 | RETURN_IF_ERROR(st); | 822 | 640 | } | 823 | 640 | return Base::close(state, exec_status); | 824 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 156 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 156 | if (_writer) { | 811 | 156 | Status st = _writer->get_writer_status(); | 812 | 156 | if (exec_status.ok()) { | 813 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 156 | : Status::Cancelled("force close")); | 815 | 156 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 156 | RETURN_IF_ERROR(st); | 822 | 156 | } | 823 | 156 | return Base::close(state, exec_status); | 824 | 156 | } |
|
825 | | |
826 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
827 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
828 | | DECLARE_OPERATOR(ResultSinkLocalState) |
829 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
830 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
831 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
832 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
833 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
834 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
835 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
836 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
837 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
838 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
839 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
840 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
841 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
842 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
843 | | DECLARE_OPERATOR(SortSinkLocalState) |
844 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
845 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
846 | | DECLARE_OPERATOR(AggSinkLocalState) |
847 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
848 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
849 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
850 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
851 | | DECLARE_OPERATOR(UnionSinkLocalState) |
852 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
853 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
854 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
855 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
856 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
857 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
858 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
859 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
860 | | DECLARE_OPERATOR(CacheSinkLocalState) |
861 | | DECLARE_OPERATOR(DictSinkLocalState) |
862 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
863 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
864 | | |
865 | | #undef DECLARE_OPERATOR |
866 | | |
867 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
868 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
869 | | DECLARE_OPERATOR(OlapScanLocalState) |
870 | | DECLARE_OPERATOR(GroupCommitLocalState) |
871 | | DECLARE_OPERATOR(JDBCScanLocalState) |
872 | | DECLARE_OPERATOR(FileScanLocalState) |
873 | | DECLARE_OPERATOR(AnalyticLocalState) |
874 | | DECLARE_OPERATOR(SortLocalState) |
875 | | DECLARE_OPERATOR(SpillSortLocalState) |
876 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
877 | | DECLARE_OPERATOR(AggLocalState) |
878 | | DECLARE_OPERATOR(BucketedAggLocalState) |
879 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
880 | | DECLARE_OPERATOR(TableFunctionLocalState) |
881 | | DECLARE_OPERATOR(ExchangeLocalState) |
882 | | DECLARE_OPERATOR(RepeatLocalState) |
883 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
884 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
885 | | DECLARE_OPERATOR(EmptySetLocalState) |
886 | | DECLARE_OPERATOR(UnionSourceLocalState) |
887 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
888 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
889 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
890 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
891 | | DECLARE_OPERATOR(DataGenLocalState) |
892 | | DECLARE_OPERATOR(SchemaScanLocalState) |
893 | | DECLARE_OPERATOR(MetaScanLocalState) |
894 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
895 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
896 | | DECLARE_OPERATOR(CacheSourceLocalState) |
897 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
898 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
899 | | |
900 | | #ifdef BE_TEST |
901 | | DECLARE_OPERATOR(MockLocalState) |
902 | | DECLARE_OPERATOR(MockScanLocalState) |
903 | | #endif |
904 | | #undef DECLARE_OPERATOR |
905 | | |
906 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
907 | | template class StreamingOperatorX<SelectLocalState>; |
908 | | |
909 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
910 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
911 | | template class StatefulOperatorX<RepeatLocalState>; |
912 | | template class StatefulOperatorX<MaterializationLocalState>; |
913 | | template class StatefulOperatorX<StreamingAggLocalState>; |
914 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
915 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
916 | | template class StatefulOperatorX<TableFunctionLocalState>; |
917 | | |
918 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
919 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
920 | | template class PipelineXSinkLocalState<SortSharedState>; |
921 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
922 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
923 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
924 | | template class PipelineXSinkLocalState<AggSharedState>; |
925 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
926 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
927 | | template class PipelineXSinkLocalState<FakeSharedState>; |
928 | | template class PipelineXSinkLocalState<UnionSharedState>; |
929 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
930 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
931 | | template class PipelineXSinkLocalState<SetSharedState>; |
932 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
933 | | template class PipelineXSinkLocalState<BasicSharedState>; |
934 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
935 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
936 | | |
937 | | template class PipelineXLocalState<HashJoinSharedState>; |
938 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
939 | | template class PipelineXLocalState<SortSharedState>; |
940 | | template class PipelineXLocalState<SpillSortSharedState>; |
941 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
942 | | template class PipelineXLocalState<AnalyticSharedState>; |
943 | | template class PipelineXLocalState<AggSharedState>; |
944 | | template class PipelineXLocalState<BucketedAggSharedState>; |
945 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
946 | | template class PipelineXLocalState<FakeSharedState>; |
947 | | template class PipelineXLocalState<UnionSharedState>; |
948 | | template class PipelineXLocalState<DataQueueSharedState>; |
949 | | template class PipelineXLocalState<MultiCastSharedState>; |
950 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
951 | | template class PipelineXLocalState<SetSharedState>; |
952 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
953 | | template class PipelineXLocalState<BasicSharedState>; |
954 | | template class PipelineXLocalState<RecCTESharedState>; |
955 | | |
956 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
957 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
958 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
959 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
960 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
961 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
962 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
963 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
964 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
965 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
966 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
967 | | |
968 | | #ifdef BE_TEST |
969 | | template class OperatorX<DummyOperatorLocalState>; |
970 | | template class DataSinkOperatorX<DummySinkLocalState>; |
971 | | #endif |
972 | | |
973 | | } // namespace doris |